| 1 |
; SPIR-V |
| 2 |
; Version: 1.0 |
| 3 |
; Generator: Khronos Glslang Reference Front End; 3 |
| 4 |
; Bound: 20 |
| 5 |
; Schema: 0 |
| 6 |
OpCapability Shader |
| 7 |
%1 = OpExtInstImport "GLSL.std.450" |
| 8 |
OpMemoryModel Logical GLSL450 |
| 9 |
OpEntryPoint Vertex %main "main" %_ |
| 10 |
OpEntryPoint Vertex %main2 "maim" %_ |
| 11 |
OpEntryPoint Fragment %main3 "main" %FragColor |
| 12 |
OpEntryPoint Fragment %main4 "maim" %FragColor |
| 13 |
OpSource GLSL 450 |
| 14 |
OpMemberDecorate %gl_PerVertex 0 BuiltIn Position |
| 15 |
OpMemberDecorate %gl_PerVertex 1 BuiltIn PointSize |
| 16 |
OpMemberDecorate %gl_PerVertex 2 BuiltIn ClipDistance |
| 17 |
OpMemberDecorate %gl_PerVertex 3 BuiltIn CullDistance |
| 18 |
OpDecorate %FragColor Location 0 |
| 19 |
OpDecorate %gl_PerVertex Block |
| 20 |
%void = OpTypeVoid |
| 21 |
%3 = OpTypeFunction %void |
| 22 |
%float = OpTypeFloat 32 |
| 23 |
%v4float = OpTypeVector %float 4 |
| 24 |
%v4floatptr = OpTypePointer Output %v4float |
| 25 |
%uint = OpTypeInt 32 0 |
| 26 |
%uint_1 = OpConstant %uint 1 |
| 27 |
%_arr_float_uint_1 = OpTypeArray %float %uint_1 |
| 28 |
%gl_PerVertex = OpTypeStruct %v4float %float %_arr_float_uint_1 %_arr_float_uint_1 |
| 29 |
%_ptr_Output_gl_PerVertex = OpTypePointer Output %gl_PerVertex |
| 30 |
%_ = OpVariable %_ptr_Output_gl_PerVertex Output |
| 31 |
%FragColor = OpVariable %v4floatptr Output |
| 32 |
%int = OpTypeInt 32 1 |
| 33 |
%int_0 = OpConstant %int 0 |
| 34 |
%float_1 = OpConstant %float 1 |
| 35 |
%17 = OpConstantComposite %v4float %float_1 %float_1 %float_1 %float_1 |
| 36 |
%float_2 = OpConstant %float 2 |
| 37 |
%18 = OpConstantComposite %v4float %float_2 %float_2 %float_2 %float_2 |
| 38 |
%_ptr_Output_v4float = OpTypePointer Output %v4float |
| 39 |
%main = OpFunction %void None %3 |
| 40 |
%5 = OpLabel |
| 41 |
%19 = OpAccessChain %_ptr_Output_v4float %_ %int_0 |
| 42 |
OpStore %19 %17 |
| 43 |
OpReturn |
| 44 |
OpFunctionEnd |
| 45 |
%main2 = OpFunction %void None %3 |
| 46 |
%6 = OpLabel |
| 47 |
%20 = OpAccessChain %_ptr_Output_v4float %_ %int_0 |
| 48 |
OpStore %20 %18 |
| 49 |
OpReturn |
| 50 |
OpFunctionEnd |
| 51 |
%main3 = OpFunction %void None %3 |
| 52 |
%7 = OpLabel |
| 53 |
OpStore %FragColor %17 |
| 54 |
OpReturn |
| 55 |
OpFunctionEnd |
| 56 |
%main4 = OpFunction %void None %3 |
| 57 |
%8 = OpLabel |
| 58 |
OpStore %FragColor %18 |
| 59 |
OpReturn |
| 60 |
OpFunctionEnd |