I have a cbuffer in a shader, and I’m trying to get a handle to a struct within that cbuffer. I get a warning - “Material doesn’t have a parameter named xxx”. I’m able to use getParamFloat to get a handle to a float in that cbuffer, but not the struct version.
I’m also having problems setting values for arrays within a cbuffer (using the setVecX with an array index), which prompted me to try the struct version in the first place. I get a warning that says the size of the array is 1 when i try to set any index higher than 0, regardless of what size i set in the shader.