setNamedConstant/param_named size in DX11?

Problems building or running the engine, queries about how to use features etc.
Post Reply
User avatar
mkultra333
Gold Sponsor
Gold Sponsor
Posts: 1894
Joined: Sun Mar 08, 2009 5:25 am
x 114

setNamedConstant/param_named size in DX11?

Post by mkultra333 »

In DX9 hlsl I could have a "param_named" in the shader and pass about 240 float4 to the shader using VP_Parameters->setNamedConstant. This was shader model 3.

An example from one of my actual vertex shaders would be

Code: Select all

vertex_program GameLine_vs hlsl         
{
   source 0_GameLine.hlsl
   entry_point GameLine_vs
   target vs_3_0

	default_params
    {
        param_named_auto wvp			worldviewproj_matrix
		param_named_auto WorldViewXf	worldview_matrix

		param_named            GameLineData         float240
	}
}
where param_named GameLineData allows me to pass it 240 float4.

I'm using DX11 now, and I was wondering if the maximum I can pass to the vertex shader is greater now. I've tried reading up on it, and I see talk of "constant buffers" that have a max of 4096 float4, but I don't know if that's the same thing.

And if it is larger, does this also mean I can have more hardware skinning bones as well?
"In theory there is no difference between practice and theory. In practice, there is." - Psychology Textbook.
Post Reply