yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
ebe8ddefc
master
1// direct-spirv-emit.slang 2 3//TEST:SIMPLE(filecheck=CHECK):-target spirv -entry computeMain -stage compute -emit-spirv-directly 4 5// Test ability to directly output SPIR-V 6 7// CHECK: OpCapability Shader 8// CHECK: OpMemoryModel Logical GLSL450 9// CHECK: OpEntryPoint GLCompute %computeMain "main" 10// CHECK: OpExecutionMode %computeMain LocalSize 4 1 1 11 12[numthreads(4,1,1)] 13void computeMain() 14{}