yum-mirror/slang

Making it easier to work with shaders

git clone https://git.yummers.dev/yum-mirror/slang

Yong HeAdd verification logic on push and specialization constants. (#5887)45af24672

master
332 B16 linesraw
1//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK): -target spirv
2
3struct T { int x; int y; }
4
5// CHECK: ([[# @LINE+1]]): error 31218
6[vk::constant_id(1)]
7const T st;
8
9[vk::constant_id(1)]
10// CHECK: ([[# @LINE+1]]): error 31219
11static const int x = 2;
12
13[push_constant]
14[vk::constant_id(1)]
15// CHECK: ([[# @LINE+1]]): error 31220
16const int y;