Add UAV (image) binding offset and HLSL register support

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.
This commit is contained in:
steve-lunarg
2016-11-01 10:31:42 -06:00
parent e5e58cfee3
commit 9088be4c07
13 changed files with 309 additions and 10 deletions

View File

@@ -0,0 +1,18 @@
RWTexture1D <float> g_tTex1df1;
RWBuffer <uint> g_tBuf1du1;
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 = 0;
return psout;
}