yum-mirror/slang

Making it easier to work with shaders

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

ArielG-NVAdd `_Internal`/`External` atom enforcement and validation. (#4702)2e7e2b568

master
942 B29 linesraw
1//TEST:SIMPLE(filecheck=PASS): -target glsl -entry main -stage compute -allow-glsl
2//TEST:SIMPLE(filecheck=PASS): -target glsl -entry main -stage compute -allow-glsl -capability shader5_sm_5_0
3//TEST:SIMPLE(filecheck=PASS): -target glsl -entry main -stage compute -allow-glsl -profile sm_6_0
4//TEST:SIMPLE(filecheck=WARN): -target glsl -entry main -stage compute -allow-glsl -capability GLSL_130
5//TEST:SIMPLE(filecheck=ERROR): -target glsl -entry main -stage compute -allow-glsl -capability GLSL_130 -restrictive-capability-check
6// CHECK_IGNORE_CAPS-NOT: error 41012
7
8// Check that a non-static member method implictly requires capabilities
9// defined in ThisType.
10
11//PASS-NOT: warning 41012
12//PASS-NOT: error 41012
13
14//WARN: warning 41012
15//WARN-NOT: error 41012
16
17//ERROR-NOT: warning 41012
18//ERROR: error 41012
19
20buffer MyBlockName
21{
22    int data;
23} inputBuffer;
24
25[numthreads(1,1,1)]
26void main()
27{
28    inputBuffer.data = firstbithigh(1);
29}