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
62 lines
2.4 KiB
HLSL
62 lines
2.4 KiB
HLSL
// RUN: %clang_cc1 -triple dxil-pc-shadermodel5.0-pixel -fsyntax-only -verify %s
|
|
|
|
// Platform shader model, no environment parameter
|
|
__attribute__((availability(shadermodel, introduced = 6.0)))
|
|
unsigned f1(); // #f1
|
|
|
|
__attribute__((availability(shadermodel, introduced = 5.1)))
|
|
unsigned f2(); // #f2
|
|
|
|
__attribute__((availability(shadermodel, introduced = 5.0)))
|
|
unsigned f3();
|
|
|
|
// Platform shader model, environment parameter restricting earlier version,
|
|
// available in all environments in higher versions
|
|
__attribute__((availability(shadermodel, introduced = 2.0, environment = pixel)))
|
|
__attribute__((availability(shadermodel, introduced = 6.0)))
|
|
unsigned f4(); // #f4
|
|
|
|
__attribute__((availability(shadermodel, introduced = 2.0, environment = pixel)))
|
|
__attribute__((availability(shadermodel, introduced = 5.0)))
|
|
unsigned f5();
|
|
|
|
// Platform shader model, environment parameter restricting earlier version,
|
|
// never available in all environments in higher versions
|
|
__attribute__((availability(shadermodel, introduced = 2.0, environment = pixel)))
|
|
__attribute__((availability(shadermodel, introduced = 6.0, environment = compute)))
|
|
__attribute__((availability(shadermodel, introduced = 5.0, environment = mesh)))
|
|
unsigned f6(); // #f6
|
|
|
|
__attribute__((availability(shadermodel, introduced = 2.0, environment = pixel)))
|
|
__attribute__((availability(shadermodel, introduced = 6.0, environment = mesh)))
|
|
unsigned f7(); // #f7
|
|
|
|
__attribute__((availability(shadermodel, introduced = 2.0, environment = pixel)))
|
|
__attribute__((availability(shadermodel, introduced = 5.0, environment = compute)))
|
|
__attribute__((availability(shadermodel, introduced = 6.0, environment = mesh)))
|
|
unsigned f8();
|
|
|
|
int main() : A {
|
|
// expected-error@#f1_call {{'f1' is only available on Shader Model 6.0 or newer}}
|
|
// expected-note@#f1 {{'f1' has been marked as being introduced in Shader Model 6.0 here, but the deployment target is Shader Model 5.0}}
|
|
unsigned A = f1(); // #f1_call
|
|
|
|
// expected-error@#f2_call {{'f2' is only available on Shader Model 5.1 or newer}}
|
|
// expected-note@#f2 {{'f2' has been marked as being introduced in Shader Model 5.1 here, but the deployment target is Shader Model 5.0}}
|
|
unsigned B = f2(); // #f2_call
|
|
|
|
unsigned C = f3();
|
|
|
|
unsigned D = f4(); // #f4_call
|
|
|
|
unsigned E = f5();
|
|
|
|
unsigned F = f6(); // #f6_call
|
|
|
|
unsigned G = f7(); // #f7_call
|
|
|
|
unsigned H = f8();
|
|
|
|
return 0;
|
|
}
|