brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · f14c014 Raw
21 lines · plain
1// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.8-pixel -x hlsl %s  -verify2// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.8-vertex -x hlsl %s  -verify3// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.8-geometry -x hlsl %s  -verify4// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.8-hull -x hlsl %s  -verify5// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.8-domain -x hlsl %s  -verify6 7#if __SHADER_TARGET_STAGE == __SHADER_STAGE_PIXEL8// expected-error@#WaveSize {{attribute 'WaveSize' is unsupported in 'pixel' shaders, requires one of the following: compute, amplification, mesh}}9#elif __SHADER_TARGET_STAGE == __SHADER_STAGE_VERTEX10// expected-error@#WaveSize {{attribute 'WaveSize' is unsupported in 'vertex' shaders, requires one of the following: compute, amplification, mesh}}11#elif __SHADER_TARGET_STAGE == __SHADER_STAGE_GEOMETRY12// expected-error@#WaveSize {{attribute 'WaveSize' is unsupported in 'geometry' shaders, requires one of the following: compute, amplification, mesh}}13#elif __SHADER_TARGET_STAGE == __SHADER_STAGE_HULL14// expected-error@#WaveSize {{attribute 'WaveSize' is unsupported in 'hull' shaders, requires one of the following: compute, amplification, mesh}}15#elif __SHADER_TARGET_STAGE == __SHADER_STAGE_DOMAIN16// expected-error@#WaveSize {{attribute 'WaveSize' is unsupported in 'domain' shaders, requires one of the following: compute, amplification, mesh}}17#endif18[WaveSize(16)] // #WaveSize19void main() {20}21