Add support for spirv1.6
Add command line support which enables the following behavior: - Remap discard Map discard to DemoteToHelperInvocation for HLSL shaders. Map to OpTerminateInvocation for GLSL shaders. - Decorate HelperInvocation with Volatile - Use localSizeId for execution mode WorkGroupSize is deprecated in spirv1.6 Also update known goods to SPIRV 1.6
This commit is contained in:
parent
a0f98ad401
commit
7a49192d23
19 changed files with 556 additions and 218 deletions
18
Test/spv.1.6.specConstant.comp
Normal file
18
Test/spv.1.6.specConstant.comp
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#version 450
|
||||
|
||||
layout(local_size_x_id = 18, local_size_z_id = 19) in;
|
||||
layout(local_size_x = 32, local_size_y = 32) in;
|
||||
|
||||
buffer bn {
|
||||
uint a;
|
||||
} bi;
|
||||
|
||||
void foo(uvec3 wgs)
|
||||
{
|
||||
bi.a = wgs.x * gl_WorkGroupSize.y * wgs.z;
|
||||
}
|
||||
|
||||
void main()
|
||||
{
|
||||
foo(gl_WorkGroupSize);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue