I ran into this error while using 'uint' named_parameters in a material script with hlsl and dx11:
Code: Select all
...
///Material file:
fragment_program_ref NoiseShader_psHLSL
{
param_named count uint 1
}
...
///Hlsl file:
cbuffer inputBuffer : register(b[0]) {
uint count;
}
But if I change it to 'int' it compiles fine.
I have seen some examples using uint as a parameter, but if I am making a mistake and its not allowed, please let me know.
Just to make it clear I am certainly using this param in the fragment shader.
Any suggestions?
Thanks :)