Material.SetConstant
bool SetConstant(string name, MaterialBuffer`1 buffer)
Sets a constant/uniform buffer (cbuffer) on the shader. This is for smaller chunks of data (16kb max) that can be read from faster than textures or StructuredBuffers.
| string name | Name of the shader parameter in the HLSL. |
| MaterialBuffer`1 buffer | The buffer to assign, or null to clear. |
| RETURNS: bool | True if a matching resource was found in the shader. |
Found an issue with these docs, or have some additional questions? Create an Issue on Github!