blob: b96e9a8dc3a0ad3a8872731583e5cc5d40af0b23 [file] [log] [blame]
OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main" %_GLF_color
OpExecutionMode %main OriginUpperLeft
OpSource ESSL 310
OpName %main "main"
OpName %f "f"
OpName %v "v"
OpName %buf0 "buf0"
OpMemberName %buf0 0 "r"
OpName %_ ""
OpName %_GLF_color "_GLF_color"
OpMemberDecorate %buf0 0 Offset 0
OpDecorate %buf0 Block
OpDecorate %_ DescriptorSet 0
OpDecorate %_ Binding 0
OpDecorate %_GLF_color Location 0
%void = OpTypeVoid
%9 = OpTypeFunction %void
%float = OpTypeFloat 32
%_ptr_Function_float = OpTypePointer Function %float
%v3float = OpTypeVector %float 3
%mat3v3float = OpTypeMatrix %v3float 3
%float_1 = OpConstant %float 1
%float_0 = OpConstant %float 0
%16 = OpConstantComposite %v3float %float_1 %float_0 %float_0
%17 = OpConstantComposite %v3float %float_0 %float_1 %float_0
%18 = OpConstantComposite %v3float %float_0 %float_0 %float_1
%19 = OpConstantComposite %mat3v3float %16 %17 %18
%v4float = OpTypeVector %float 4
%_ptr_Function_v4float = OpTypePointer Function %v4float
%buf0 = OpTypeStruct %v4float
%_ptr_Uniform_buf0 = OpTypePointer Uniform %buf0
%_ = OpVariable %_ptr_Uniform_buf0 Uniform
%int = OpTypeInt 32 1
%int_0 = OpConstant %int 0
%_ptr_Uniform_v4float = OpTypePointer Uniform %v4float
%float_0_100000001 = OpConstant %float 0.100000001
%bool = OpTypeBool
%_ptr_Output_v4float = OpTypePointer Output %v4float
%_GLF_color = OpVariable %_ptr_Output_v4float Output
%29 = OpConstantComposite %v4float %float_1 %float_0 %float_0 %float_1
%30 = OpConstantComposite %v4float %float_0 %float_0 %float_0 %float_0
%main = OpFunction %void None %9
%31 = OpLabel
%f = OpVariable %_ptr_Function_float Function
%v = OpVariable %_ptr_Function_v4float Function
%32 = OpExtInst %float %1 Determinant %19
OpStore %f %32
%33 = OpLoad %float %f
%34 = OpExtInst %float %1 Sin %33
%35 = OpLoad %float %f
%36 = OpExtInst %float %1 Cos %35
%37 = OpLoad %float %f
%38 = OpExtInst %float %1 Exp2 %37
%39 = OpLoad %float %f
%40 = OpExtInst %float %1 Log %39
%41 = OpCompositeConstruct %v4float %34 %36 %38 %40
OpStore %v %41
%42 = OpLoad %v4float %v
%43 = OpAccessChain %_ptr_Uniform_v4float %_ %int_0
%44 = OpLoad %v4float %43
%45 = OpExtInst %float %1 Distance %42 %44
%46 = OpFOrdLessThan %bool %45 %float_0_100000001
OpSelectionMerge %47 None
OpBranchConditional %46 %48 %49
%48 = OpLabel
OpStore %_GLF_color %29
OpBranch %47
%49 = OpLabel
OpStore %_GLF_color %30
OpBranch %47
%47 = OpLabel
OpReturn
OpFunctionEnd