CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
53 lines
1.9 KiB
HLSL
53 lines
1.9 KiB
HLSL
// RUN: %clang_cc1 -triple spirv-linux-vulkan-vertex -x hlsl -emit-llvm -finclude-default-header -disable-llvm-passes -o - %s | FileCheck %s
|
|
|
|
struct Inner {
|
|
uint b : B;
|
|
};
|
|
|
|
struct VSInput {
|
|
float4 position : POSITION; // Not system semantic, Location 0
|
|
};
|
|
|
|
struct VSOutput {
|
|
float4 position : SV_POSITION; // System semantic, builtin Position
|
|
uint a : A; // Location 0
|
|
Inner inner; // Location 1
|
|
uint c : C; // Location 2
|
|
};
|
|
|
|
|
|
// CHECK: @POSITION0 = external hidden thread_local addrspace(7) externally_initialized constant <4 x float>, !spirv.Decorations ![[#MD_0:]]
|
|
// CHECK: @SV_POSITION = external hidden thread_local addrspace(8) global <4 x float>, !spirv.Decorations ![[#MD_2:]]
|
|
// CHECK: @A0 = external hidden thread_local addrspace(8) global i32, !spirv.Decorations ![[#MD_0:]]
|
|
// CHECK: @B0 = external hidden thread_local addrspace(8) global i32, !spirv.Decorations ![[#MD_4:]]
|
|
// CHECK: @C0 = external hidden thread_local addrspace(8) global i32, !spirv.Decorations ![[#MD_6:]]
|
|
|
|
VSOutput main(VSInput input) {
|
|
VSOutput output;
|
|
output.position = input.position;
|
|
output.a = 1;
|
|
output.inner.b = 2;
|
|
output.c = 3;
|
|
return output;
|
|
}
|
|
|
|
// CHECK: ![[#MD_0]] = !{![[#MD_1:]]}
|
|
// CHECK: ![[#MD_1]] = !{i32 30, i32 0}
|
|
// | `-> Location index
|
|
// `-> SPIR-V decoration 'Location'
|
|
|
|
// CHECK: ![[#MD_2]] = !{![[#MD_3:]]}
|
|
// CHECK: ![[#MD_3]] = !{i32 11, i32 0}
|
|
// | `-> BuiltIn 'Position'
|
|
// `-> SPIR-V decoration 'BuiltIn'
|
|
|
|
// CHECK: ![[#MD_4]] = !{![[#MD_5:]]}
|
|
// CHECK: ![[#MD_5]] = !{i32 30, i32 1}
|
|
// | `-> Location index
|
|
// `-> SPIR-V decoration 'Location'
|
|
|
|
// CHECK: ![[#MD_6]] = !{![[#MD_7:]]}
|
|
// CHECK: ![[#MD_7]] = !{i32 30, i32 2}
|
|
// | `-> Location index
|
|
// `-> SPIR-V decoration 'Location'
|