cbuffer-member-init.hlsl
//TEST:COMPARE_HLSL: -profile vs_5_0
// Allow (but ignore) initializer on `cbuffer` member
cbuffer C : register(b0)
{
int a = -1;
};
float4 main() : SV_POSITION
{
return 0;
// return a;
}
//TEST:COMPARE_HLSL: -profile vs_5_0
// Allow (but ignore) initializer on `cbuffer` member
cbuffer C : register(b0)
{
int a = -1;
};
float4 main() : SV_POSITION
{
return 0;
// return a;
}