Sign in to follow this  
n3Xus

[DX10] Constant buffer variable is always invalid

Recommended Posts

n3Xus    951
Hello, whenever I use ID3D10Effect::GetVariableByName("CBModel")->AsConstantBuffer() the variable is invalid. This is the HLSL code:
cbuffer CBModel
{
	float4 texCoordScale[5]:		packoffset(c0);     
	float2 detColPowAndDetNormPow: packoffset(c5.x);
};

I've tried it with different .fx files but I can't get it to works :S

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this