•      Sign In
• Create Account

### #ActualXuchilbara

Posted 02 November 2012 - 12:45 PM

Hey,

thanks for the reply. To your question, yeah I have declared the Vertex in my header file. But everything was working fine before with the previous .fx file. Here is what my .fx file looked like BEFORE and it worked, with no warnings or errors.

float4 VShader(float4 position : POSITION) : SV_POSITION
{
return position;
}
float4 PShader() : SV_TARGET
{
return float4(1.0f, 1.0f, 1.0f, 1.0f);
}


Since I've created the "VOut" struct it doesn't like it, and breaks on the draw function.

So I'm pretty sure it's something to do with my .fx file.

### #1Xuchilbara

Posted 02 November 2012 - 12:43 PM

Hey,

thanks for the reply. To your question, yeah I have declared the Vertex in my header file. But everything was working fine before with the same .fx file. Here is what my .fx file looked like BEFORE and it worked, with no warnings or errors.

float4 VShader(float4 position : POSITION) : SV_POSITION
{
return position;
}
float4 PShader() : SV_TARGET
{
return float4(1.0f, 1.0f, 1.0f, 1.0f);
}


Since I've created the "VOut" struct it doesn't like it, and breaks on the draw function.

So I'm pretty sure it's something to do with my .fx file.

PARTNERS