mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-29 17:44:09 +01:00
99 lines
2.5 KiB
Plaintext
99 lines
2.5 KiB
Plaintext
; SPIR-V
|
|
; Version: 1.0
|
|
; Generator: rspirv
|
|
; Bound: 76
|
|
OpCapability Shader
|
|
%1 = OpExtInstImport "GLSL.std.450"
|
|
OpMemoryModel Logical GLSL450
|
|
OpEntryPoint GLCompute %70 "main"
|
|
OpExecutionMode %70 LocalSize 1 1 1
|
|
%2 = OpTypeVoid
|
|
%4 = OpTypeFloat 32
|
|
%3 = OpConstant %4 1.0
|
|
%5 = OpConstant %4 0.0
|
|
%6 = OpConstant %4 0.5
|
|
%8 = OpTypeBool
|
|
%7 = OpConstantTrue %8
|
|
%10 = OpTypeInt 32 1
|
|
%9 = OpConstant %10 0
|
|
%11 = OpConstant %10 1
|
|
%12 = OpConstantFalse %8
|
|
%13 = OpConstant %4 0.1
|
|
%14 = OpConstant %4 2.0
|
|
%15 = OpConstant %4 3.0
|
|
%16 = OpConstant %4 4.0
|
|
%17 = OpConstant %10 5
|
|
%18 = OpConstant %10 2
|
|
%19 = OpTypeVector %4 4
|
|
%20 = OpTypeVector %8 4
|
|
%21 = OpConstantComposite %19 %3 %3 %3 %3
|
|
%22 = OpConstantComposite %19 %5 %5 %5 %5
|
|
%23 = OpConstantComposite %19 %6 %6 %6 %6
|
|
%26 = OpTypeFunction %19
|
|
%36 = OpTypeVector %10 4
|
|
%45 = OpTypeVector %4 2
|
|
%61 = OpTypeFunction %10
|
|
%68 = OpConstantNull %10
|
|
%71 = OpTypeFunction %2
|
|
%25 = OpFunction %19 None %26
|
|
%24 = OpLabel
|
|
OpBranch %27
|
|
%27 = OpLabel
|
|
%28 = OpSelect %10 %7 %11 %9
|
|
%30 = OpCompositeConstruct %20 %7 %7 %7 %7
|
|
%29 = OpSelect %19 %30 %21 %22
|
|
%31 = OpCompositeConstruct %20 %12 %12 %12 %12
|
|
%32 = OpSelect %19 %31 %22 %21
|
|
%33 = OpExtInst %19 %1 FMix %22 %21 %23
|
|
%35 = OpCompositeConstruct %19 %13 %13 %13 %13
|
|
%34 = OpExtInst %19 %1 FMix %22 %21 %35
|
|
%37 = OpCompositeConstruct %36 %28 %28 %28 %28
|
|
%38 = OpConvertSToF %19 %37
|
|
%39 = OpFAdd %19 %38 %29
|
|
%40 = OpFAdd %19 %39 %33
|
|
%41 = OpFAdd %19 %40 %34
|
|
OpReturnValue %41
|
|
OpFunctionEnd
|
|
%43 = OpFunction %19 None %26
|
|
%42 = OpLabel
|
|
OpBranch %44
|
|
%44 = OpLabel
|
|
%46 = OpCompositeConstruct %45 %14 %14
|
|
%47 = OpCompositeConstruct %45 %3 %3
|
|
%48 = OpFAdd %45 %47 %46
|
|
%49 = OpCompositeConstruct %45 %15 %15
|
|
%50 = OpFSub %45 %48 %49
|
|
%51 = OpCompositeConstruct %45 %16 %16
|
|
%52 = OpFDiv %45 %50 %51
|
|
%53 = OpCompositeConstruct %36 %17 %17 %17 %17
|
|
%54 = OpCompositeConstruct %36 %18 %18 %18 %18
|
|
%55 = OpSMod %36 %53 %54
|
|
%56 = OpVectorShuffle %19 %52 %52 0 1 0 1
|
|
%57 = OpConvertSToF %19 %55
|
|
%58 = OpFAdd %19 %56 %57
|
|
OpReturnValue %58
|
|
OpFunctionEnd
|
|
%60 = OpFunction %10 None %61
|
|
%59 = OpLabel
|
|
OpBranch %62
|
|
%62 = OpLabel
|
|
%63 = OpLogicalNot %8 %7
|
|
OpSelectionMerge %64 None
|
|
OpBranchConditional %63 %65 %66
|
|
%65 = OpLabel
|
|
OpReturnValue %11
|
|
%66 = OpLabel
|
|
%67 = OpNot %10 %11
|
|
OpReturnValue %67
|
|
%64 = OpLabel
|
|
OpReturnValue %68
|
|
OpFunctionEnd
|
|
%70 = OpFunction %2 None %71
|
|
%69 = OpLabel
|
|
OpBranch %72
|
|
%72 = OpLabel
|
|
%73 = OpFunctionCall %19 %25
|
|
%74 = OpFunctionCall %19 %43
|
|
%75 = OpFunctionCall %10 %60
|
|
OpReturn
|
|
OpFunctionEnd |