When compiling my dx11 hlsl shader file, it fails, and after a bit of debugging, the error lies in this area:
cbuffer ConstantPointBuffer
{
float3 dir;
float pad;
float3 pos;
float pad;
float3 att;
float pad;
float4 ambient;
float4 diffuse;
float range;
float3 pad;
}
But I can’t think what’s wrong with it…
Thank You
You have multiple variables with the same name. Simply don’t do that.