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

119 lines
2.9 KiB
Plaintext

; SPIR-V
; Version: 1.0
; Generator: rspirv
; Bound: 64
OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Vertex %27 "main" %18 %21 %23 %25
OpEntryPoint Fragment %45 "main" %42 %44
OpEntryPoint Fragment %61 "fs_extra" %60
OpExecutionMode %45 OriginUpperLeft
OpExecutionMode %61 OriginUpperLeft
OpSource GLSL 450
OpName %3 "c_scale"
OpName %10 "VertexOutput"
OpMemberName %10 0 "uv"
OpMemberName %10 1 "position"
OpName %13 "u_texture"
OpName %15 "u_sampler"
OpName %18 "pos"
OpName %21 "uv"
OpName %23 "uv"
OpName %25 "position"
OpName %27 "main"
OpName %42 "uv"
OpName %45 "main"
OpName %61 "fs_extra"
OpMemberDecorate %10 0 Offset 0
OpMemberDecorate %10 1 Offset 16
OpDecorate %13 DescriptorSet 0
OpDecorate %13 Binding 0
OpDecorate %15 DescriptorSet 0
OpDecorate %15 Binding 1
OpDecorate %18 Location 0
OpDecorate %21 Location 1
OpDecorate %23 Location 0
OpDecorate %25 BuiltIn Position
OpDecorate %42 Location 0
OpDecorate %44 Location 0
OpDecorate %60 Location 0
%2 = OpTypeVoid
%4 = OpTypeFloat 32
%3 = OpConstant %4 1.2
%5 = OpConstant %4 0.0
%6 = OpConstant %4 1.0
%7 = OpConstant %4 0.5
%8 = OpTypeVector %4 2
%9 = OpTypeVector %4 4
%10 = OpTypeStruct %8 %9
%11 = OpTypeImage %4 2D 0 0 0 1 Unknown
%12 = OpTypeSampler
%14 = OpTypePointer UniformConstant %11
%13 = OpVariable %14 UniformConstant
%16 = OpTypePointer UniformConstant %12
%15 = OpVariable %16 UniformConstant
%19 = OpTypePointer Input %8
%18 = OpVariable %19 Input
%21 = OpVariable %19 Input
%24 = OpTypePointer Output %8
%23 = OpVariable %24 Output
%26 = OpTypePointer Output %9
%25 = OpVariable %26 Output
%28 = OpTypeFunction %2
%36 = OpTypePointer Output %4
%38 = OpTypeInt 32 0
%37 = OpConstant %38 1
%42 = OpVariable %19 Input
%44 = OpVariable %26 Output
%49 = OpTypeSampledImage %11
%53 = OpTypeBool
%60 = OpVariable %26 Output
%27 = OpFunction %2 None %28
%17 = OpLabel
%20 = OpLoad %8 %18
%22 = OpLoad %8 %21
OpBranch %29
%29 = OpLabel
%30 = OpVectorTimesScalar %8 %20 %3
%31 = OpCompositeConstruct %9 %30 %5 %6
%32 = OpCompositeConstruct %10 %22 %31
%33 = OpCompositeExtract %8 %32 0
OpStore %23 %33
%34 = OpCompositeExtract %9 %32 1
OpStore %25 %34
%35 = OpAccessChain %36 %25 %37
%39 = OpLoad %4 %35
%40 = OpFNegate %4 %39
OpStore %35 %40
OpReturn
OpFunctionEnd
%45 = OpFunction %2 None %28
%41 = OpLabel
%43 = OpLoad %8 %42
%46 = OpLoad %11 %13
%47 = OpLoad %12 %15
OpBranch %48
%48 = OpLabel
%50 = OpSampledImage %49 %46 %47
%51 = OpImageSampleImplicitLod %9 %50 %43
%52 = OpCompositeExtract %4 %51 3
%54 = OpFOrdEqual %53 %52 %5
OpSelectionMerge %55 None
OpBranchConditional %54 %56 %55
%56 = OpLabel
OpKill
%55 = OpLabel
%57 = OpCompositeExtract %4 %51 3
%58 = OpVectorTimesScalar %9 %51 %57
OpStore %44 %58
OpReturn
OpFunctionEnd
%61 = OpFunction %2 None %28
%59 = OpLabel
OpBranch %62
%62 = OpLabel
%63 = OpCompositeConstruct %9 %5 %7 %5 %7
OpStore %60 %63
OpReturn
OpFunctionEnd