MadrMan

PerfStudio 2.7 shader editor error

Discussion created by MadrMan on Oct 26, 2011
Latest reply on Nov 6, 2011 by MadrMan

Hello,

I can't seem to get the shader editor to work for me, every time i load up my program and try to use it i get: "Error: D3DX11CompileFromFile failed." with no additional info.

I've tried to reproduce it on dx sdk samples but it seemed to work correctly on all the sdk samples that use fx and the "Enable shader editing" button seemed to be grayed out on the samples that didn't use fx.

Another minor problem is that perfstudio doesn't seem to like the line-ends in the sdk shaders, the whole shader appears on a single line.

I've attached the code to one of the shaders that doesn't work for me.

I'm using vista x64 sp2 with a 4850HD and the latest catalyst drivers and latest dx sdk.

Is there any way I could get additional info on what the error is?

cbuffer TransformCB { matrix WorldViewProjection : WorldViewProjection; matrix World : World; }; Texture2D diffuseTexture : register(t[0]); SamplerState samLinear; struct VS_OUTPUT { float4 Pos : SV_POSITION; float2 UV : TEXCOORD0; }; struct VS_INPUT { float4 Pos : POSITION; float4 Col : COLOR; float3 Normal : NORMAL; float3 Bitangent : BITANGENT; float3 Tangent : TANGENT; float2 UV : TEXCOORD0; }; VS_OUTPUT unlitVS(VS_INPUT input) { VS_OUTPUT output; output.Pos = mul(input.Pos, WorldViewProjection); output.UV = input.UV; return output; } float4 unlitPS(VS_OUTPUT input) : SV_Target0 { return diffuseTexture.Sample(samLinear, input.UV); }

Outcomes