DXC should disallow the volatile keyword across the board, regardless of the target IR.
RWByteAddressBuffer gBuf : register(u0);
[numthreads(1,1,1)]
void main() {
volatile RWByteAddressBuffer buf = gBuf;
buf.Store(0, 42);
}
DXC accepts this hlsl, and it should not.
Command: dxc -T cs_6_0 -Fo out.o input.hlsl
We need a diagnostic to be emitted, something like "unrecognized identifier volatile", that word should not be recognized.
DXC should disallow the
volatilekeyword across the board, regardless of the target IR.DXC accepts this hlsl, and it should not.
Command:
dxc -T cs_6_0 -Fo out.o input.hlslWe need a diagnostic to be emitted, something like "unrecognized identifier
volatile", that word should not be recognized.