blob: 00b0784fdb5ce1164fdde75d217a7abb7edf7f0a [file] [log] [blame]
OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main" %_GLF_color
OpExecutionMode %main OriginUpperLeft
OpSource ESSL 320
OpName %main "main"
OpName %f "f"
OpName %buf1 "buf1"
OpMemberName %buf1 0 "_GLF_uniform_float_values"
OpName %_ ""
OpName %buf2 "buf2"
OpMemberName %buf2 0 "zero"
OpName %__0 ""
OpName %buf0 "buf0"
OpMemberName %buf0 0 "_GLF_uniform_int_values"
OpName %__1 ""
OpName %_GLF_color "_GLF_color"
OpDecorate %_arr_float_uint_2 ArrayStride 16
OpMemberDecorate %buf1 0 Offset 0
OpDecorate %buf1 Block
OpDecorate %_ DescriptorSet 0
OpDecorate %_ Binding 1
OpMemberDecorate %buf2 0 Offset 0
OpDecorate %buf2 Block
OpDecorate %__0 DescriptorSet 0
OpDecorate %__0 Binding 2
OpDecorate %_arr_int_uint_2 ArrayStride 16
OpMemberDecorate %buf0 0 Offset 0
OpDecorate %buf0 Block
OpDecorate %__1 DescriptorSet 0
OpDecorate %__1 Binding 0
OpDecorate %_GLF_color Location 0
%void = OpTypeVoid
%14 = OpTypeFunction %void
%float = OpTypeFloat 32
%_ptr_Function_float = OpTypePointer Function %float
%uint = OpTypeInt 32 0
%uint_2 = OpConstant %uint 2
%_arr_float_uint_2 = OpTypeArray %float %uint_2
%buf1 = OpTypeStruct %_arr_float_uint_2
%_ptr_Uniform_buf1 = OpTypePointer Uniform %buf1
%_ = OpVariable %_ptr_Uniform_buf1 Uniform
%int = OpTypeInt 32 1
%int_0 = OpConstant %int 0
%int_1 = OpConstant %int 1
%_ptr_Uniform_float = OpTypePointer Uniform %float
%float_1 = OpConstant %float 1
%bool = OpTypeBool
%buf2 = OpTypeStruct %int
%_ptr_Uniform_buf2 = OpTypePointer Uniform %buf2
%__0 = OpVariable %_ptr_Uniform_buf2 Uniform
%_ptr_Uniform_int = OpTypePointer Uniform %int
%_arr_int_uint_2 = OpTypeArray %int %uint_2
%buf0 = OpTypeStruct %_arr_int_uint_2
%_ptr_Uniform_buf0 = OpTypePointer Uniform %buf0
%__1 = OpVariable %_ptr_Uniform_buf0 Uniform
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%_GLF_color = OpVariable %_ptr_Output_v4float Output
%main = OpFunction %void None %14
%31 = OpLabel
%f = OpVariable %_ptr_Function_float Function
%32 = OpAccessChain %_ptr_Uniform_float %_ %int_0 %int_1
%33 = OpLoad %float %32
%34 = OpFNegate %float %33
%35 = OpExtInst %float %1 Sinh %float_1
%36 = OpExtInst %float %1 Pow %34 %35
OpStore %f %36
%37 = OpLoad %float %f
%38 = OpAccessChain %_ptr_Uniform_float %_ %int_0 %int_0
%39 = OpLoad %float %38
%40 = OpFOrdEqual %bool %37 %39
%41 = OpLogicalNot %bool %40
OpSelectionMerge %42 None
OpBranchConditional %41 %43 %42
%43 = OpLabel
%44 = OpAccessChain %_ptr_Uniform_int %__0 %int_0
%45 = OpLoad %int %44
%46 = OpAccessChain %_ptr_Uniform_int %__1 %int_0 %int_0
%47 = OpLoad %int %46
%48 = OpIEqual %bool %45 %47
OpBranch %42
%42 = OpLabel
%49 = OpPhi %bool %40 %31 %48 %43
OpSelectionMerge %50 None
OpBranchConditional %49 %51 %52
%51 = OpLabel
%53 = OpAccessChain %_ptr_Uniform_int %__1 %int_0 %int_1
%54 = OpLoad %int %53
%55 = OpConvertSToF %float %54
%56 = OpAccessChain %_ptr_Uniform_int %__1 %int_0 %int_0
%57 = OpLoad %int %56
%58 = OpConvertSToF %float %57
%59 = OpAccessChain %_ptr_Uniform_int %__1 %int_0 %int_0
%60 = OpLoad %int %59
%61 = OpConvertSToF %float %60
%62 = OpAccessChain %_ptr_Uniform_int %__1 %int_0 %int_1
%63 = OpLoad %int %62
%64 = OpConvertSToF %float %63
%65 = OpCompositeConstruct %v4float %55 %58 %61 %64
OpStore %_GLF_color %65
OpBranch %50
%52 = OpLabel
%66 = OpAccessChain %_ptr_Uniform_int %__1 %int_0 %int_0
%67 = OpLoad %int %66
%68 = OpConvertSToF %float %67
%69 = OpCompositeConstruct %v4float %68 %68 %68 %68
OpStore %_GLF_color %69
OpBranch %50
%50 = OpLabel
OpReturn
OpFunctionEnd