Hello,
How would I go about passing per-object uniforms. I know there are constant buffers (ObjectVS, ObjectPS) but if I add a new uniform to the cbuffer
Example:
cbuffer ObjectVS
{
…
…
#ifdef CONDITION
float2 param;
#endif
…
}
How would I set “param” through code? Where would I have to call Graphics::SetShaderParameter (…) ?
Thanks.