| 1 |
; SPIR-V |
| 2 |
; Version: 1.0 |
| 3 |
; Generator: Khronos Glslang Reference Front End; 8 |
| 4 |
; Bound: 40 |
| 5 |
; Schema: 0 |
| 6 |
OpCapability Shader |
| 7 |
%1 = OpExtInstImport "GLSL.std.450" |
| 8 |
OpMemoryModel Logical GLSL450 |
| 9 |
OpEntryPoint Fragment %main "main" %vColor %FragColor |
| 10 |
OpExecutionMode %main OriginUpperLeft |
| 11 |
OpSource GLSL 450 |
| 12 |
OpName %main "main" |
| 13 |
OpName %vColor "vColor" |
| 14 |
OpName %uninit_function_int "uninit_function_int" |
| 15 |
OpName %FragColor "FragColor" |
| 16 |
OpName %uninit_int "uninit_int" |
| 17 |
OpName %uninit_vector "uninit_vector" |
| 18 |
OpName %uninit_matrix "uninit_matrix" |
| 19 |
OpName %Foo "Foo" |
| 20 |
OpMemberName %Foo 0 "a" |
| 21 |
OpName %uninit_foo "uninit_foo" |
| 22 |
OpDecorate %vColor Location 0 |
| 23 |
OpDecorate %FragColor Location 0 |
| 24 |
%void = OpTypeVoid |
| 25 |
%3 = OpTypeFunction %void |
| 26 |
%float = OpTypeFloat 32 |
| 27 |
%v4float = OpTypeVector %float 4 |
| 28 |
%_ptr_Input_v4float = OpTypePointer Input %v4float |
| 29 |
%vColor = OpVariable %_ptr_Input_v4float Input |
| 30 |
%uint = OpTypeInt 32 0 |
| 31 |
%uint_0 = OpConstant %uint 0 |
| 32 |
%_ptr_Input_float = OpTypePointer Input %float |
| 33 |
%float_10 = OpConstant %float 10 |
| 34 |
%bool = OpTypeBool |
| 35 |
%int = OpTypeInt 32 1 |
| 36 |
%_ptr_Function_int = OpTypePointer Function %int |
| 37 |
%int_10 = OpConstant %int 10 |
| 38 |
%int_20 = OpConstant %int 20 |
| 39 |
%_ptr_Output_v4float = OpTypePointer Output %v4float |
| 40 |
%FragColor = OpVariable %_ptr_Output_v4float Output |
| 41 |
%_ptr_Private_int = OpTypePointer Private %int |
| 42 |
%uninit_int = OpUndef %int |
| 43 |
%v4int = OpTypeVector %int 4 |
| 44 |
%_ptr_Private_v4int = OpTypePointer Private %v4int |
| 45 |
%uninit_vector = OpUndef %v4int |
| 46 |
%mat4v4float = OpTypeMatrix %v4float 4 |
| 47 |
%_ptr_Private_mat4v4float = OpTypePointer Private %mat4v4float |
| 48 |
%uninit_matrix = OpUndef %mat4v4float |
| 49 |
%Foo = OpTypeStruct %int |
| 50 |
%_ptr_Private_Foo = OpTypePointer Private %Foo |
| 51 |
%uninit_foo = OpUndef %Foo |
| 52 |
%main = OpFunction %void None %3 |
| 53 |
%5 = OpLabel |
| 54 |
%uninit_function_int = OpVariable %_ptr_Function_int Function |
| 55 |
%13 = OpAccessChain %_ptr_Input_float %vColor %uint_0 |
| 56 |
%14 = OpLoad %float %13 |
| 57 |
%17 = OpFOrdGreaterThan %bool %14 %float_10 |
| 58 |
OpSelectionMerge %19 None |
| 59 |
OpBranchConditional %17 %18 %24 |
| 60 |
%18 = OpLabel |
| 61 |
OpBranch %19 |
| 62 |
%24 = OpLabel |
| 63 |
OpBranch %19 |
| 64 |
%19 = OpLabel |
| 65 |
%27 = OpPhi %int %int_10 %18 %int_20 %24 |
| 66 |
%28 = OpLoad %v4float %vColor |
| 67 |
OpStore %FragColor %28 |
| 68 |
OpReturn |
| 69 |
OpFunctionEnd |