The following error will appear: Test.fx (1,1): X3000 error: syntax error: unexpected token '{'
Text.fx contains the following: Nothing.
I also tried it with an effects file that works fine in another test project:
float4x4 mWorld; struct TInputVertex { float3 vPosition : POSITION0; float3 vNormal : NORMAL0; float2 vTexCoord : TEXCOORD0; float4 vColor : COLOR0; }; struct TOutputVertex { float4 vPosition : POSITION0; float3 vNormal : TEXCOORD1; float4 vColor : COLOR0; }; TOutputVertex vsMain(TInputVertex i) { TOutputVertex o; o.vPosition = mul(float4(i.vPosition, 1), mWorld); o.vColor = i.vColor; o.vNormal = mul(float4(i.vNormal, 1), mWorld).xyz;
With the same error as the result.
Included dx files from the same dx sdk in both projects. Including and linking the same headers and libraries.
I literally copied the download function from a test project. I myself wrote the entire test project.
HRESULT res = D3DXCreateEffectFromFile(device, file_name, NULL, NULL, 0, 0, &effect, &error_buffer);
Google does not appear with anything. I would really appreciate it if you could remove the dagger from my wetware.
Antoon
directx hlsl
Xilliah
source share