Dx11 Hlsl 'uint' error

Problems building or running the engine, queries about how to use features etc.
Post Reply
Bazilikum
Gnoblar
Posts: 7
Joined: Wed Feb 26, 2014 10:56 pm

Dx11 Hlsl 'uint' error

Post by Bazilikum »

Hello,

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;
}
complains count parameter doesnt exist.
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 :)
Post Reply