Hello,
This is probably not the right way to submit bugs about the HLSL-compiler, but I couldn't find a better channel. I get an internal compiler-error with the following construct,
RWStructuredBuffer<uint> Buffer1 : register(u6);
RWStructuredBuffer<uint> Buffer2 : register(u7);
bool
AllocIdx(out uint Idx)
{
Idx = Buffer1.IncrementCounter();
uint CntMax;
uint Stride;
Buffer1.GetDimensions(CntMax, Stride); //Doesn't work
// Buffer2.GetDimensions(CntMax, Stride); //Works
return Idx < CntMax;
}
the problem seems to stem from invoking IncrementCounter and GetDimensions on the same RWStructuredBuffer-object.
Best regards,
Staffan Langin