yum-mirror/slang

Making it easier to work with shaders

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

Yong HeAdd MLP training examples. (#7550)f28f67d98

master
857 B27 linesraw
1//TEST:SIMPLE(filecheck=SPIRV): -target spirv -emit-spirv-directly -entry computeMain -stage compute -profile spirv_1_3
2//TEST:SIMPLE(filecheck=GLSL): -target glsl -entry computeMain -stage compute -profile sm_5_0
3//TEST:SIMPLE(filecheck=HLSL): -target hlsl  -entry computeMain -stage compute -profile sm_5_0
4//TEST:SIMPLE(filecheck=CHECK_IGNORE_CAPS): -target spirv -emit-spirv-directly -entry computeMain -stage compute  -profile spirv_1_3 -ignore-capabilities
5
6
7// CHECK_IGNORE_CAPS-NOT: warning 41012
8
9// SPIRV: warning 41012
10// SPIRV-NOT: spirv_1_2
11// SPIRV-SAME: spvGroupNonUniformBallot
12
13// GLSL: warning 41012
14// GLSL-NOT: GLSL_400
15// GLSL-NOT: GLSL_430
16// GLSL-SAME: GL_KHR_shader_subgroup_basic
17
18// HLSL: warning 41012
19// HLSL-NOT: sm_5_1
20// HLSL-SAME: sm_6_0
21
22[numthreads(1,1,1)]
23void computeMain()
24{
25    if (WaveIsFirstLane())
26        return;
27}