Dawn/vertex.glsl

89 lines
1.8 KiB
GLSL

#version 450
layout(column_major) uniform;
layout(column_major) buffer;
#line 1312 0
struct _MatrixStorage_float4x4std140_0
{
vec4 data_0[4];
};
#line 7 1
struct SLANG_ParameterGroup_Uniforms_std140_0
{
_MatrixStorage_float4x4std140_0 u_Projection_0;
_MatrixStorage_float4x4std140_0 u_View_0;
_MatrixStorage_float4x4std140_0 u_Model_0;
vec4 u_Color_0;
bool u_HasTexture_0;
};
#line 2
layout(binding = 0)
layout(std140) uniform block_SLANG_ParameterGroup_Uniforms_std140_0
{
_MatrixStorage_float4x4std140_0 u_Projection_0;
_MatrixStorage_float4x4std140_0 u_View_0;
_MatrixStorage_float4x4std140_0 u_Model_0;
vec4 u_Color_0;
bool u_HasTexture_0;
}Uniforms_0;
#line 2
mat4x4 unpackStorage_0(_MatrixStorage_float4x4std140_0 _S1)
{
#line 2
return mat4x4(_S1.data_0[0][0], _S1.data_0[0][1], _S1.data_0[0][2], _S1.data_0[0][3], _S1.data_0[1][0], _S1.data_0[1][1], _S1.data_0[1][2], _S1.data_0[1][3], _S1.data_0[2][0], _S1.data_0[2][1], _S1.data_0[2][2], _S1.data_0[2][3], _S1.data_0[3][0], _S1.data_0[3][1], _S1.data_0[3][2], _S1.data_0[3][3]);
}
#line 13
layout(location = 0)
out vec2 entryPointParam_vertexMain_uv_0;
#line 13
layout(location = 0)
in vec3 assembledVertex_position_0;
#line 13
layout(location = 1)
in vec2 assembledVertex_texcoord_0;
#line 25
struct VertexStageOutput_0
{
vec2 uv_0;
vec4 sv_position_0;
};
void main()
{
VertexStageOutput_0 output_0;
output_0.uv_0 = assembledVertex_texcoord_0;
output_0.sv_position_0 = (((((((((unpackStorage_0(Uniforms_0.u_Projection_0)) * (unpackStorage_0(Uniforms_0.u_View_0))))) * (unpackStorage_0(Uniforms_0.u_Model_0))))) * (vec4(assembledVertex_position_0, 1.0))));
#line 45
VertexStageOutput_0 _S2 = output_0;
#line 45
entryPointParam_vertexMain_uv_0 = output_0.uv_0;
#line 45
gl_Position = _S2.sv_position_0;
#line 45
return;
}