glslang-zig/hlsl
steve-lunarg 1868b14435 HLSL: implement numthreads for compute shaders
This PR adds handling of the numthreads attribute for compute shaders, as well as a general
infrastructure for returning attribute values from acceptAttributes, which may be needed in other
cases, e.g, unroll(x), or merely to know if some attribute without params was given.

A map of enum values from TAttributeType to TIntermAggregate nodes is built and returned.  It
can be queried with operator[] on the map.  In the future there may be a need to also handle
strings (e.g, for patchconstantfunc), and those can be easily added into the class if needed.

New test is in hlsl.numthreads.comp.
2016-10-31 09:28:17 -06:00
..
CMakeLists.txt HLSL: implement numthreads for compute shaders 2016-10-31 09:28:17 -06:00
hlslAttributes.cpp HLSL: implement numthreads for compute shaders 2016-10-31 09:28:17 -06:00
hlslAttributes.h HLSL: implement numthreads for compute shaders 2016-10-31 09:28:17 -06:00
hlslGrammar.cpp HLSL: implement numthreads for compute shaders 2016-10-31 09:28:17 -06:00
hlslGrammar.h HLSL: implement numthreads for compute shaders 2016-10-31 09:28:17 -06:00
hlslOpMap.cpp HLSL: Basic array grammar. 2016-06-19 11:50:34 -06:00
hlslOpMap.h HLSL: Add (almost) full expression grammar: Binary, unary (pre/post-fix), assign, ... 2016-05-03 23:33:00 -06:00
hlslParseables.cpp HLSL: Fix unary and binary operator type conversion issues 2016-10-18 16:56:37 -06:00
hlslParseables.h Add lerp, fix sincos return type, ret type tests, non-square mats, HLSL->AST tx semantics 2016-06-21 10:10:48 -06:00
hlslParseHelper.cpp HLSL: implement numthreads for compute shaders 2016-10-31 09:28:17 -06:00
hlslParseHelper.h HLSL: implement numthreads for compute shaders 2016-10-31 09:28:17 -06:00
hlslScanContext.cpp HLSL: phase 1: add RWTexture and RWBuffer 2016-10-06 10:51:52 -06:00
hlslScanContext.h HLSL: Implement basic "struct" grammar. 2016-06-12 23:54:31 -06:00
hlslTokens.h HLSL: phase 1: add RWTexture and RWBuffer 2016-10-06 10:51:52 -06:00
hlslTokenStream.cpp HLSL: Fix a grammar error related to constructors in parenthetical expressions 2016-07-30 08:09:09 -06:00
hlslTokenStream.h HLSL: Fix a grammar error related to constructors in parenthetical expressions 2016-07-30 08:09:09 -06:00