From cfb59828f3fddf0eb5099b2b771b1f8f1ba5627f Mon Sep 17 00:00:00 2001 From: Elizabeth Figura Date: Fri, 28 Mar 2025 15:27:57 -0500 Subject: [PATCH] tests/hlsl: Add more tests for the "numthreads" attribute. --- tests/hlsl/numthreads.shader_test | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/tests/hlsl/numthreads.shader_test b/tests/hlsl/numthreads.shader_test index 4ca117c3f..a812adf01 100644 --- a/tests/hlsl/numthreads.shader_test +++ b/tests/hlsl/numthreads.shader_test @@ -175,6 +175,36 @@ size (2d, 2, 2) 1.0 1.0 1.0 1.0 +% The product must not exceed 1024, and the third dimension cannot exceed 64. + +[compute shader fail todo] + [numthreads(1025,1,1)] + void main() {} + +[compute shader fail todo] + [numthreads(1,1025,1)] + void main() {} + +[compute shader fail todo] + [numthreads(1,1,65)] + void main() {} + +[compute shader fail todo] + [numthreads(41,25,25)] + void main() {} + +[compute shader] + [numthreads(1024,1,1)] + void main() {} + +[compute shader] + [numthreads(1,1024,1)] + void main() {} + +[compute shader] + [numthreads(4,4,64)] + void main() {} + [compute shader] /* In SM < 6.0, attributes are taken from the first function, and dropped from the second. */ RWTexture2D u;