2021-05-18 09:24:18 +00:00
|
|
|
; SPIR-V
|
|
|
|
; Version: 1.3
|
|
|
|
; Generator: Google Tint Compiler; 0
|
2022-11-02 02:25:38 +00:00
|
|
|
; Bound: 61
|
2021-05-18 09:24:18 +00:00
|
|
|
; Schema: 0
|
|
|
|
OpCapability Shader
|
|
|
|
OpMemoryModel Logical GLSL450
|
2021-08-05 17:34:19 +00:00
|
|
|
OpEntryPoint Vertex %vtx_main "vtx_main" %cur_position_1 %color_1 %vtxFragColor_1 %Position_1 %vertex_point_size
|
|
|
|
OpEntryPoint Fragment %frag_main "frag_main" %fragColor_1 %value
|
2021-05-18 09:24:18 +00:00
|
|
|
OpExecutionMode %frag_main OriginUpperLeft
|
2021-08-05 17:34:19 +00:00
|
|
|
OpName %cur_position_1 "cur_position_1"
|
|
|
|
OpName %color_1 "color_1"
|
|
|
|
OpName %vtxFragColor_1 "vtxFragColor_1"
|
|
|
|
OpName %Position_1 "Position_1"
|
|
|
|
OpName %vertex_point_size "vertex_point_size"
|
|
|
|
OpName %fragColor_1 "fragColor_1"
|
|
|
|
OpName %value "value"
|
2022-11-02 02:25:38 +00:00
|
|
|
OpName %uniforms_block "uniforms_block"
|
|
|
|
OpMemberName %uniforms_block 0 "inner"
|
2021-05-18 09:24:18 +00:00
|
|
|
OpName %Uniforms "Uniforms"
|
|
|
|
OpMemberName %Uniforms 0 "modelViewProjectionMatrix"
|
|
|
|
OpName %uniforms "uniforms"
|
|
|
|
OpName %VertexOutput "VertexOutput"
|
|
|
|
OpMemberName %VertexOutput 0 "vtxFragColor"
|
|
|
|
OpMemberName %VertexOutput 1 "Position"
|
|
|
|
OpName %VertexInput "VertexInput"
|
|
|
|
OpMemberName %VertexInput 0 "cur_position"
|
|
|
|
OpMemberName %VertexInput 1 "color"
|
2021-08-05 17:34:19 +00:00
|
|
|
OpName %vtx_main_inner "vtx_main_inner"
|
|
|
|
OpName %input "input"
|
2021-05-18 09:24:18 +00:00
|
|
|
OpName %output "output"
|
2021-08-05 17:34:19 +00:00
|
|
|
OpName %vtx_main "vtx_main"
|
|
|
|
OpName %frag_main_inner "frag_main_inner"
|
|
|
|
OpName %fragColor "fragColor"
|
2021-05-18 09:24:18 +00:00
|
|
|
OpName %frag_main "frag_main"
|
2021-08-05 17:34:19 +00:00
|
|
|
OpDecorate %cur_position_1 Location 0
|
|
|
|
OpDecorate %color_1 Location 1
|
|
|
|
OpDecorate %vtxFragColor_1 Location 0
|
|
|
|
OpDecorate %Position_1 BuiltIn Position
|
|
|
|
OpDecorate %vertex_point_size BuiltIn PointSize
|
|
|
|
OpDecorate %fragColor_1 Location 0
|
|
|
|
OpDecorate %value Location 0
|
2022-11-02 02:25:38 +00:00
|
|
|
OpDecorate %uniforms_block Block
|
|
|
|
OpMemberDecorate %uniforms_block 0 Offset 0
|
2021-05-18 09:24:18 +00:00
|
|
|
OpMemberDecorate %Uniforms 0 Offset 0
|
|
|
|
OpMemberDecorate %Uniforms 0 ColMajor
|
|
|
|
OpMemberDecorate %Uniforms 0 MatrixStride 16
|
2021-06-04 22:17:37 +00:00
|
|
|
OpDecorate %uniforms NonWritable
|
2021-05-18 09:24:18 +00:00
|
|
|
OpDecorate %uniforms Binding 0
|
|
|
|
OpDecorate %uniforms DescriptorSet 0
|
|
|
|
OpMemberDecorate %VertexOutput 0 Offset 0
|
|
|
|
OpMemberDecorate %VertexOutput 1 Offset 16
|
|
|
|
OpMemberDecorate %VertexInput 0 Offset 0
|
|
|
|
OpMemberDecorate %VertexInput 1 Offset 16
|
|
|
|
%float = OpTypeFloat 32
|
|
|
|
%v4float = OpTypeVector %float 4
|
2021-08-05 17:34:19 +00:00
|
|
|
%_ptr_Input_v4float = OpTypePointer Input %v4float
|
|
|
|
%cur_position_1 = OpVariable %_ptr_Input_v4float Input
|
|
|
|
%color_1 = OpVariable %_ptr_Input_v4float Input
|
|
|
|
%_ptr_Output_v4float = OpTypePointer Output %v4float
|
|
|
|
%8 = OpConstantNull %v4float
|
|
|
|
%vtxFragColor_1 = OpVariable %_ptr_Output_v4float Output %8
|
|
|
|
%Position_1 = OpVariable %_ptr_Output_v4float Output %8
|
|
|
|
%_ptr_Output_float = OpTypePointer Output %float
|
|
|
|
%12 = OpConstantNull %float
|
|
|
|
%vertex_point_size = OpVariable %_ptr_Output_float Output %12
|
|
|
|
%fragColor_1 = OpVariable %_ptr_Input_v4float Input
|
|
|
|
%value = OpVariable %_ptr_Output_v4float Output %8
|
2021-05-18 09:24:18 +00:00
|
|
|
%mat4v4float = OpTypeMatrix %v4float 4
|
|
|
|
%Uniforms = OpTypeStruct %mat4v4float
|
2022-11-02 02:25:38 +00:00
|
|
|
%uniforms_block = OpTypeStruct %Uniforms
|
|
|
|
%_ptr_Uniform_uniforms_block = OpTypePointer Uniform %uniforms_block
|
|
|
|
%uniforms = OpVariable %_ptr_Uniform_uniforms_block Uniform
|
2021-05-18 09:24:18 +00:00
|
|
|
%VertexOutput = OpTypeStruct %v4float %v4float
|
|
|
|
%VertexInput = OpTypeStruct %v4float %v4float
|
2022-11-02 02:25:38 +00:00
|
|
|
%20 = OpTypeFunction %VertexOutput %VertexInput
|
2021-05-18 09:24:18 +00:00
|
|
|
%_ptr_Function_VertexOutput = OpTypePointer Function %VertexOutput
|
2022-11-02 02:25:38 +00:00
|
|
|
%28 = OpConstantNull %VertexOutput
|
2021-05-18 09:24:18 +00:00
|
|
|
%uint = OpTypeInt 32 0
|
|
|
|
%uint_1 = OpConstant %uint 1
|
|
|
|
%_ptr_Function_v4float = OpTypePointer Function %v4float
|
|
|
|
%uint_0 = OpConstant %uint 0
|
|
|
|
%_ptr_Uniform_mat4v4float = OpTypePointer Uniform %mat4v4float
|
2021-08-05 17:34:19 +00:00
|
|
|
%void = OpTypeVoid
|
2022-11-02 02:25:38 +00:00
|
|
|
%42 = OpTypeFunction %void
|
2021-08-05 17:34:19 +00:00
|
|
|
%float_1 = OpConstant %float 1
|
2022-11-02 02:25:38 +00:00
|
|
|
%53 = OpTypeFunction %v4float %v4float
|
|
|
|
%vtx_main_inner = OpFunction %VertexOutput None %20
|
2021-08-05 17:34:19 +00:00
|
|
|
%input = OpFunctionParameter %VertexInput
|
2022-11-02 02:25:38 +00:00
|
|
|
%25 = OpLabel
|
|
|
|
%output = OpVariable %_ptr_Function_VertexOutput Function %28
|
|
|
|
%32 = OpAccessChain %_ptr_Function_v4float %output %uint_1
|
|
|
|
%35 = OpAccessChain %_ptr_Uniform_mat4v4float %uniforms %uint_0 %uint_0
|
|
|
|
%36 = OpLoad %mat4v4float %35
|
|
|
|
%37 = OpCompositeExtract %v4float %input 0
|
|
|
|
%38 = OpMatrixTimesVector %v4float %36 %37
|
|
|
|
OpStore %32 %38
|
|
|
|
%39 = OpAccessChain %_ptr_Function_v4float %output %uint_0
|
|
|
|
%40 = OpCompositeExtract %v4float %input 1
|
|
|
|
OpStore %39 %40
|
|
|
|
%41 = OpLoad %VertexOutput %output
|
|
|
|
OpReturnValue %41
|
2021-05-18 09:24:18 +00:00
|
|
|
OpFunctionEnd
|
2022-11-02 02:25:38 +00:00
|
|
|
%vtx_main = OpFunction %void None %42
|
|
|
|
%45 = OpLabel
|
|
|
|
%47 = OpLoad %v4float %cur_position_1
|
|
|
|
%48 = OpLoad %v4float %color_1
|
|
|
|
%49 = OpCompositeConstruct %VertexInput %47 %48
|
|
|
|
%46 = OpFunctionCall %VertexOutput %vtx_main_inner %49
|
|
|
|
%50 = OpCompositeExtract %v4float %46 0
|
|
|
|
OpStore %vtxFragColor_1 %50
|
|
|
|
%51 = OpCompositeExtract %v4float %46 1
|
|
|
|
OpStore %Position_1 %51
|
2021-08-05 17:34:19 +00:00
|
|
|
OpStore %vertex_point_size %float_1
|
2021-05-18 09:24:18 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
2022-11-02 02:25:38 +00:00
|
|
|
%frag_main_inner = OpFunction %v4float None %53
|
2021-08-05 17:34:19 +00:00
|
|
|
%fragColor = OpFunctionParameter %v4float
|
2022-11-02 02:25:38 +00:00
|
|
|
%56 = OpLabel
|
2021-08-05 17:34:19 +00:00
|
|
|
OpReturnValue %fragColor
|
2021-05-18 09:24:18 +00:00
|
|
|
OpFunctionEnd
|
2022-11-02 02:25:38 +00:00
|
|
|
%frag_main = OpFunction %void None %42
|
|
|
|
%58 = OpLabel
|
|
|
|
%60 = OpLoad %v4float %fragColor_1
|
|
|
|
%59 = OpFunctionCall %v4float %frag_main_inner %60
|
|
|
|
OpStore %value %59
|
2021-05-18 09:24:18 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|