HLSL: phase 3a: Add sub-vec4 rwtexture formats (qualifier.layoutFormat)
authorsteve-lunarg <steve_gh@khasekhemwy.net>
Mon, 10 Oct 2016 21:24:57 +0000 (15:24 -0600)
committersteve-lunarg <steve_gh@khasekhemwy.net>
Sat, 15 Oct 2016 00:44:32 +0000 (18:44 -0600)
commit4f2da27aec3e862b7d761dc66ea72bbeac980de1
tree8d1bb852f01ba61d0ca44250855018918a39a590
parentf042e407a9dfa803f493143f4665c4bbd3a3b5f1
HLSL: phase 3a: Add sub-vec4 rwtexture formats (qualifier.layoutFormat)

This PR sets the TQualifier layoutFormat according to the HLSL image type.
For instance:

  RWTexture1D <float2> g_tTex1df2;

becomes ElfRg32f.  Similar on Buffers, e.g, Buffer<float4> mybuffer;

The return type for image and buffer loads is now taken from the storage format.
Also, the qualifier for the return type is now (properly) a temp, not a global.
22 files changed:
Test/baseResults/hlsl.load.2dms.dx10.frag.out
Test/baseResults/hlsl.load.array.dx10.frag.out
Test/baseResults/hlsl.load.basic.dx10.frag.out
Test/baseResults/hlsl.load.basic.dx10.vert.out
Test/baseResults/hlsl.load.buffer.dx10.frag.out
Test/baseResults/hlsl.load.buffer.float.dx10.frag.out [new file with mode: 0644]
Test/baseResults/hlsl.load.offset.dx10.frag.out
Test/baseResults/hlsl.load.offsetarray.dx10.frag.out
Test/baseResults/hlsl.load.rwbuffer.dx10.frag.out
Test/baseResults/hlsl.load.rwtexture.array.dx10.frag.out
Test/baseResults/hlsl.load.rwtexture.dx10.frag.out
Test/baseResults/hlsl.multiEntry.vert.out
Test/baseResults/hlsl.rw.scalar.bracket.frag.out [new file with mode: 0644]
Test/baseResults/hlsl.rw.vec2.bracket.frag.out [new file with mode: 0644]
Test/hlsl.load.buffer.float.dx10.frag [new file with mode: 0644]
Test/hlsl.rw.scalar.bracket.frag [new file with mode: 0644]
Test/hlsl.rw.vec2.bracket.frag [new file with mode: 0644]
glslang/Include/Types.h
gtests/Hlsl.FromFile.cpp
hlsl/hlslGrammar.cpp
hlsl/hlslParseHelper.cpp
hlsl/hlslParseHelper.h