Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. The 2023.1 beta is now available for testing. To find out what's new, have a look at our 2023.1 feature highlights.
    Dismiss Notice

Any chance to have MaterialPropertyBlock support SetBuffer() in 5.4 ?

Discussion in '5.4 Beta' started by joergzdarsky, Apr 2, 2016.

  1. joergzdarsky

    joergzdarsky

    Joined:
    Sep 25, 2013
    Posts:
    56
    I am always lurking for that into the current betas, but still no luck.

    With all the extensions in 5.4 it would be really really helpfull if MaterialPropertyBlock would support SetBuffer() somewhen in the future.
    Those who want to work with ComputeShaders and ComputeBuffers would benefit so much of that as otherwise setting ComputeBuffers to a material (which is really usefull!) to handover results from a ComputeShader breaks batching completely.

    Any chance that this will be done in 5.4? I guess implementation wise it shouldnt be much different as its likely only a reference handed over similar to SetTexture();
     
  2. Aras

    Aras

    Unity Technologies

    Joined:
    Nov 7, 2005
    Posts:
    4,770
    Yes, soon(ish).
     
    joergzdarsky and m4d like this.
  3. joergzdarsky

    joergzdarsky

    Joined:
    Sep 25, 2013
    Posts:
    56
    :)

    Hi Aras, thank you for that! This good news really made my day!!
    Those who love to create procedural content will benefit so much of that. Great!
     
  4. joergzdarsky

    joergzdarsky

    Joined:
    Sep 25, 2013
    Posts:
    56
    Saw that today in the release-notes of the 5.4.14b

    Thanks a lot @Aras ! Will try that immediately.