yum-mirror/slang

Making it easier to work with shaders

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

Yong HeSupport different SPIRV versions. (#4254)c5a453e56

master
381 B18 linesraw
1//TEST:SIMPLE(filecheck=SPIRV15): -target spirv
2
3//TEST:SIMPLE(filecheck=SPIRV14): -target spirv -profile spirv_1_4
4
5// Test that we can use -profile to control the resulting spirv version.
6
7// By default, we emit spirv 1.5
8
9// SPIRV15: Version: 1.5
10
11// If the user specified an explicit spirv version, we will use it.
12// SPIRV14: Version: 1.4
13
14[numthreads(1,1,1)]
15void main()
16{
17
18}