Debian Codegraph @

clang/test/CodeGenHLSL/vk-features/SpirvType.alignment.hlsl

raw
1 // RUN: %clang_cc1 -finclude-default-header -x hlsl -triple \
2 // RUN: spirv-unknown-vulkan-compute %s -emit-llvm -disable-llvm-passes \
3 // RUN: -o - | FileCheck %s
4
5 using Int = vk::SpirvType</* OpTypeInt */ 21, 4, 64, vk::Literal<vk::integral_constant<uint, 8>>, vk::Literal<vk::integral_constant<bool, false>>>;
6
7 // CHECK: %struct.S = type <{ i32, target("spirv.Type", target("spirv.Literal", 8), target("spirv.Literal", 0), 21, 4, 64), [4 x i8] }>
8 struct S {
9 int a;
10 Int b;
11 };
12
13 [numthreads(1,1,1)]
14 void main() {
15 S value;
16 }