Fix subgroup support for ray tracing
Closes #1735 GlslangToSpv.cpp - minor formatting cleanup BaseTypes.h - minor formatting cleanup - add subgroup builtins to GetBuiltInVariableString (was resulting in "unknown built-in variable" messages in test output) Initialize.cpp - better naming and re-use of strings for subgroup builtin variable declarations - define subgroup builtin variables in ray-tracing shaders intermOut.cpp - add handling of the EOpSubgroupParition* variables (was resulting in "ERROR: Bad aggregation op" messages in test output) Update test results.
This commit is contained in:
@@ -11,12 +11,12 @@ local_size = (32, 16, 1)
|
||||
0:6 'data' (layout( row_major std430) buffer block{layout( row_major std430) buffer unsized 1-element array of uint @data})
|
||||
0:6 Constant:
|
||||
0:6 0 (const uint)
|
||||
0:6 '@gl_SubgroupInvocationID' ( in uint unknown built-in variable)
|
||||
0:6 '@gl_SubgroupInvocationID' ( in uint SubgroupInvocationID)
|
||||
0:6 Test condition and select ( temp uint): no shortcircuit
|
||||
0:6 Condition
|
||||
0:6 subgroupElect ( temp bool)
|
||||
0:6 true case
|
||||
0:6 '@gl_SubgroupSize' ( in uint unknown built-in variable)
|
||||
0:6 '@gl_SubgroupSize' ( in uint SubgroupSize)
|
||||
0:6 false case
|
||||
0:6 Constant:
|
||||
0:6 0 (const uint)
|
||||
@@ -43,12 +43,12 @@ local_size = (32, 16, 1)
|
||||
0:6 'data' (layout( row_major std430) buffer block{layout( row_major std430) buffer unsized 1-element array of uint @data})
|
||||
0:6 Constant:
|
||||
0:6 0 (const uint)
|
||||
0:6 '@gl_SubgroupInvocationID' ( in uint unknown built-in variable)
|
||||
0:6 '@gl_SubgroupInvocationID' ( in uint SubgroupInvocationID)
|
||||
0:6 Test condition and select ( temp uint): no shortcircuit
|
||||
0:6 Condition
|
||||
0:6 subgroupElect ( temp bool)
|
||||
0:6 true case
|
||||
0:6 '@gl_SubgroupSize' ( in uint unknown built-in variable)
|
||||
0:6 '@gl_SubgroupSize' ( in uint SubgroupSize)
|
||||
0:6 false case
|
||||
0:6 Constant:
|
||||
0:6 0 (const uint)
|
||||
|
||||
Reference in New Issue
Block a user