| 1 |
; SPIR-V |
| 2 |
; Version: 1.0 |
| 3 |
; Generator: Khronos Glslang Reference Front End; 6 |
| 4 |
; Bound: 74 |
| 5 |
; Schema: 0 |
| 6 |
OpCapability Geometry |
| 7 |
%1 = OpExtInstImport "GLSL.std.450" |
| 8 |
OpMemoryModel Logical GLSL450 |
| 9 |
OpEntryPoint Geometry %main "main" %stream_pos %stream_layer %input_pos |
| 10 |
OpExecutionMode %main Triangles |
| 11 |
OpExecutionMode %main Invocations 1 |
| 12 |
OpExecutionMode %main OutputTriangleStrip |
| 13 |
OpExecutionMode %main OutputVertices 3 |
| 14 |
OpSource HLSL 500 |
| 15 |
OpName %main "main" |
| 16 |
OpName %VertexOutput "VertexOutput" |
| 17 |
OpMemberName %VertexOutput 0 "pos" |
| 18 |
OpName %GeometryOutput "GeometryOutput" |
| 19 |
OpMemberName %GeometryOutput 0 "pos" |
| 20 |
OpMemberName %GeometryOutput 1 "layer" |
| 21 |
OpName %_main_struct_VertexOutput_vf41_3__struct_GeometryOutput_vf4_u11_ "@main(struct-VertexOutput-vf41[3];struct-GeometryOutput-vf4-u11;" |
| 22 |
OpName %input "input" |
| 23 |
OpName %stream "stream" |
| 24 |
OpName %output "output" |
| 25 |
OpName %v "v" |
| 26 |
OpName %stream_pos "stream.pos" |
| 27 |
OpName %stream_layer "stream.layer" |
| 28 |
OpName %input_0 "input" |
| 29 |
OpName %input_pos "input.pos" |
| 30 |
OpName %stream_0 "stream" |
| 31 |
OpName %param "param" |
| 32 |
OpName %param_0 "param" |
| 33 |
OpDecorate %stream_pos BuiltIn Position |
| 34 |
OpDecorate %stream_layer BuiltIn Layer |
| 35 |
OpDecorate %input_pos BuiltIn Position |
| 36 |
%void = OpTypeVoid |
| 37 |
%3 = OpTypeFunction %void |
| 38 |
%float = OpTypeFloat 32 |
| 39 |
%v4float = OpTypeVector %float 4 |
| 40 |
%VertexOutput = OpTypeStruct %v4float |
| 41 |
%uint = OpTypeInt 32 0 |
| 42 |
%uint_3 = OpConstant %uint 3 |
| 43 |
%_arr_VertexOutput_uint_3 = OpTypeArray %VertexOutput %uint_3 |
| 44 |
%_ptr_Function__arr_VertexOutput_uint_3 = OpTypePointer Function %_arr_VertexOutput_uint_3 |
| 45 |
%GeometryOutput = OpTypeStruct %v4float %uint |
| 46 |
%_ptr_Function_GeometryOutput = OpTypePointer Function %GeometryOutput |
| 47 |
%15 = OpTypeFunction %void %_ptr_Function__arr_VertexOutput_uint_3 %_ptr_Function_GeometryOutput |
| 48 |
%int = OpTypeInt 32 1 |
| 49 |
%int_1 = OpConstant %int 1 |
| 50 |
%uint_1 = OpConstant %uint 1 |
| 51 |
%_ptr_Function_uint = OpTypePointer Function %uint |
| 52 |
%_ptr_Function_int = OpTypePointer Function %int |
| 53 |
%int_0 = OpConstant %int 0 |
| 54 |
%int_3 = OpConstant %int 3 |
| 55 |
%bool = OpTypeBool |
| 56 |
%_ptr_Function_v4float = OpTypePointer Function %v4float |
| 57 |
%_ptr_Output_v4float = OpTypePointer Output %v4float |
| 58 |
%stream_pos = OpVariable %_ptr_Output_v4float Output |
| 59 |
%_ptr_Output_uint = OpTypePointer Output %uint |
| 60 |
%stream_layer = OpVariable %_ptr_Output_uint Output |
| 61 |
%_arr_v4float_uint_3 = OpTypeArray %v4float %uint_3 |
| 62 |
%_ptr_Input__arr_v4float_uint_3 = OpTypePointer Input %_arr_v4float_uint_3 |
| 63 |
%input_pos = OpVariable %_ptr_Input__arr_v4float_uint_3 Input |
| 64 |
%_ptr_Input_v4float = OpTypePointer Input %v4float |
| 65 |
%int_2 = OpConstant %int 2 |
| 66 |
%main = OpFunction %void None %3 |
| 67 |
%5 = OpLabel |
| 68 |
%input_0 = OpVariable %_ptr_Function__arr_VertexOutput_uint_3 Function |
| 69 |
%stream_0 = OpVariable %_ptr_Function_GeometryOutput Function |
| 70 |
%param = OpVariable %_ptr_Function__arr_VertexOutput_uint_3 Function |
| 71 |
%param_0 = OpVariable %_ptr_Function_GeometryOutput Function |
| 72 |
%58 = OpAccessChain %_ptr_Input_v4float %input_pos %int_0 |
| 73 |
%59 = OpLoad %v4float %58 |
| 74 |
%60 = OpAccessChain %_ptr_Function_v4float %input_0 %int_0 %int_0 |
| 75 |
OpStore %60 %59 |
| 76 |
%61 = OpAccessChain %_ptr_Input_v4float %input_pos %int_1 |
| 77 |
%62 = OpLoad %v4float %61 |
| 78 |
%63 = OpAccessChain %_ptr_Function_v4float %input_0 %int_1 %int_0 |
| 79 |
OpStore %63 %62 |
| 80 |
%65 = OpAccessChain %_ptr_Input_v4float %input_pos %int_2 |
| 81 |
%66 = OpLoad %v4float %65 |
| 82 |
%67 = OpAccessChain %_ptr_Function_v4float %input_0 %int_2 %int_0 |
| 83 |
OpStore %67 %66 |
| 84 |
%70 = OpLoad %_arr_VertexOutput_uint_3 %input_0 |
| 85 |
OpStore %param %70 |
| 86 |
%72 = OpFunctionCall %void %_main_struct_VertexOutput_vf41_3__struct_GeometryOutput_vf4_u11_ %param %param_0 |
| 87 |
%73 = OpLoad %GeometryOutput %param_0 |
| 88 |
OpStore %stream_0 %73 |
| 89 |
OpReturn |
| 90 |
OpFunctionEnd |
| 91 |
%_main_struct_VertexOutput_vf41_3__struct_GeometryOutput_vf4_u11_ = OpFunction %void None %15 |
| 92 |
%input = OpFunctionParameter %_ptr_Function__arr_VertexOutput_uint_3 |
| 93 |
%stream = OpFunctionParameter %_ptr_Function_GeometryOutput |
| 94 |
%19 = OpLabel |
| 95 |
%output = OpVariable %_ptr_Function_GeometryOutput Function |
| 96 |
%v = OpVariable %_ptr_Function_int Function |
| 97 |
%25 = OpAccessChain %_ptr_Function_uint %output %int_1 |
| 98 |
OpStore %25 %uint_1 |
| 99 |
OpStore %v %int_0 |
| 100 |
OpBranch %29 |
| 101 |
%29 = OpLabel |
| 102 |
OpLoopMerge %31 %32 None |
| 103 |
OpBranch %33 |
| 104 |
%33 = OpLabel |
| 105 |
%34 = OpLoad %int %v |
| 106 |
%37 = OpSLessThan %bool %34 %int_3 |
| 107 |
OpBranchConditional %37 %30 %31 |
| 108 |
%30 = OpLabel |
| 109 |
%38 = OpLoad %int %v |
| 110 |
%40 = OpAccessChain %_ptr_Function_v4float %input %38 %int_0 |
| 111 |
%41 = OpLoad %v4float %40 |
| 112 |
%42 = OpAccessChain %_ptr_Function_v4float %output %int_0 |
| 113 |
OpStore %42 %41 |
| 114 |
%45 = OpAccessChain %_ptr_Function_v4float %output %int_0 |
| 115 |
%46 = OpLoad %v4float %45 |
| 116 |
OpStore %stream_pos %46 |
| 117 |
%49 = OpAccessChain %_ptr_Function_uint %output %int_1 |
| 118 |
%50 = OpLoad %uint %49 |
| 119 |
OpStore %stream_layer %50 |
| 120 |
OpEmitVertex |
| 121 |
OpBranch %32 |
| 122 |
%32 = OpLabel |
| 123 |
%51 = OpLoad %int %v |
| 124 |
%52 = OpIAdd %int %51 %int_1 |
| 125 |
OpStore %v %52 |
| 126 |
OpBranch %29 |
| 127 |
%31 = OpLabel |
| 128 |
OpEndPrimitive |
| 129 |
OpReturn |
| 130 |
OpFunctionEnd |