Files
wgpu/tests/out/spv/interface.vertex.spvasm
Jim Blandy 8b267218a4 Implement module compaction.
Add a new Naga feature, `"compact"`, which adds a new function
`naga::compact::compact`, which removes unused expressions, types, and
constants from a `Module`.
2023-09-20 18:46:33 +02:00

66 lines
1.7 KiB
Plaintext

; SPIR-V
; Version: 1.0
; Generator: rspirv
; Bound: 39
OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Vertex %29 "vertex" %15 %18 %20 %22 %24 %26
OpMemberDecorate %5 0 Offset 0
OpMemberDecorate %5 1 Offset 16
OpMemberDecorate %7 0 Offset 0
OpMemberDecorate %7 1 Offset 4
OpMemberDecorate %7 2 Offset 8
OpDecorate %9 ArrayStride 4
OpMemberDecorate %12 0 Offset 0
OpMemberDecorate %13 0 Offset 0
OpDecorate %15 BuiltIn VertexIndex
OpDecorate %18 BuiltIn InstanceIndex
OpDecorate %20 Location 10
OpDecorate %22 Invariant
OpDecorate %22 BuiltIn Position
OpDecorate %24 Location 1
OpDecorate %26 BuiltIn PointSize
%2 = OpTypeVoid
%4 = OpTypeFloat 32
%3 = OpTypeVector %4 4
%5 = OpTypeStruct %3 %4
%6 = OpTypeInt 32 0
%7 = OpTypeStruct %4 %6 %4
%8 = OpTypeBool
%10 = OpConstant %6 1
%9 = OpTypeArray %6 %10
%11 = OpTypeVector %6 3
%12 = OpTypeStruct %6
%13 = OpTypeStruct %6
%16 = OpTypePointer Input %6
%15 = OpVariable %16 Input
%18 = OpVariable %16 Input
%20 = OpVariable %16 Input
%23 = OpTypePointer Output %3
%22 = OpVariable %23 Output
%25 = OpTypePointer Output %4
%24 = OpVariable %25 Output
%27 = OpTypePointer Output %4
%26 = OpVariable %27 Output
%28 = OpConstant %4 1.0
%30 = OpTypeFunction %2
%29 = OpFunction %2 None %30
%14 = OpLabel
%17 = OpLoad %6 %15
%19 = OpLoad %6 %18
%21 = OpLoad %6 %20
OpStore %26 %28
OpBranch %31
%31 = OpLabel
%32 = OpIAdd %6 %17 %19
%33 = OpIAdd %6 %32 %21
%34 = OpCompositeConstruct %3 %28 %28 %28 %28
%35 = OpConvertUToF %4 %33
%36 = OpCompositeConstruct %5 %34 %35
%37 = OpCompositeExtract %3 %36 0
OpStore %22 %37
%38 = OpCompositeExtract %4 %36 1
OpStore %24 %38
OpReturn
OpFunctionEnd