208 lines
		
	
	
		
			6.0 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
			
		
		
	
	
			208 lines
		
	
	
		
			6.0 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
| OpCapability Shader
 | |
| %1 = OpExtInstImport "GLSL.std.450"
 | |
| OpMemoryModel Logical GLSL450
 | |
| OpEntryPoint Fragment %_entrypoint_v "_entrypoint" %sk_FragColor %sk_Clockwise
 | |
| OpExecutionMode %_entrypoint_v OriginUpperLeft
 | |
| OpName %sk_FragColor "sk_FragColor"
 | |
| OpName %sk_Clockwise "sk_Clockwise"
 | |
| OpName %_UniformBuffer "_UniformBuffer"
 | |
| OpMemberName %_UniformBuffer 0 "colorGreen"
 | |
| OpMemberName %_UniformBuffer 1 "colorRed"
 | |
| OpMemberName %_UniformBuffer 2 "unknownInput"
 | |
| OpName %_entrypoint_v "_entrypoint_v"
 | |
| OpName %main "main"
 | |
| OpName %x "x"
 | |
| OpName %y "y"
 | |
| OpName %z "z"
 | |
| OpName %w "w"
 | |
| OpDecorate %sk_FragColor RelaxedPrecision
 | |
| OpDecorate %sk_FragColor Location 0
 | |
| OpDecorate %sk_FragColor Index 0
 | |
| OpDecorate %sk_Clockwise BuiltIn FrontFacing
 | |
| OpMemberDecorate %_UniformBuffer 0 Offset 0
 | |
| OpMemberDecorate %_UniformBuffer 0 RelaxedPrecision
 | |
| OpMemberDecorate %_UniformBuffer 1 Offset 16
 | |
| OpMemberDecorate %_UniformBuffer 1 RelaxedPrecision
 | |
| OpMemberDecorate %_UniformBuffer 2 Offset 32
 | |
| OpDecorate %_UniformBuffer Block
 | |
| OpDecorate %10 Binding 0
 | |
| OpDecorate %10 DescriptorSet 0
 | |
| OpDecorate %128 RelaxedPrecision
 | |
| OpDecorate %130 RelaxedPrecision
 | |
| OpDecorate %131 RelaxedPrecision
 | |
| %float = OpTypeFloat 32
 | |
| %v4float = OpTypeVector %float 4
 | |
| %_ptr_Output_v4float = OpTypePointer Output %v4float
 | |
| %sk_FragColor = OpVariable %_ptr_Output_v4float Output
 | |
| %bool = OpTypeBool
 | |
| %_ptr_Input_bool = OpTypePointer Input %bool
 | |
| %sk_Clockwise = OpVariable %_ptr_Input_bool Input
 | |
| %_UniformBuffer = OpTypeStruct %v4float %v4float %float
 | |
| %_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer
 | |
| %10 = OpVariable %_ptr_Uniform__UniformBuffer Uniform
 | |
| %void = OpTypeVoid
 | |
| %15 = OpTypeFunction %void
 | |
| %v2float = OpTypeVector %float 2
 | |
| %float_0 = OpConstant %float 0
 | |
| %19 = OpConstantComposite %v2float %float_0 %float_0
 | |
| %_ptr_Function_v2float = OpTypePointer Function %v2float
 | |
| %23 = OpTypeFunction %v4float %_ptr_Function_v2float
 | |
| %_ptr_Function_float = OpTypePointer Function %float
 | |
| %float_1 = OpConstant %float 1
 | |
| %float_2 = OpConstant %float 2
 | |
| %int = OpTypeInt 32 1
 | |
| %_ptr_Function_int = OpTypePointer Function %int
 | |
| %int_3 = OpConstant %int 3
 | |
| %int_2 = OpConstant %int 2
 | |
| %int_4 = OpConstant %int 4
 | |
| %int_1 = OpConstant %int 1
 | |
| %float_12 = OpConstant %float 12
 | |
| %float_10 = OpConstant %float 10
 | |
| %int_0 = OpConstant %int 0
 | |
| %int_n1 = OpConstant %int -1
 | |
| %int_5 = OpConstant %int 5
 | |
| %float_6 = OpConstant %float 6
 | |
| %int_6 = OpConstant %int 6
 | |
| %v2int = OpTypeVector %int 2
 | |
| %_ptr_Function_v2int = OpTypePointer Function %v2int
 | |
| %false = OpConstantFalse %bool
 | |
| %_ptr_Function_v4float = OpTypePointer Function %v4float
 | |
| %_ptr_Uniform_v4float = OpTypePointer Uniform %v4float
 | |
| %_entrypoint_v = OpFunction %void None %15
 | |
| %16 = OpLabel
 | |
| %20 = OpVariable %_ptr_Function_v2float Function
 | |
| OpStore %20 %19
 | |
| %22 = OpFunctionCall %v4float %main %20
 | |
| OpStore %sk_FragColor %22
 | |
| OpReturn
 | |
| OpFunctionEnd
 | |
| %main = OpFunction %v4float None %23
 | |
| %24 = OpFunctionParameter %_ptr_Function_v2float
 | |
| %25 = OpLabel
 | |
| %x = OpVariable %_ptr_Function_float Function
 | |
| %y = OpVariable %_ptr_Function_float Function
 | |
| %z = OpVariable %_ptr_Function_int Function
 | |
| %w = OpVariable %_ptr_Function_v2int Function
 | |
| %121 = OpVariable %_ptr_Function_v4float Function
 | |
| OpStore %x %float_1
 | |
| OpStore %y %float_2
 | |
| OpStore %z %int_3
 | |
| %35 = OpLoad %float %x
 | |
| %36 = OpLoad %float %x
 | |
| %37 = OpFSub %float %35 %36
 | |
| %38 = OpLoad %float %y
 | |
| %39 = OpLoad %float %x
 | |
| %40 = OpFMul %float %38 %39
 | |
| %41 = OpLoad %float %x
 | |
| %42 = OpFMul %float %40 %41
 | |
| %43 = OpLoad %float %y
 | |
| %44 = OpLoad %float %x
 | |
| %45 = OpFSub %float %43 %44
 | |
| %46 = OpFMul %float %42 %45
 | |
| %47 = OpFAdd %float %37 %46
 | |
| OpStore %x %47
 | |
| %48 = OpLoad %float %x
 | |
| %49 = OpLoad %float %y
 | |
| %50 = OpFDiv %float %48 %49
 | |
| %51 = OpLoad %float %x
 | |
| %52 = OpFDiv %float %50 %51
 | |
| OpStore %y %52
 | |
| %53 = OpLoad %int %z
 | |
| %55 = OpSDiv %int %53 %int_2
 | |
| %56 = OpSMod %int %55 %int_3
 | |
| %58 = OpShiftLeftLogical %int %56 %int_4
 | |
| %59 = OpShiftRightArithmetic %int %58 %int_2
 | |
| %61 = OpShiftLeftLogical %int %59 %int_1
 | |
| OpStore %z %61
 | |
| %62 = OpLoad %float %x
 | |
| %64 = OpFAdd %float %62 %float_12
 | |
| OpStore %x %64
 | |
| %65 = OpLoad %float %x
 | |
| %66 = OpFSub %float %65 %float_12
 | |
| OpStore %x %66
 | |
| %67 = OpLoad %float %x
 | |
| %68 = OpLoad %float %y
 | |
| %70 = OpFDiv %float %68 %float_10
 | |
| OpStore %y %70
 | |
| %71 = OpFMul %float %67 %70
 | |
| OpStore %x %71
 | |
| %72 = OpLoad %int %z
 | |
| %74 = OpBitwiseOr %int %72 %int_0
 | |
| OpStore %z %74
 | |
| %75 = OpLoad %int %z
 | |
| %77 = OpBitwiseAnd %int %75 %int_n1
 | |
| OpStore %z %77
 | |
| %78 = OpLoad %int %z
 | |
| %79 = OpBitwiseXor %int %78 %int_0
 | |
| OpStore %z %79
 | |
| %80 = OpLoad %int %z
 | |
| %81 = OpShiftRightArithmetic %int %80 %int_2
 | |
| OpStore %z %81
 | |
| %82 = OpLoad %int %z
 | |
| %83 = OpShiftLeftLogical %int %82 %int_4
 | |
| OpStore %z %83
 | |
| %84 = OpLoad %int %z
 | |
| %86 = OpSMod %int %84 %int_5
 | |
| OpStore %z %86
 | |
| OpStore %x %float_6
 | |
| OpStore %y %float_6
 | |
| OpStore %z %int_6
 | |
| %92 = OpNot %int %int_5
 | |
| %93 = OpCompositeConstruct %v2int %92 %92
 | |
| OpStore %w %93
 | |
| %95 = OpLoad %v2int %w
 | |
| %94 = OpNot %v2int %95
 | |
| OpStore %w %94
 | |
| %97 = OpLoad %v2int %w
 | |
| %98 = OpCompositeExtract %int %97 0
 | |
| %99 = OpIEqual %bool %98 %int_5
 | |
| OpSelectionMerge %101 None
 | |
| OpBranchConditional %99 %100 %101
 | |
| %100 = OpLabel
 | |
| %102 = OpLoad %v2int %w
 | |
| %103 = OpCompositeExtract %int %102 1
 | |
| %104 = OpIEqual %bool %103 %int_5
 | |
| OpBranch %101
 | |
| %101 = OpLabel
 | |
| %105 = OpPhi %bool %false %25 %104 %100
 | |
| OpSelectionMerge %107 None
 | |
| OpBranchConditional %105 %106 %107
 | |
| %106 = OpLabel
 | |
| %108 = OpLoad %float %x
 | |
| %109 = OpFOrdEqual %bool %108 %float_6
 | |
| OpBranch %107
 | |
| %107 = OpLabel
 | |
| %110 = OpPhi %bool %false %101 %109 %106
 | |
| OpSelectionMerge %112 None
 | |
| OpBranchConditional %110 %111 %112
 | |
| %111 = OpLabel
 | |
| %113 = OpLoad %float %y
 | |
| %114 = OpFOrdEqual %bool %113 %float_6
 | |
| OpBranch %112
 | |
| %112 = OpLabel
 | |
| %115 = OpPhi %bool %false %107 %114 %111
 | |
| OpSelectionMerge %117 None
 | |
| OpBranchConditional %115 %116 %117
 | |
| %116 = OpLabel
 | |
| %118 = OpLoad %int %z
 | |
| %119 = OpIEqual %bool %118 %int_6
 | |
| OpBranch %117
 | |
| %117 = OpLabel
 | |
| %120 = OpPhi %bool %false %112 %119 %116
 | |
| OpSelectionMerge %125 None
 | |
| OpBranchConditional %120 %123 %124
 | |
| %123 = OpLabel
 | |
| %126 = OpAccessChain %_ptr_Uniform_v4float %10 %int_0
 | |
| %128 = OpLoad %v4float %126
 | |
| OpStore %121 %128
 | |
| OpBranch %125
 | |
| %124 = OpLabel
 | |
| %129 = OpAccessChain %_ptr_Uniform_v4float %10 %int_1
 | |
| %130 = OpLoad %v4float %129
 | |
| OpStore %121 %130
 | |
| OpBranch %125
 | |
| %125 = OpLabel
 | |
| %131 = OpLoad %v4float %121
 | |
| OpReturnValue %131
 | |
| OpFunctionEnd
 |