clang/test/SemaHLSL/vk.pushconstant.multiple.hlsl
raw| 1 | // RUN: %clang_cc1 -triple spirv-unknown-vulkan-compute -x hlsl -emit-llvm -disable-llvm-passes -o - -hlsl-entry main %s -verify |
| 2 | |
| 3 | struct S { |
| 4 | float f; |
| 5 | }; |
| 6 | |
| 7 | [[vk::push_constant]] S a; |
| 8 | |
| 9 | // expected-error@+1 {{cannot have more than one push constant block}} |
| 10 | [[vk::push_constant]] S b; |
| 11 | |
| 12 | [numthreads(1, 1, 1)] |
| 13 | void main() {} |