HLSL: allow destination swizzles when writing RWTexture/RWBuffer objects.
authorsteve-lunarg <steve_gh@khasekhemwy.net>
Wed, 28 Dec 2016 17:03:58 +0000 (10:03 -0700)
committersteve-lunarg <steve_gh@khasekhemwy.net>
Tue, 3 Jan 2017 17:31:09 +0000 (10:31 -0700)
commitcd6829ba81766dbb7c11901df088e39b0d76e85f
treec4256dd34e9a3bb71b524324ecbb2bb49b9cf12e
parent807a0d9e2f4e176f75d62ac3c179c81800ec2608
HLSL: allow destination swizzles when writing RWTexture/RWBuffer objects.

Reads and write syntax to UAV objects is turned into EOpImageLoad/Store
operations.  This translation did not support destination swizzles,
for example, "mybuffer[tc].zyx = 3;", so such statements would fail to
compile.  Now they work.

Parial updates are explicitly prohibited.

New test: hlsl.rw.swizzle.frag
Test/baseResults/hlsl.rw.swizzle.frag.out [new file with mode: 0644]
Test/hlsl.rw.swizzle.frag [new file with mode: 0644]
gtests/Hlsl.FromFile.cpp
hlsl/hlslParseHelper.cpp