Files
wgpu/tests/out/spv/skybox.spvasm
T

138 lines
3.8 KiB
Plaintext

; SPIR-V
; Version: 1.0
; Generator: rspirv
; Bound: 97
OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Vertex %33 "vs_main" %26 %29 %31
OpEntryPoint Fragment %89 "fs_main" %82 %85 %88
OpExecutionMode %89 OriginUpperLeft
OpMemberDecorate %6 0 Offset 0
OpMemberDecorate %6 1 Offset 16
OpMemberDecorate %8 0 Offset 0
OpMemberDecorate %8 0 ColMajor
OpMemberDecorate %8 0 MatrixStride 16
OpMemberDecorate %8 1 Offset 64
OpMemberDecorate %8 1 ColMajor
OpMemberDecorate %8 1 MatrixStride 16
OpDecorate %14 DescriptorSet 0
OpDecorate %14 Binding 0
OpDecorate %15 Block
OpMemberDecorate %15 0 Offset 0
OpDecorate %17 DescriptorSet 0
OpDecorate %17 Binding 1
OpDecorate %19 DescriptorSet 0
OpDecorate %19 Binding 2
OpDecorate %26 BuiltIn VertexIndex
OpDecorate %29 BuiltIn Position
OpDecorate %31 Location 0
OpDecorate %82 BuiltIn FragCoord
OpDecorate %85 Location 0
OpDecorate %88 Location 0
%2 = OpTypeVoid
%4 = OpTypeFloat 32
%3 = OpTypeVector %4 4
%5 = OpTypeVector %4 3
%6 = OpTypeStruct %3 %5
%7 = OpTypeMatrix %3 4
%8 = OpTypeStruct %7 %7
%9 = OpTypeInt 32 0
%10 = OpTypeInt 32 1
%11 = OpTypeMatrix %5 3
%12 = OpTypeImage %4 Cube 0 0 0 1 Unknown
%13 = OpTypeSampler
%15 = OpTypeStruct %8
%16 = OpTypePointer Uniform %15
%14 = OpVariable %16 Uniform
%18 = OpTypePointer UniformConstant %12
%17 = OpVariable %18 UniformConstant
%20 = OpTypePointer UniformConstant %13
%19 = OpVariable %20 UniformConstant
%22 = OpTypePointer Function %10
%23 = OpConstantNull %10
%27 = OpTypePointer Input %9
%26 = OpVariable %27 Input
%30 = OpTypePointer Output %3
%29 = OpVariable %30 Output
%32 = OpTypePointer Output %5
%31 = OpVariable %32 Output
%34 = OpTypeFunction %2
%35 = OpTypePointer Uniform %8
%36 = OpConstant %9 0
%38 = OpConstant %10 2
%39 = OpConstant %10 1
%40 = OpConstant %4 4.0
%41 = OpConstant %4 1.0
%42 = OpConstant %4 0.0
%57 = OpTypePointer Uniform %7
%58 = OpTypePointer Uniform %3
%59 = OpConstant %9 1
%66 = OpConstant %9 2
%83 = OpTypePointer Input %3
%82 = OpVariable %83 Input
%86 = OpTypePointer Input %5
%85 = OpVariable %86 Input
%88 = OpVariable %30 Output
%94 = OpTypeSampledImage %12
%33 = OpFunction %2 None %34
%25 = OpLabel
%21 = OpVariable %22 Function %23
%24 = OpVariable %22 Function %23
%28 = OpLoad %9 %26
%37 = OpAccessChain %35 %14 %36
OpBranch %43
%43 = OpLabel
%44 = OpBitcast %10 %28
%45 = OpSDiv %10 %44 %38
OpStore %21 %45
%46 = OpBitcast %10 %28
%47 = OpBitwiseAnd %10 %46 %39
OpStore %24 %47
%48 = OpLoad %10 %21
%49 = OpConvertSToF %4 %48
%50 = OpFMul %4 %49 %40
%51 = OpFSub %4 %50 %41
%52 = OpLoad %10 %24
%53 = OpConvertSToF %4 %52
%54 = OpFMul %4 %53 %40
%55 = OpFSub %4 %54 %41
%56 = OpCompositeConstruct %3 %51 %55 %42 %41
%60 = OpAccessChain %58 %37 %59 %36
%61 = OpLoad %3 %60
%62 = OpVectorShuffle %5 %61 %61 0 1 2
%63 = OpAccessChain %58 %37 %59 %59
%64 = OpLoad %3 %63
%65 = OpVectorShuffle %5 %64 %64 0 1 2
%67 = OpAccessChain %58 %37 %59 %66
%68 = OpLoad %3 %67
%69 = OpVectorShuffle %5 %68 %68 0 1 2
%70 = OpCompositeConstruct %11 %62 %65 %69
%71 = OpTranspose %11 %70
%72 = OpAccessChain %57 %37 %36
%73 = OpLoad %7 %72
%74 = OpMatrixTimesVector %3 %73 %56
%75 = OpVectorShuffle %5 %74 %74 0 1 2
%76 = OpMatrixTimesVector %5 %71 %75
%77 = OpCompositeConstruct %6 %56 %76
%78 = OpCompositeExtract %3 %77 0
OpStore %29 %78
%79 = OpCompositeExtract %5 %77 1
OpStore %31 %79
OpReturn
OpFunctionEnd
%89 = OpFunction %2 None %34
%80 = OpLabel
%84 = OpLoad %3 %82
%87 = OpLoad %5 %85
%81 = OpCompositeConstruct %6 %84 %87
%90 = OpLoad %12 %17
%91 = OpLoad %13 %19
OpBranch %92
%92 = OpLabel
%93 = OpCompositeExtract %5 %81 1
%95 = OpSampledImage %94 %90 %91
%96 = OpImageSampleImplicitLod %3 %95 %93
OpStore %88 %96
OpReturn
OpFunctionEnd