mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-21 15:00:57 +01:00
107 lines
3.2 KiB
Plaintext
107 lines
3.2 KiB
Plaintext
; SPIR-V
|
|
; Version: 1.1
|
|
; Generator: rspirv
|
|
; Bound: 87
|
|
OpCapability Shader
|
|
%1 = OpExtInstImport "GLSL.std.450"
|
|
OpMemoryModel Logical GLSL450
|
|
OpEntryPoint Fragment %17 "main"
|
|
OpExecutionMode %17 OriginUpperLeft
|
|
OpMemberDecorate %11 0 Offset 0
|
|
OpMemberDecorate %11 1 Offset 4
|
|
OpMemberDecorate %12 0 Offset 0
|
|
OpMemberDecorate %12 1 Offset 8
|
|
OpMemberDecorate %13 0 Offset 0
|
|
OpMemberDecorate %13 1 Offset 16
|
|
OpMemberDecorate %14 0 Offset 0
|
|
OpMemberDecorate %14 1 Offset 4
|
|
OpMemberDecorate %15 0 Offset 0
|
|
OpMemberDecorate %15 1 Offset 16
|
|
%2 = OpTypeVoid
|
|
%3 = OpTypeFloat 32
|
|
%4 = OpTypeVector %3 4
|
|
%6 = OpTypeInt 32 1
|
|
%5 = OpTypeVector %6 4
|
|
%7 = OpTypeVector %6 2
|
|
%9 = OpTypeInt 32 0
|
|
%8 = OpTypeVector %9 2
|
|
%10 = OpTypeVector %3 2
|
|
%11 = OpTypeStruct %3 %3
|
|
%12 = OpTypeStruct %10 %10
|
|
%13 = OpTypeStruct %4 %4
|
|
%14 = OpTypeStruct %3 %6
|
|
%15 = OpTypeStruct %4 %5
|
|
%18 = OpTypeFunction %2
|
|
%19 = OpConstant %3 1.0
|
|
%20 = OpConstant %3 0.0
|
|
%21 = OpConstantComposite %4 %20 %20 %20 %20
|
|
%22 = OpConstant %6 -1
|
|
%23 = OpConstantComposite %5 %22 %22 %22 %22
|
|
%24 = OpConstant %3 -1.0
|
|
%25 = OpConstantComposite %4 %24 %24 %24 %24
|
|
%26 = OpConstantNull %7
|
|
%27 = OpConstant %9 4294967295
|
|
%28 = OpConstantComposite %7 %22 %22
|
|
%29 = OpConstant %9 0
|
|
%30 = OpConstantComposite %8 %29 %29
|
|
%31 = OpConstant %6 0
|
|
%32 = OpConstantComposite %7 %31 %31
|
|
%33 = OpConstant %9 32
|
|
%34 = OpConstant %6 32
|
|
%35 = OpConstantComposite %8 %33 %33
|
|
%36 = OpConstantComposite %7 %34 %34
|
|
%37 = OpConstant %9 31
|
|
%38 = OpConstantComposite %8 %37 %37
|
|
%39 = OpConstant %6 2
|
|
%40 = OpConstant %3 2.0
|
|
%41 = OpConstantComposite %10 %19 %40
|
|
%42 = OpConstant %6 3
|
|
%43 = OpConstant %6 4
|
|
%44 = OpConstantComposite %7 %42 %43
|
|
%45 = OpConstant %3 1.5
|
|
%46 = OpConstantComposite %10 %45 %45
|
|
%47 = OpConstantComposite %4 %45 %45 %45 %45
|
|
%54 = OpConstantComposite %4 %19 %19 %19 %19
|
|
%57 = OpConstantNull %6
|
|
%17 = OpFunction %2 None %18
|
|
%16 = OpLabel
|
|
OpBranch %48
|
|
%48 = OpLabel
|
|
%49 = OpExtInst %3 %1 Degrees %19
|
|
%50 = OpExtInst %3 %1 Radians %19
|
|
%51 = OpExtInst %4 %1 Degrees %21
|
|
%52 = OpExtInst %4 %1 Radians %21
|
|
%53 = OpExtInst %4 %1 FClamp %21 %21 %54
|
|
%55 = OpExtInst %4 %1 Refract %21 %21 %19
|
|
%58 = OpCompositeExtract %6 %26 0
|
|
%59 = OpCompositeExtract %6 %26 0
|
|
%60 = OpIMul %6 %58 %59
|
|
%61 = OpIAdd %6 %57 %60
|
|
%62 = OpCompositeExtract %6 %26 1
|
|
%63 = OpCompositeExtract %6 %26 1
|
|
%64 = OpIMul %6 %62 %63
|
|
%56 = OpIAdd %6 %61 %64
|
|
%65 = OpExtInst %3 %1 Ldexp %19 %39
|
|
%66 = OpExtInst %10 %1 Ldexp %41 %44
|
|
%67 = OpExtInst %11 %1 ModfStruct %45
|
|
%68 = OpExtInst %11 %1 ModfStruct %45
|
|
%69 = OpCompositeExtract %3 %68 0
|
|
%70 = OpExtInst %11 %1 ModfStruct %45
|
|
%71 = OpCompositeExtract %3 %70 1
|
|
%72 = OpExtInst %12 %1 ModfStruct %46
|
|
%73 = OpExtInst %13 %1 ModfStruct %47
|
|
%74 = OpCompositeExtract %4 %73 1
|
|
%75 = OpCompositeExtract %3 %74 0
|
|
%76 = OpExtInst %12 %1 ModfStruct %46
|
|
%77 = OpCompositeExtract %10 %76 0
|
|
%78 = OpCompositeExtract %3 %77 1
|
|
%79 = OpExtInst %14 %1 FrexpStruct %45
|
|
%80 = OpExtInst %14 %1 FrexpStruct %45
|
|
%81 = OpCompositeExtract %3 %80 0
|
|
%82 = OpExtInst %14 %1 FrexpStruct %45
|
|
%83 = OpCompositeExtract %6 %82 1
|
|
%84 = OpExtInst %15 %1 FrexpStruct %47
|
|
%85 = OpCompositeExtract %5 %84 1
|
|
%86 = OpCompositeExtract %6 %85 0
|
|
OpReturn
|
|
OpFunctionEnd |