mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-09 12:00:05 +00:00
Add tests for compute shader derivatives with spec constant workgroup size
This commit is contained in:
parent
dc1012140e
commit
f7f0f3067c
@ -0,0 +1,6 @@
|
||||
spv.computeShaderDerivativesSpec.comp
|
||||
ERROR: 0:5: 'derivative_group_quadsNV' : requires local_size_x and local_size_y to be multiple of two
|
||||
ERROR: 1 compilation errors. No code generated.
|
||||
|
||||
|
||||
SPIR-V is not generated for failed compile or link
|
@ -0,0 +1,6 @@
|
||||
spv.computeShaderDerivativesSpec2.comp
|
||||
ERROR: 0:5: 'derivative_group_linearNV' : requires total group size to be multiple of four
|
||||
ERROR: 1 compilation errors. No code generated.
|
||||
|
||||
|
||||
SPIR-V is not generated for failed compile or link
|
8
Test/spv.computeShaderDerivativesSpec.comp
Normal file
8
Test/spv.computeShaderDerivativesSpec.comp
Normal file
@ -0,0 +1,8 @@
|
||||
#version 450
|
||||
#extension GL_NV_compute_shader_derivatives : require
|
||||
|
||||
layout (local_size_x_id = 0, local_size_y_id = 1) in;
|
||||
layout(derivative_group_quadsNV) in;
|
||||
|
||||
void main(){
|
||||
}
|
8
Test/spv.computeShaderDerivativesSpec2.comp
Normal file
8
Test/spv.computeShaderDerivativesSpec2.comp
Normal file
@ -0,0 +1,8 @@
|
||||
#version 320 es
|
||||
#extension GL_NV_compute_shader_derivatives : require
|
||||
|
||||
layout (local_size_x_id = 0, local_size_y_id = 1) in;
|
||||
layout(derivative_group_linearNV) in;
|
||||
|
||||
void main(){
|
||||
}
|
@ -896,6 +896,8 @@ INSTANTIATE_TEST_SUITE_P(
|
||||
"spv.fragmentShaderBarycentric2.frag",
|
||||
"spv.computeShaderDerivatives.comp",
|
||||
"spv.computeShaderDerivatives2.comp",
|
||||
"spv.computeShaderDerivativesSpec.comp",
|
||||
"spv.computeShaderDerivativesSpec2.comp",
|
||||
"spv.shaderImageFootprint.frag",
|
||||
"spv.meshShaderBuiltins.mesh",
|
||||
"spv.meshShaderUserDefined.mesh",
|
||||
|
Loading…
Reference in New Issue
Block a user