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
68 lines
4.4 KiB
HLSL
68 lines
4.4 KiB
HLSL
// RUN: %clang_cc1 %s -E -dM -o - -triple dxil-pc-shadermodel6.0-amplification | FileCheck -match-full-lines %s --check-prefixes=CHECK,AMPLIFICATION,NOHALF
|
|
// RUN: %clang_cc1 %s -E -dM -o - -triple dxil-pc-shadermodel6.0-compute | FileCheck -match-full-lines %s --check-prefixes=CHECK,COMPUTE,NOHALF
|
|
// RUN: %clang_cc1 %s -E -dM -o - -triple dxil-pc-shadermodel6.0-domain | FileCheck -match-full-lines %s --check-prefixes=CHECK,DOMAIN,NOHALF
|
|
// RUN: %clang_cc1 %s -E -dM -o - -triple dxil-pc-shadermodel6.0-geometry | FileCheck -match-full-lines %s --check-prefixes=CHECK,GEOMETRY,NOHALF
|
|
// RUN: %clang_cc1 %s -E -dM -o - -triple dxil-pc-shadermodel6.0-hull | FileCheck -match-full-lines %s --check-prefixes=CHECK,HULL,NOHALF
|
|
// RUN: %clang_cc1 %s -E -dM -o - -triple dxil-pc-shadermodel6.0-library | FileCheck -match-full-lines %s --check-prefixes=CHECK,LIBRARY,NOHALF
|
|
// RUN: %clang_cc1 %s -E -dM -o - -triple dxil-pc-shadermodel6.0-mesh | FileCheck -match-full-lines %s --check-prefixes=CHECK,MESH,NOHALF
|
|
// RUN: %clang_cc1 %s -E -dM -o - -triple dxil-pc-shadermodel6.0-pixel | FileCheck -match-full-lines %s --check-prefixes=CHECK,PIXEL,NOHALF
|
|
// RUN: %clang_cc1 %s -E -dM -o - -triple dxil-pc-shadermodel6.0-vertex | FileCheck -match-full-lines %s --check-prefixes=CHECK,VERTEX,NOHALF
|
|
// RUN: %clang_cc1 %s -E -dM -o - -triple dxil-pc-shadermodel6.3-vertex -fnative-half-type -fnative-int16-type | FileCheck -match-full-lines %s --check-prefixes=CHECK,VERTEX,HALF
|
|
|
|
// RUN: %clang_cc1 %s -E -dM -o - -triple spirv-unknown-vulkan-compute | FileCheck -match-full-lines %s --check-prefixes=CHECK,COMPUTE,NOHALF,SPIRV
|
|
|
|
// HALF: #define __HLSL_ENABLE_16_BIT 1
|
|
// NOHALF-NOT: __HLSL_ENABLE_16_BIT
|
|
|
|
// CHECK: #define __HLSL_VERSION 2028
|
|
|
|
// CHECK: #define __SHADER_STAGE_AMPLIFICATION 14
|
|
// CHECK: #define __SHADER_STAGE_COMPUTE 5
|
|
// CHECK: #define __SHADER_STAGE_DOMAIN 4
|
|
// CHECK: #define __SHADER_STAGE_GEOMETRY 2
|
|
// CHECK: #define __SHADER_STAGE_HULL 3
|
|
// CHECK: #define __SHADER_STAGE_LIBRARY 6
|
|
// CHECK: #define __SHADER_STAGE_MESH 13
|
|
// CHECK: #define __SHADER_STAGE_PIXEL 0
|
|
// CHECK: #define __SHADER_STAGE_VERTEX 1
|
|
|
|
// AMPLIFICATION: #define __SHADER_TARGET_STAGE 14
|
|
// COMPUTE: #define __SHADER_TARGET_STAGE 5
|
|
// DOMAIN: #define __SHADER_TARGET_STAGE 4
|
|
// GEOMETRY: #define __SHADER_TARGET_STAGE 2
|
|
// HULL: #define __SHADER_TARGET_STAGE 3
|
|
// LIBRARY: #define __SHADER_TARGET_STAGE 6
|
|
// MESH: #define __SHADER_TARGET_STAGE 13
|
|
// PIXEL: #define __SHADER_TARGET_STAGE 0
|
|
// VERTEX: #define __SHADER_TARGET_STAGE 1
|
|
|
|
// SPIRV: #define __spirv__ 1
|
|
|
|
// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-library %s -E -dM -o - -x hlsl -std=hlsl2015 2>&1 | FileCheck -match-full-lines %s --check-prefixes=STD2015
|
|
// STD2015: warning: support for HLSL language version hlsl2015 is incomplete, recommend using hlsl202x instead
|
|
// STD2015: #define __HLSL_VERSION 2015
|
|
|
|
// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-library %s -E -dM -o - -x hlsl -std=hlsl2016 2>&1 | FileCheck -match-full-lines %s --check-prefixes=STD2016
|
|
// STD2016: warning: support for HLSL language version hlsl2016 is incomplete, recommend using hlsl202x instead
|
|
// STD2016: #define __HLSL_VERSION 2016
|
|
|
|
// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-library %s -E -dM -o - -x hlsl -std=hlsl2017 2>&1 | FileCheck -match-full-lines %s --check-prefixes=STD2017
|
|
// STD2017: warning: support for HLSL language version hlsl2017 is incomplete, recommend using hlsl202x instead
|
|
// STD2017: #define __HLSL_VERSION 2017
|
|
|
|
// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-library %s -E -dM -o - -x hlsl -std=hlsl2018 2>&1 | FileCheck -match-full-lines %s --check-prefixes=STD2018
|
|
// STD2018: warning: support for HLSL language version hlsl2018 is incomplete, recommend using hlsl202x instead
|
|
// STD2018: #define __HLSL_VERSION 2018
|
|
|
|
// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-library %s -E -dM -o - -x hlsl -std=hlsl2021 2>&1 | FileCheck -match-full-lines %s --check-prefixes=STD2021
|
|
// STD2021: warning: support for HLSL language version hlsl2021 is incomplete, recommend using hlsl202x instead
|
|
// STD2021: #define __HLSL_VERSION 2021
|
|
|
|
// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-library %s -E -dM -o - -x hlsl -std=hlsl202x | FileCheck -match-full-lines %s --check-prefixes=STD202x
|
|
// STD202x-NOT: warning
|
|
// STD202x: #define __HLSL_VERSION 2028
|
|
|
|
// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-library %s -E -dM -o - -x hlsl -std=hlsl202y | FileCheck -match-full-lines %s --check-prefixes=STD202y
|
|
// STD202y-NOT: warning
|
|
// STD202y: #define __HLSL_VERSION 2029
|