HLSL: Allow expressions in attributes
authorsteve-lunarg <steve_gh@khasekhemwy.net>
Fri, 11 Nov 2016 15:17:44 +0000 (08:17 -0700)
committersteve-lunarg <steve_gh@khasekhemwy.net>
Fri, 11 Nov 2016 15:23:03 +0000 (08:23 -0700)
commita22f7dbb713dd4aad223a816563adf362491181f
treed027eddcb0c5efde9612a8d32a627633a2ea4c85
parentd3f1122a4430563cd47f60060956e88dc559ba22
HLSL: Allow expressions in attributes

For example:

[numthreads(2+2, 2*3, (1+FOO)*BAR)]

This will result in a thread count (4, 6, 8).
Test/baseResults/hlsl.attribute.expression.comp.out [new file with mode: 0644]
Test/hlsl.attribute.expression.comp [new file with mode: 0644]
gtests/Hlsl.FromFile.cpp
hlsl/hlslGrammar.cpp