Alastair Donaldson | f7e73d4 | 2021-07-23 13:10:12 +0000 | [diff] [blame] | 1 | OpCapability Shader |
| 2 | %1 = OpExtInstImport "GLSL.std.450" |
| 3 | OpMemoryModel Logical GLSL450 |
| 4 | OpEntryPoint Fragment %main "main" %_GLF_color |
| 5 | OpExecutionMode %main OriginUpperLeft |
| 6 | OpSource ESSL 310 |
| 7 | OpName %main "main" |
| 8 | OpName %a "a" |
| 9 | OpName %_GLF_color "_GLF_color" |
| 10 | OpName %buf0 "buf0" |
| 11 | OpMemberName %buf0 0 "_GLF_uniform_float_values" |
| 12 | OpName %_ "" |
| 13 | OpDecorate %_GLF_color Location 0 |
| 14 | OpDecorate %_arr_float_uint_3 ArrayStride 16 |
| 15 | OpMemberDecorate %buf0 0 Offset 0 |
| 16 | OpDecorate %buf0 Block |
| 17 | OpDecorate %_ DescriptorSet 0 |
| 18 | OpDecorate %_ Binding 0 |
| 19 | %void = OpTypeVoid |
| 20 | %9 = OpTypeFunction %void |
| 21 | %float = OpTypeFloat 32 |
| 22 | %_ptr_Function_float = OpTypePointer Function %float |
| 23 | %uint = OpTypeInt 32 0 |
| 24 | %uint_1 = OpConstant %uint 1 |
| 25 | %float_1 = OpConstant %float 1 |
| 26 | %v4float = OpTypeVector %float 4 |
| 27 | %_ptr_Output_v4float = OpTypePointer Output %v4float |
| 28 | %_GLF_color = OpVariable %_ptr_Output_v4float Output |
| 29 | %uint_3 = OpConstant %uint 3 |
| 30 | %_arr_float_uint_3 = OpTypeArray %float %uint_3 |
| 31 | %buf0 = OpTypeStruct %_arr_float_uint_3 |
| 32 | %_ptr_Uniform_buf0 = OpTypePointer Uniform %buf0 |
| 33 | %_ = OpVariable %_ptr_Uniform_buf0 Uniform |
| 34 | %int = OpTypeInt 32 1 |
| 35 | %int_0 = OpConstant %int 0 |
| 36 | %int_1 = OpConstant %int 1 |
| 37 | %_ptr_Uniform_float = OpTypePointer Uniform %float |
| 38 | %int_2 = OpConstant %int 2 |
| 39 | %bool = OpTypeBool |
| 40 | %main = OpFunction %void None %9 |
| 41 | %25 = OpLabel |
| 42 | %a = OpVariable %_ptr_Function_float Function |
| 43 | %26 = OpBitcast %float %uint_1 |
| 44 | %27 = OpFMod %float %26 %float_1 |
| 45 | OpStore %a %27 |
| 46 | %28 = OpAccessChain %_ptr_Uniform_float %_ %int_0 %int_1 |
| 47 | %29 = OpLoad %float %28 |
| 48 | %30 = OpCompositeConstruct %v4float %29 %29 %29 %29 |
| 49 | OpStore %_GLF_color %30 |
| 50 | %31 = OpLoad %float %a |
| 51 | %32 = OpAccessChain %_ptr_Uniform_float %_ %int_0 %int_2 |
| 52 | %33 = OpLoad %float %32 |
| 53 | %34 = OpFOrdLessThan %bool %31 %33 |
| 54 | OpSelectionMerge %35 None |
| 55 | OpBranchConditional %34 %36 %35 |
| 56 | %36 = OpLabel |
| 57 | %37 = OpAccessChain %_ptr_Uniform_float %_ %int_0 %int_0 |
| 58 | %38 = OpLoad %float %37 |
| 59 | %39 = OpAccessChain %_ptr_Uniform_float %_ %int_0 %int_1 |
| 60 | %40 = OpLoad %float %39 |
| 61 | %41 = OpAccessChain %_ptr_Uniform_float %_ %int_0 %int_1 |
| 62 | %42 = OpLoad %float %41 |
| 63 | %43 = OpAccessChain %_ptr_Uniform_float %_ %int_0 %int_0 |
| 64 | %44 = OpLoad %float %43 |
| 65 | %45 = OpCompositeConstruct %v4float %38 %40 %42 %44 |
| 66 | OpStore %_GLF_color %45 |
| 67 | OpBranch %35 |
| 68 | %35 = OpLabel |
| 69 | OpReturn |
| 70 | OpFunctionEnd |