| 1 |
// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.8-pixel -x hlsl %s -verify |
| 2 |
// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.8-vertex -x hlsl %s -verify |
| 3 |
// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.8-geometry -x hlsl %s -verify |
| 4 |
// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.8-hull -x hlsl %s -verify |
| 5 |
// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.8-domain -x hlsl %s -verify |
| 6 |
|
| 7 |
#if __SHADER_TARGET_STAGE == __SHADER_STAGE_PIXEL |
| 8 |
// 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_VERTEX |
| 10 |
// 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_GEOMETRY |
| 12 |
// 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_HULL |
| 14 |
// 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_DOMAIN |
| 16 |
// expected-error@#WaveSize {{attribute 'WaveSize' is unsupported in 'domain' shaders, requires one of the following: compute, amplification, mesh}} |
| 17 |
#endif |
| 18 |
[WaveSize(16)] // #WaveSize |
| 19 |
void main() { |
| 20 |
} |