mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-13 21:50:06 +00:00
9088be4c07
This PR adds: 1. The "u" register class for RW* objects. 2. --shift-image-bindings (== --sib), analogous to --shift-texture-bindings etc. 3. Case insensitive reg classes. 4. Tests for above.
19 lines
291 B
JavaScript
19 lines
291 B
JavaScript
|
|
RWTexture1D <float> g_tTex1df1 : register(u2);
|
|
RWBuffer <uint> g_tBuf1du1 : register(U3);
|
|
|
|
struct PS_OUTPUT
|
|
{
|
|
float4 Color : SV_Target0;
|
|
};
|
|
|
|
PS_OUTPUT main()
|
|
{
|
|
float r00 = g_tTex1df1[0];
|
|
uint r01 = g_tBuf1du1[0];
|
|
|
|
PS_OUTPUT psout;
|
|
psout.Color = 1.0;
|
|
return psout;
|
|
}
|