Debian Codegraph @

clang/test/SemaHLSL/vk.pushconstant.invalid.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 // expected-error@+1 {{'vk::binding' attribute is not compatible with 'vk::push_constant' attribute}}
8 [[vk::push_constant, vk::binding(5)]]
9 S pcs;
10
11 [numthreads(1, 1, 1)]
12 void main() {
13 }