yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
c43f6fa55
master
1//TEST:SIMPLE(filecheck=SPIRV): -target spirv -stage vertex -entry main -allow-glsl -emit-spirv-directly 2//TEST:SIMPLE(filecheck=SPIRV): -target spirv -stage vertex -entry main -allow-glsl 3//TEST:SIMPLE(filecheck=METAL): -target metal -stage vertex -entry main -allow-glsl -matrix-layout-row-major 4#version 310 es 5layout(location = 0) in highp vec4 a_position; 6 7layout(std140, set = 0, binding = 0) uniform buff0 { 8 mat4x4 m1; 9 mat4x4 m2; 10}; 11 12 13void main() 14{ 15 gl_Position = m1 * m2 * a_position; 16 17 // SPIRV: OpEntryPoint 18 // SPIRV: OpMatrixTimesMatrix 19 // SPIRV: OpMatrixTimesVector 20 21 // METAL: {{.*}}m1{{.*}}*{{.*}}m2{{.*}}*{{.*}}a_position{{.*}} 22} 23