Files
UnrealEngine/Engine/Source/ThirdParty/Intel/ISPC/ispc-1.24.0/tests/lit-tests/2272.ispc
2025-05-18 13:04:45 +08:00

10 lines
384 B
Plaintext

// RUN: %{ispc} --target=host --nowrap --nostdlib --debug-phase=first:first --emit-llvm-text %s -o - | FileCheck %s
// CHECK: [[TYPE:%.*]] = type { <[[WIDTH:[0-9]+]] x i8> }
// CHECK: [[VAL:%.*]] = insertvalue [[TYPE]] undef, <[[WIDTH]] x i8> [[BUF:%.*]], 0
struct Test { bool b; };
export void main_kernel(uniform const Test *uniform buffer) {
Test x = buffer[programIndex];
}