mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-30 01:54:31 +01:00
227 lines
6.0 KiB
Plaintext
227 lines
6.0 KiB
Plaintext
; SPIR-V
|
|
; Version: 1.1
|
|
; Generator: rspirv
|
|
; Bound: 176
|
|
OpCapability Shader
|
|
%1 = OpExtInstImport "GLSL.std.450"
|
|
OpMemoryModel Logical GLSL450
|
|
OpEntryPoint GLCompute %164 "main"
|
|
OpExecutionMode %164 LocalSize 1 1 1
|
|
OpMemberDecorate %23 0 Offset 0
|
|
OpMemberDecorate %23 1 Offset 16
|
|
%2 = OpTypeVoid
|
|
%4 = OpTypeFloat 32
|
|
%3 = OpConstant %4 1.0
|
|
%5 = OpConstant %4 0.0
|
|
%6 = OpConstant %4 0.5
|
|
%8 = OpTypeInt 32 1
|
|
%7 = OpConstant %8 1
|
|
%10 = OpTypeBool
|
|
%9 = OpConstantTrue %10
|
|
%11 = OpConstant %8 0
|
|
%12 = OpConstantFalse %10
|
|
%13 = OpConstant %4 0.1
|
|
%14 = OpConstant %4 2.0
|
|
%15 = OpConstant %4 3.0
|
|
%16 = OpConstant %4 4.0
|
|
%17 = OpConstant %8 5
|
|
%18 = OpConstant %8 2
|
|
%19 = OpTypeVector %4 4
|
|
%20 = OpTypeVector %8 4
|
|
%21 = OpTypeVector %10 4
|
|
%22 = OpTypeVector %4 3
|
|
%23 = OpTypeStruct %19 %8
|
|
%24 = OpTypeVector %4 2
|
|
%25 = OpTypeMatrix %24 2
|
|
%26 = OpTypeMatrix %19 4
|
|
%27 = OpConstantComposite %19 %3 %3 %3 %3
|
|
%28 = OpConstantComposite %19 %5 %5 %5 %5
|
|
%29 = OpConstantComposite %19 %6 %6 %6 %6
|
|
%30 = OpConstantComposite %20 %7 %7 %7 %7
|
|
%33 = OpTypeFunction %19
|
|
%74 = OpTypeFunction %8
|
|
%81 = OpConstantNull %8
|
|
%85 = OpTypeFunction %22 %22
|
|
%87 = OpTypeVector %10 3
|
|
%94 = OpTypePointer Function %23
|
|
%97 = OpTypeFunction %4
|
|
%109 = OpTypePointer Function %19
|
|
%110 = OpTypePointer Function %4
|
|
%112 = OpTypeInt 32 0
|
|
%111 = OpConstant %112 0
|
|
%117 = OpTypeFunction %2
|
|
%121 = OpTypeVector %8 3
|
|
%143 = OpTypePointer Function %8
|
|
%32 = OpFunction %19 None %33
|
|
%31 = OpLabel
|
|
OpBranch %34
|
|
%34 = OpLabel
|
|
%35 = OpSelect %8 %9 %7 %11
|
|
%37 = OpCompositeConstruct %21 %9 %9 %9 %9
|
|
%36 = OpSelect %19 %37 %27 %28
|
|
%38 = OpCompositeConstruct %21 %12 %12 %12 %12
|
|
%39 = OpSelect %19 %38 %28 %27
|
|
%40 = OpExtInst %19 %1 FMix %28 %27 %29
|
|
%42 = OpCompositeConstruct %19 %13 %13 %13 %13
|
|
%41 = OpExtInst %19 %1 FMix %28 %27 %42
|
|
%43 = OpCompositeExtract %8 %30 0
|
|
%44 = OpBitcast %4 %43
|
|
%45 = OpBitcast %19 %30
|
|
%46 = OpConvertFToS %20 %28
|
|
%47 = OpCompositeConstruct %20 %35 %35 %35 %35
|
|
%48 = OpIAdd %20 %47 %46
|
|
%49 = OpConvertSToF %19 %48
|
|
%50 = OpFAdd %19 %49 %36
|
|
%51 = OpFAdd %19 %50 %40
|
|
%52 = OpFAdd %19 %51 %41
|
|
%53 = OpCompositeConstruct %19 %44 %44 %44 %44
|
|
%54 = OpFAdd %19 %52 %53
|
|
%55 = OpFAdd %19 %54 %45
|
|
OpReturnValue %55
|
|
OpFunctionEnd
|
|
%57 = OpFunction %19 None %33
|
|
%56 = OpLabel
|
|
OpBranch %58
|
|
%58 = OpLabel
|
|
%59 = OpCompositeConstruct %24 %14 %14
|
|
%60 = OpCompositeConstruct %24 %3 %3
|
|
%61 = OpFAdd %24 %60 %59
|
|
%62 = OpCompositeConstruct %24 %15 %15
|
|
%63 = OpFSub %24 %61 %62
|
|
%64 = OpCompositeConstruct %24 %16 %16
|
|
%65 = OpFDiv %24 %63 %64
|
|
%66 = OpCompositeConstruct %20 %17 %17 %17 %17
|
|
%67 = OpCompositeConstruct %20 %18 %18 %18 %18
|
|
%68 = OpSMod %20 %66 %67
|
|
%69 = OpVectorShuffle %19 %65 %65 0 1 0 1
|
|
%70 = OpConvertSToF %19 %68
|
|
%71 = OpFAdd %19 %69 %70
|
|
OpReturnValue %71
|
|
OpFunctionEnd
|
|
%73 = OpFunction %8 None %74
|
|
%72 = OpLabel
|
|
OpBranch %75
|
|
%75 = OpLabel
|
|
%76 = OpLogicalNot %10 %9
|
|
OpSelectionMerge %77 None
|
|
OpBranchConditional %76 %78 %79
|
|
%78 = OpLabel
|
|
OpReturnValue %7
|
|
%79 = OpLabel
|
|
%80 = OpNot %8 %7
|
|
OpReturnValue %80
|
|
%77 = OpLabel
|
|
OpReturnValue %81
|
|
OpFunctionEnd
|
|
%84 = OpFunction %22 None %85
|
|
%83 = OpFunctionParameter %22
|
|
%82 = OpLabel
|
|
OpBranch %86
|
|
%86 = OpLabel
|
|
%88 = OpCompositeConstruct %22 %5 %5 %5
|
|
%89 = OpFUnordNotEqual %87 %83 %88
|
|
%90 = OpCompositeConstruct %22 %5 %5 %5
|
|
%91 = OpCompositeConstruct %22 %3 %3 %3
|
|
%92 = OpSelect %22 %89 %91 %90
|
|
OpReturnValue %92
|
|
OpFunctionEnd
|
|
%96 = OpFunction %4 None %97
|
|
%95 = OpLabel
|
|
%93 = OpVariable %94 Function
|
|
OpBranch %98
|
|
%98 = OpLabel
|
|
%99 = OpCompositeConstruct %19 %3 %3 %3 %3
|
|
%100 = OpCompositeConstruct %23 %99 %7
|
|
OpStore %93 %100
|
|
%101 = OpCompositeConstruct %24 %3 %5
|
|
%102 = OpCompositeConstruct %24 %5 %3
|
|
%103 = OpCompositeConstruct %25 %101 %102
|
|
%104 = OpCompositeConstruct %19 %3 %5 %5 %5
|
|
%105 = OpCompositeConstruct %19 %5 %3 %5 %5
|
|
%106 = OpCompositeConstruct %19 %5 %5 %3 %5
|
|
%107 = OpCompositeConstruct %19 %5 %5 %5 %3
|
|
%108 = OpCompositeConstruct %26 %104 %105 %106 %107
|
|
%113 = OpAccessChain %110 %93 %111 %111
|
|
%114 = OpLoad %4 %113
|
|
OpReturnValue %114
|
|
OpFunctionEnd
|
|
%116 = OpFunction %2 None %117
|
|
%115 = OpLabel
|
|
OpBranch %118
|
|
%118 = OpLabel
|
|
%119 = OpSMod %8 %7 %7
|
|
%120 = OpFRem %4 %3 %3
|
|
%122 = OpCompositeConstruct %121 %7 %7 %7
|
|
%123 = OpCompositeConstruct %121 %7 %7 %7
|
|
%124 = OpSMod %121 %122 %123
|
|
%125 = OpCompositeConstruct %22 %3 %3 %3
|
|
%126 = OpCompositeConstruct %22 %3 %3 %3
|
|
%127 = OpFRem %22 %125 %126
|
|
OpReturn
|
|
OpFunctionEnd
|
|
%129 = OpFunction %2 None %117
|
|
%128 = OpLabel
|
|
OpBranch %130
|
|
%130 = OpLabel
|
|
%131 = OpCompositeConstruct %19 %3 %5 %5 %5
|
|
%132 = OpCompositeConstruct %19 %5 %3 %5 %5
|
|
%133 = OpCompositeConstruct %19 %5 %5 %3 %5
|
|
%134 = OpCompositeConstruct %19 %5 %5 %5 %3
|
|
%135 = OpCompositeConstruct %26 %131 %132 %133 %134
|
|
%136 = OpMatrixTimesScalar %26 %135 %14
|
|
OpReturn
|
|
OpFunctionEnd
|
|
%138 = OpFunction %2 None %117
|
|
%137 = OpLabel
|
|
OpBranch %139
|
|
%139 = OpLabel
|
|
%140 = OpLogicalOr %10 %9 %12
|
|
%141 = OpLogicalAnd %10 %9 %12
|
|
OpReturn
|
|
OpFunctionEnd
|
|
%145 = OpFunction %2 None %117
|
|
%144 = OpLabel
|
|
%142 = OpVariable %143 Function %7
|
|
OpBranch %146
|
|
%146 = OpLabel
|
|
%147 = OpLoad %8 %142
|
|
%148 = OpIAdd %8 %147 %7
|
|
OpStore %142 %148
|
|
%149 = OpLoad %8 %142
|
|
%150 = OpISub %8 %149 %7
|
|
OpStore %142 %150
|
|
%151 = OpLoad %8 %142
|
|
%152 = OpLoad %8 %142
|
|
%153 = OpIMul %8 %151 %152
|
|
OpStore %142 %153
|
|
%154 = OpLoad %8 %142
|
|
%155 = OpLoad %8 %142
|
|
%156 = OpSDiv %8 %154 %155
|
|
OpStore %142 %156
|
|
%157 = OpLoad %8 %142
|
|
%158 = OpSMod %8 %157 %7
|
|
OpStore %142 %158
|
|
%159 = OpLoad %8 %142
|
|
%160 = OpBitwiseXor %8 %159 %11
|
|
OpStore %142 %160
|
|
%161 = OpLoad %8 %142
|
|
%162 = OpBitwiseAnd %8 %161 %11
|
|
OpStore %142 %162
|
|
OpReturn
|
|
OpFunctionEnd
|
|
%164 = OpFunction %2 None %117
|
|
%163 = OpLabel
|
|
OpBranch %165
|
|
%165 = OpLabel
|
|
%166 = OpFunctionCall %19 %32
|
|
%167 = OpFunctionCall %19 %57
|
|
%168 = OpFunctionCall %8 %73
|
|
%169 = OpVectorShuffle %22 %27 %27 0 1 2
|
|
%170 = OpFunctionCall %22 %84 %169
|
|
%171 = OpFunctionCall %4 %96
|
|
%172 = OpFunctionCall %2 %116
|
|
%173 = OpFunctionCall %2 %129
|
|
%174 = OpFunctionCall %2 %138
|
|
%175 = OpFunctionCall %2 %145
|
|
OpReturn
|
|
OpFunctionEnd |