mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
154 lines
5.0 KiB
Plaintext
154 lines
5.0 KiB
Plaintext
; SPIR-V
|
|
; Version: 1.1
|
|
; Generator: rspirv
|
|
; Bound: 134
|
|
OpCapability Shader
|
|
%1 = OpExtInstImport "GLSL.std.450"
|
|
OpMemoryModel Logical GLSL450
|
|
OpEntryPoint Fragment %15 "main"
|
|
OpExecutionMode %15 OriginUpperLeft
|
|
OpMemberDecorate %8 0 Offset 0
|
|
OpMemberDecorate %8 1 Offset 4
|
|
OpMemberDecorate %9 0 Offset 0
|
|
OpMemberDecorate %9 1 Offset 8
|
|
OpMemberDecorate %10 0 Offset 0
|
|
OpMemberDecorate %10 1 Offset 16
|
|
OpMemberDecorate %11 0 Offset 0
|
|
OpMemberDecorate %11 1 Offset 4
|
|
OpMemberDecorate %13 0 Offset 0
|
|
OpMemberDecorate %13 1 Offset 16
|
|
%2 = OpTypeVoid
|
|
%4 = OpTypeFloat 32
|
|
%3 = OpTypeVector %4 4
|
|
%6 = OpTypeInt 32 1
|
|
%5 = OpTypeVector %6 2
|
|
%7 = OpTypeVector %4 2
|
|
%8 = OpTypeStruct %4 %4
|
|
%9 = OpTypeStruct %7 %7
|
|
%10 = OpTypeStruct %3 %3
|
|
%11 = OpTypeStruct %4 %6
|
|
%12 = OpTypeVector %6 4
|
|
%13 = OpTypeStruct %3 %12
|
|
%16 = OpTypeFunction %2
|
|
%17 = OpConstant %4 1.0
|
|
%18 = OpConstant %4 0.0
|
|
%19 = OpConstant %6 -1
|
|
%20 = OpConstant %4 -1.0
|
|
%21 = OpConstantNull %5
|
|
%22 = OpTypeInt 32 0
|
|
%23 = OpConstant %22 0
|
|
%24 = OpConstant %22 1
|
|
%25 = OpConstant %6 0
|
|
%26 = OpConstant %22 4294967295
|
|
%27 = OpConstant %6 1
|
|
%28 = OpConstant %6 2
|
|
%29 = OpConstant %4 2.0
|
|
%30 = OpConstant %6 3
|
|
%31 = OpConstant %6 4
|
|
%32 = OpConstant %4 1.5
|
|
%40 = OpConstantComposite %3 %18 %18 %18 %18
|
|
%41 = OpConstantComposite %3 %17 %17 %17 %17
|
|
%50 = OpConstantNull %6
|
|
%63 = OpTypeVector %22 2
|
|
%73 = OpConstant %22 32
|
|
%83 = OpConstantComposite %63 %73 %73
|
|
%95 = OpConstant %6 31
|
|
%101 = OpConstantComposite %5 %95 %95
|
|
%15 = OpFunction %2 None %16
|
|
%14 = OpLabel
|
|
OpBranch %33
|
|
%33 = OpLabel
|
|
%34 = OpCompositeConstruct %3 %18 %18 %18 %18
|
|
%35 = OpExtInst %4 %1 Degrees %17
|
|
%36 = OpExtInst %4 %1 Radians %17
|
|
%37 = OpExtInst %3 %1 Degrees %34
|
|
%38 = OpExtInst %3 %1 Radians %34
|
|
%39 = OpExtInst %3 %1 FClamp %34 %40 %41
|
|
%42 = OpExtInst %3 %1 Refract %34 %34 %17
|
|
%43 = OpExtInst %6 %1 SSign %19
|
|
%44 = OpCompositeConstruct %12 %19 %19 %19 %19
|
|
%45 = OpExtInst %12 %1 SSign %44
|
|
%46 = OpExtInst %4 %1 FSign %20
|
|
%47 = OpCompositeConstruct %3 %20 %20 %20 %20
|
|
%48 = OpExtInst %3 %1 FSign %47
|
|
%51 = OpCompositeExtract %6 %21 0
|
|
%52 = OpCompositeExtract %6 %21 0
|
|
%53 = OpIMul %6 %51 %52
|
|
%54 = OpIAdd %6 %50 %53
|
|
%55 = OpCompositeExtract %6 %21 1
|
|
%56 = OpCompositeExtract %6 %21 1
|
|
%57 = OpIMul %6 %55 %56
|
|
%49 = OpIAdd %6 %54 %57
|
|
%58 = OpCopyObject %22 %23
|
|
%59 = OpExtInst %22 %1 FindUMsb %58
|
|
%60 = OpExtInst %6 %1 FindSMsb %19
|
|
%61 = OpCompositeConstruct %5 %19 %19
|
|
%62 = OpExtInst %5 %1 FindSMsb %61
|
|
%64 = OpCompositeConstruct %63 %24 %24
|
|
%65 = OpExtInst %63 %1 FindUMsb %64
|
|
%66 = OpExtInst %6 %1 FindILsb %19
|
|
%67 = OpExtInst %22 %1 FindILsb %24
|
|
%68 = OpCompositeConstruct %5 %19 %19
|
|
%69 = OpExtInst %5 %1 FindILsb %68
|
|
%70 = OpCompositeConstruct %63 %24 %24
|
|
%71 = OpExtInst %63 %1 FindILsb %70
|
|
%74 = OpExtInst %22 %1 FindILsb %23
|
|
%72 = OpExtInst %22 %1 UMin %73 %74
|
|
%76 = OpExtInst %6 %1 FindILsb %25
|
|
%75 = OpExtInst %6 %1 UMin %73 %76
|
|
%78 = OpExtInst %22 %1 FindILsb %26
|
|
%77 = OpExtInst %22 %1 UMin %73 %78
|
|
%80 = OpExtInst %6 %1 FindILsb %19
|
|
%79 = OpExtInst %6 %1 UMin %73 %80
|
|
%81 = OpCompositeConstruct %63 %23 %23
|
|
%84 = OpExtInst %63 %1 FindILsb %81
|
|
%82 = OpExtInst %63 %1 UMin %83 %84
|
|
%85 = OpCompositeConstruct %5 %25 %25
|
|
%87 = OpExtInst %5 %1 FindILsb %85
|
|
%86 = OpExtInst %5 %1 UMin %83 %87
|
|
%88 = OpCompositeConstruct %63 %24 %24
|
|
%90 = OpExtInst %63 %1 FindILsb %88
|
|
%89 = OpExtInst %63 %1 UMin %83 %90
|
|
%91 = OpCompositeConstruct %5 %27 %27
|
|
%93 = OpExtInst %5 %1 FindILsb %91
|
|
%92 = OpExtInst %5 %1 UMin %83 %93
|
|
%96 = OpExtInst %6 %1 FindUMsb %19
|
|
%94 = OpISub %6 %95 %96
|
|
%98 = OpExtInst %6 %1 FindUMsb %24
|
|
%97 = OpISub %22 %95 %98
|
|
%99 = OpCompositeConstruct %5 %19 %19
|
|
%102 = OpExtInst %5 %1 FindUMsb %99
|
|
%100 = OpISub %5 %101 %102
|
|
%103 = OpCompositeConstruct %63 %24 %24
|
|
%105 = OpExtInst %5 %1 FindUMsb %103
|
|
%104 = OpISub %63 %101 %105
|
|
%106 = OpExtInst %4 %1 Ldexp %17 %28
|
|
%107 = OpCompositeConstruct %7 %17 %29
|
|
%108 = OpCompositeConstruct %5 %30 %31
|
|
%109 = OpExtInst %7 %1 Ldexp %107 %108
|
|
%110 = OpExtInst %8 %1 ModfStruct %32
|
|
%111 = OpExtInst %8 %1 ModfStruct %32
|
|
%112 = OpCompositeExtract %4 %111 0
|
|
%113 = OpExtInst %8 %1 ModfStruct %32
|
|
%114 = OpCompositeExtract %4 %113 1
|
|
%115 = OpCompositeConstruct %7 %32 %32
|
|
%116 = OpExtInst %9 %1 ModfStruct %115
|
|
%117 = OpCompositeConstruct %3 %32 %32 %32 %32
|
|
%118 = OpExtInst %10 %1 ModfStruct %117
|
|
%119 = OpCompositeExtract %3 %118 1
|
|
%120 = OpCompositeExtract %4 %119 0
|
|
%121 = OpCompositeConstruct %7 %32 %32
|
|
%122 = OpExtInst %9 %1 ModfStruct %121
|
|
%123 = OpCompositeExtract %7 %122 0
|
|
%124 = OpCompositeExtract %4 %123 1
|
|
%125 = OpExtInst %11 %1 FrexpStruct %32
|
|
%126 = OpExtInst %11 %1 FrexpStruct %32
|
|
%127 = OpCompositeExtract %4 %126 0
|
|
%128 = OpExtInst %11 %1 FrexpStruct %32
|
|
%129 = OpCompositeExtract %6 %128 1
|
|
%130 = OpCompositeConstruct %3 %32 %32 %32 %32
|
|
%131 = OpExtInst %13 %1 FrexpStruct %130
|
|
%132 = OpCompositeExtract %12 %131 1
|
|
%133 = OpCompositeExtract %6 %132 0
|
|
OpReturn
|
|
OpFunctionEnd |