| 1 |
; SPIR-V |
| 2 |
; Version: 1.0 |
| 3 |
; Generator: Khronos Glslang Reference Front End; 3 |
| 4 |
; Bound: 42 |
| 5 |
; Schema: 0 |
| 6 |
OpCapability Geometry |
| 7 |
%1 = OpExtInstImport "GLSL.std.450" |
| 8 |
OpMemoryModel Logical GLSL450 |
| 9 |
OpEntryPoint Geometry %main "main" %gl_in %_ |
| 10 |
OpExecutionMode %main Triangles |
| 11 |
OpExecutionMode %main Invocations 1 |
| 12 |
OpExecutionMode %main OutputTriangleStrip |
| 13 |
OpExecutionMode %main OutputVertices 5 |
| 14 |
OpSource GLSL 440 |
| 15 |
OpName %main "main" |
| 16 |
OpName %Data "Data" |
| 17 |
OpMemberName %Data 0 "ApiPerspectivePosition" |
| 18 |
OpName %Copy_struct_Data_vf41_3__ "Copy(struct-Data-vf41[3];" |
| 19 |
OpName %inputStream "inputStream" |
| 20 |
OpName %gl_PerVertex "gl_PerVertex" |
| 21 |
OpMemberName %gl_PerVertex 0 "gl_Position" |
| 22 |
OpMemberName %gl_PerVertex 1 "gl_PointSize" |
| 23 |
OpMemberName %gl_PerVertex 2 "gl_ClipDistance" |
| 24 |
OpName %gl_in "gl_in" |
| 25 |
OpName %inputStream_0 "inputStream" |
| 26 |
OpName %param "param" |
| 27 |
OpName %gl_PerVertex_0 "gl_PerVertex" |
| 28 |
OpMemberName %gl_PerVertex_0 0 "gl_Position" |
| 29 |
OpMemberName %gl_PerVertex_0 1 "gl_PointSize" |
| 30 |
OpMemberName %gl_PerVertex_0 2 "gl_ClipDistance" |
| 31 |
OpName %_ "" |
| 32 |
OpMemberDecorate %gl_PerVertex 0 BuiltIn Position |
| 33 |
OpMemberDecorate %gl_PerVertex 1 BuiltIn PointSize |
| 34 |
OpMemberDecorate %gl_PerVertex 2 BuiltIn ClipDistance |
| 35 |
OpDecorate %gl_PerVertex Block |
| 36 |
OpMemberDecorate %gl_PerVertex_0 0 BuiltIn Position |
| 37 |
OpMemberDecorate %gl_PerVertex_0 1 BuiltIn PointSize |
| 38 |
OpMemberDecorate %gl_PerVertex_0 2 BuiltIn ClipDistance |
| 39 |
OpDecorate %gl_PerVertex_0 Block |
| 40 |
%void = OpTypeVoid |
| 41 |
%3 = OpTypeFunction %void |
| 42 |
%float = OpTypeFloat 32 |
| 43 |
%v4float = OpTypeVector %float 4 |
| 44 |
%Data = OpTypeStruct %v4float |
| 45 |
%uint = OpTypeInt 32 0 |
| 46 |
%uint_3 = OpConstant %uint 3 |
| 47 |
%_arr_Data_uint_3 = OpTypeArray %Data %uint_3 |
| 48 |
%_ptr_Function__Data = OpTypePointer Function %Data |
| 49 |
%_ptr_Function__arr_Data_uint_3 = OpTypePointer Function %_arr_Data_uint_3 |
| 50 |
%13 = OpTypeFunction %void %_ptr_Function__arr_Data_uint_3 |
| 51 |
%int = OpTypeInt 32 1 |
| 52 |
%int_0 = OpConstant %int 0 |
| 53 |
%uint_1 = OpConstant %uint 1 |
| 54 |
%_arr_float_uint_1 = OpTypeArray %float %uint_1 |
| 55 |
%gl_PerVertex = OpTypeStruct %v4float %float %_arr_float_uint_1 |
| 56 |
%_arr_gl_PerVertex_uint_3 = OpTypeArray %gl_PerVertex %uint_3 |
| 57 |
%_ptr_Input__arr_gl_PerVertex_uint_3 = OpTypePointer Input %_arr_gl_PerVertex_uint_3 |
| 58 |
%gl_in = OpVariable %_ptr_Input__arr_gl_PerVertex_uint_3 Input |
| 59 |
%_ptr_Input_v4float = OpTypePointer Input %v4float |
| 60 |
%_ptr_Function_v4float = OpTypePointer Function %v4float |
| 61 |
%gl_PerVertex_0 = OpTypeStruct %v4float %float %_arr_float_uint_1 |
| 62 |
%_ptr_Output_gl_PerVertex_0 = OpTypePointer Output %gl_PerVertex_0 |
| 63 |
%_ = OpVariable %_ptr_Output_gl_PerVertex_0 Output |
| 64 |
%_ptr_Output_v4float = OpTypePointer Output %v4float |
| 65 |
%main = OpFunction %void None %3 |
| 66 |
%5 = OpLabel |
| 67 |
%inputStream_0 = OpVariable %_ptr_Function__arr_Data_uint_3 Function |
| 68 |
%param = OpVariable %_ptr_Function__arr_Data_uint_3 Function |
| 69 |
%32 = OpLoad %_arr_Data_uint_3 %inputStream_0 |
| 70 |
OpStore %param %32 |
| 71 |
%33 = OpFunctionCall %void %Copy_struct_Data_vf41_3__ %param |
| 72 |
%34 = OpLoad %_arr_Data_uint_3 %param |
| 73 |
OpStore %inputStream_0 %34 |
| 74 |
%59 = OpAccessChain %_ptr_Function__Data %inputStream_0 %int_0 |
| 75 |
%38 = OpAccessChain %_ptr_Function_v4float %59 %int_0 |
| 76 |
%39 = OpLoad %v4float %38 |
| 77 |
%41 = OpAccessChain %_ptr_Output_v4float %_ %int_0 |
| 78 |
OpStore %41 %39 |
| 79 |
OpReturn |
| 80 |
OpFunctionEnd |
| 81 |
%Copy_struct_Data_vf41_3__ = OpFunction %void None %13 |
| 82 |
%inputStream = OpFunctionParameter %_ptr_Function__arr_Data_uint_3 |
| 83 |
%16 = OpLabel |
| 84 |
%26 = OpAccessChain %_ptr_Input_v4float %gl_in %int_0 %int_0 |
| 85 |
%27 = OpLoad %v4float %26 |
| 86 |
%28 = OpAccessChain %_ptr_Function__Data %inputStream %int_0 |
| 87 |
%29 = OpAccessChain %_ptr_Function_v4float %28 %int_0 |
| 88 |
OpStore %29 %27 |
| 89 |
OpReturn |
| 90 |
OpFunctionEnd |