yum-mirror/slang

Making it easier to work with shaders

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

Yong HeUnify stdlib `Texture` types into one generic type. (#3327)4c78efd0c

master
593 B21 linesraw
1//TEST:SIMPLE(filecheck=CHECK): -target spirv -stage vertex -entry main -allow-glsl -emit-spirv-directly
2//TEST:SIMPLE(filecheck=CHECK): -target spirv -stage vertex -entry main -allow-glsl
3
4#version 450 core
5layout(location = 0) in highp vec4 a_position;
6layout(location = 4) in highp vec2 a_in0;
7layout(location = 5) in highp float a_in1;
8layout(location = 0) out highp vec2 v_texCoord;
9layout(location = 1) out highp float v_lodBias;
10out gl_PerVertex {
11	vec4 gl_Position;
12};
13
14void main()
15{
16	gl_Position = a_position;
17	v_texCoord = a_in0;
18    v_lodBias = a_in1;
19    // CHECK: OpEntryPoint
20}
21