mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-22 23:04:07 +00:00
62 lines
2.6 KiB
Plaintext
62 lines
2.6 KiB
Plaintext
; SPIR-V
|
|
; Version: 1.0
|
|
; Generator: Khronos Glslang Reference Front End; 10
|
|
; Bound: 31
|
|
; Schema: 0
|
|
OpCapability Shader
|
|
%1 = OpExtInstImport "GLSL.std.450"
|
|
OpMemoryModel Logical GLSL450
|
|
OpEntryPoint Vertex %main "main" %v_uv %a_uv %_ %a_pos
|
|
OpSource GLSL 460
|
|
OpName %main "main"
|
|
OpName %v_uv "v_uv"
|
|
OpName %a_uv "a_uv"
|
|
OpName %gl_PerVertex "gl_PerVertex"
|
|
OpMemberName %gl_PerVertex 0 "gl_Position"
|
|
OpMemberName %gl_PerVertex 1 "gl_PointSize"
|
|
OpMemberName %gl_PerVertex 2 "gl_ClipDistance"
|
|
OpMemberName %gl_PerVertex 3 "gl_CullDistance"
|
|
OpName %_ ""
|
|
OpName %a_pos "a_pos"
|
|
OpDecorate %v_uv Location 0
|
|
OpDecorate %a_uv Location 1
|
|
OpMemberDecorate %gl_PerVertex 0 BuiltIn Position
|
|
OpMemberDecorate %gl_PerVertex 1 BuiltIn PointSize
|
|
OpMemberDecorate %gl_PerVertex 2 BuiltIn ClipDistance
|
|
OpMemberDecorate %gl_PerVertex 3 BuiltIn CullDistance
|
|
OpDecorate %gl_PerVertex Block
|
|
OpDecorate %a_pos Location 0
|
|
%void = OpTypeVoid
|
|
%3 = OpTypeFunction %void
|
|
%float = OpTypeFloat 32
|
|
%v2float = OpTypeVector %float 2
|
|
%_ptr_Output_v2float = OpTypePointer Output %v2float
|
|
%v_uv = OpVariable %_ptr_Output_v2float Output
|
|
%_ptr_Input_v2float = OpTypePointer Input %v2float
|
|
%a_uv = OpVariable %_ptr_Input_v2float Input
|
|
%v4float = OpTypeVector %float 4
|
|
%uint = OpTypeInt 32 0
|
|
%uint_1 = OpConstant %uint 1
|
|
%_arr_float_uint_1 = OpTypeArray %float %uint_1
|
|
%gl_PerVertex = OpTypeStruct %v4float %float %_arr_float_uint_1 %_arr_float_uint_1
|
|
%_ptr_Output_gl_PerVertex = OpTypePointer Output %gl_PerVertex
|
|
%_ = OpVariable %_ptr_Output_gl_PerVertex Output
|
|
%int = OpTypeInt 32 1
|
|
%int_0 = OpConstant %int 0
|
|
%a_pos = OpVariable %_ptr_Input_v2float Input
|
|
%float_0 = OpConstant %float 0
|
|
%float_1 = OpConstant %float 1
|
|
%_ptr_Output_v4float = OpTypePointer Output %v4float
|
|
%main = OpFunction %void None %3
|
|
%5 = OpLabel
|
|
%12 = OpLoad %v2float %a_uv
|
|
OpStore %v_uv %12
|
|
%23 = OpLoad %v2float %a_pos
|
|
%26 = OpCompositeExtract %float %23 0
|
|
%27 = OpCompositeExtract %float %23 1
|
|
%28 = OpCompositeConstruct %v4float %26 %27 %float_0 %float_1
|
|
%30 = OpAccessChain %_ptr_Output_v4float %_ %int_0
|
|
OpStore %30 %28
|
|
OpReturn
|
|
OpFunctionEnd
|