mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-21 23:11:01 +01:00
130 lines
3.4 KiB
Plaintext
130 lines
3.4 KiB
Plaintext
; SPIR-V
|
|
; Version: 1.1
|
|
; Generator: rspirv
|
|
; Bound: 101
|
|
OpCapability Shader
|
|
%1 = OpExtInstImport "GLSL.std.450"
|
|
OpMemoryModel Logical GLSL450
|
|
OpEntryPoint GLCompute %94 "main"
|
|
OpExecutionMode %94 LocalSize 1 1 1
|
|
OpMemberDecorate %22 0 Offset 0
|
|
OpMemberDecorate %22 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 = OpTypeStruct %19 %8
|
|
%23 = OpConstantComposite %19 %3 %3 %3 %3
|
|
%24 = OpConstantComposite %19 %5 %5 %5 %5
|
|
%25 = OpConstantComposite %19 %6 %6 %6 %6
|
|
%26 = OpConstantComposite %20 %7 %7 %7 %7
|
|
%29 = OpTypeFunction %19
|
|
%55 = OpTypeVector %4 2
|
|
%71 = OpTypeFunction %8
|
|
%78 = OpConstantNull %8
|
|
%80 = OpTypePointer Function %22
|
|
%83 = OpTypeFunction %4
|
|
%87 = OpTypePointer Function %19
|
|
%88 = OpTypePointer Function %4
|
|
%90 = OpTypeInt 32 0
|
|
%89 = OpConstant %90 0
|
|
%95 = OpTypeFunction %2
|
|
%28 = OpFunction %19 None %29
|
|
%27 = OpLabel
|
|
OpBranch %30
|
|
%30 = OpLabel
|
|
%31 = OpSelect %8 %9 %7 %11
|
|
%33 = OpCompositeConstruct %21 %9 %9 %9 %9
|
|
%32 = OpSelect %19 %33 %23 %24
|
|
%34 = OpCompositeConstruct %21 %12 %12 %12 %12
|
|
%35 = OpSelect %19 %34 %24 %23
|
|
%36 = OpExtInst %19 %1 FMix %24 %23 %25
|
|
%38 = OpCompositeConstruct %19 %13 %13 %13 %13
|
|
%37 = OpExtInst %19 %1 FMix %24 %23 %38
|
|
%39 = OpCompositeExtract %8 %26 0
|
|
%40 = OpBitcast %4 %39
|
|
%41 = OpBitcast %19 %26
|
|
%42 = OpConvertFToS %20 %24
|
|
%43 = OpCompositeConstruct %20 %31 %31 %31 %31
|
|
%44 = OpIAdd %20 %43 %42
|
|
%45 = OpConvertSToF %19 %44
|
|
%46 = OpFAdd %19 %45 %32
|
|
%47 = OpFAdd %19 %46 %36
|
|
%48 = OpFAdd %19 %47 %37
|
|
%49 = OpCompositeConstruct %19 %40 %40 %40 %40
|
|
%50 = OpFAdd %19 %48 %49
|
|
%51 = OpFAdd %19 %50 %41
|
|
OpReturnValue %51
|
|
OpFunctionEnd
|
|
%53 = OpFunction %19 None %29
|
|
%52 = OpLabel
|
|
OpBranch %54
|
|
%54 = OpLabel
|
|
%56 = OpCompositeConstruct %55 %14 %14
|
|
%57 = OpCompositeConstruct %55 %3 %3
|
|
%58 = OpFAdd %55 %57 %56
|
|
%59 = OpCompositeConstruct %55 %15 %15
|
|
%60 = OpFSub %55 %58 %59
|
|
%61 = OpCompositeConstruct %55 %16 %16
|
|
%62 = OpFDiv %55 %60 %61
|
|
%63 = OpCompositeConstruct %20 %17 %17 %17 %17
|
|
%64 = OpCompositeConstruct %20 %18 %18 %18 %18
|
|
%65 = OpSMod %20 %63 %64
|
|
%66 = OpVectorShuffle %19 %62 %62 0 1 0 1
|
|
%67 = OpConvertSToF %19 %65
|
|
%68 = OpFAdd %19 %66 %67
|
|
OpReturnValue %68
|
|
OpFunctionEnd
|
|
%70 = OpFunction %8 None %71
|
|
%69 = OpLabel
|
|
OpBranch %72
|
|
%72 = OpLabel
|
|
%73 = OpLogicalNot %10 %9
|
|
OpSelectionMerge %74 None
|
|
OpBranchConditional %73 %75 %76
|
|
%75 = OpLabel
|
|
OpReturnValue %7
|
|
%76 = OpLabel
|
|
%77 = OpNot %8 %7
|
|
OpReturnValue %77
|
|
%74 = OpLabel
|
|
OpReturnValue %78
|
|
OpFunctionEnd
|
|
%82 = OpFunction %4 None %83
|
|
%81 = OpLabel
|
|
%79 = OpVariable %80 Function
|
|
OpBranch %84
|
|
%84 = OpLabel
|
|
%85 = OpCompositeConstruct %19 %3 %3 %3 %3
|
|
%86 = OpCompositeConstruct %22 %85 %7
|
|
OpStore %79 %86
|
|
%91 = OpAccessChain %88 %79 %89 %89
|
|
%92 = OpLoad %4 %91
|
|
OpReturnValue %92
|
|
OpFunctionEnd
|
|
%94 = OpFunction %2 None %95
|
|
%93 = OpLabel
|
|
OpBranch %96
|
|
%96 = OpLabel
|
|
%97 = OpFunctionCall %19 %28
|
|
%98 = OpFunctionCall %19 %53
|
|
%99 = OpFunctionCall %8 %70
|
|
%100 = OpFunctionCall %4 %82
|
|
OpReturn
|
|
OpFunctionEnd |