Files
wgpu/tests/out/spv/constructors.spvasm
T
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

84 lines
2.4 KiB
Plaintext

; SPIR-V
; Version: 1.1
; Generator: rspirv
; Bound: 74
OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %46 "main"
OpExecutionMode %46 LocalSize 1 1 1
OpMemberDecorate %6 0 Offset 0
OpMemberDecorate %6 1 Offset 16
OpDecorate %10 ArrayStride 16
OpDecorate %15 ArrayStride 32
OpDecorate %17 ArrayStride 4
%2 = OpTypeVoid
%4 = OpTypeFloat 32
%3 = OpTypeVector %4 4
%5 = OpTypeInt 32 1
%6 = OpTypeStruct %3 %5
%7 = OpTypeVector %4 3
%9 = OpTypeVector %4 2
%8 = OpTypeMatrix %9 2
%12 = OpTypeInt 32 0
%11 = OpConstant %12 1
%10 = OpTypeArray %8 %11
%13 = OpTypeBool
%14 = OpTypeVector %12 2
%16 = OpConstant %12 3
%15 = OpTypeArray %6 %16
%18 = OpConstant %12 4
%17 = OpTypeArray %5 %18
%19 = OpTypeMatrix %3 4
%20 = OpTypeMatrix %7 2
%21 = OpConstant %4 0.0
%22 = OpConstant %4 1.0
%23 = OpConstant %4 2.0
%24 = OpConstantComposite %7 %21 %22 %23
%25 = OpConstant %4 3.0
%26 = OpConstantComposite %9 %21 %22
%27 = OpConstantComposite %9 %23 %25
%28 = OpConstantComposite %8 %26 %27
%29 = OpConstantComposite %10 %28
%30 = OpConstantNull %13
%31 = OpConstantNull %5
%32 = OpConstantNull %12
%33 = OpConstantNull %4
%34 = OpConstantNull %14
%35 = OpConstantNull %8
%36 = OpConstantNull %15
%37 = OpConstantNull %6
%38 = OpConstant %5 0
%39 = OpConstant %5 1
%40 = OpConstant %5 2
%41 = OpConstant %5 3
%42 = OpConstantComposite %17 %38 %39 %40 %41
%44 = OpTypePointer Function %6
%47 = OpTypeFunction %2
%48 = OpConstant %12 0
%49 = OpConstantNull %20
%46 = OpFunction %2 None %47
%45 = OpLabel
%43 = OpVariable %44 Function %37
OpBranch %50
%50 = OpLabel
%51 = OpCompositeConstruct %3 %22 %22 %22 %22
%52 = OpCompositeConstruct %6 %51 %39
OpStore %43 %52
%53 = OpCompositeConstruct %9 %22 %21
%54 = OpCompositeConstruct %9 %21 %22
%55 = OpCompositeConstruct %8 %53 %54
%56 = OpCompositeConstruct %3 %22 %21 %21 %21
%57 = OpCompositeConstruct %3 %21 %22 %21 %21
%58 = OpCompositeConstruct %3 %21 %21 %22 %21
%59 = OpCompositeConstruct %3 %21 %21 %21 %22
%60 = OpCompositeConstruct %19 %56 %57 %58 %59
%61 = OpCompositeConstruct %14 %48 %48
%62 = OpCompositeConstruct %9 %21 %21
%63 = OpCompositeConstruct %9 %21 %21
%64 = OpCompositeConstruct %8 %62 %63
%65 = OpCompositeConstruct %17 %38 %39 %40 %41
%71 = OpCopyObject %20 %49
%73 = OpCopyObject %20 %49
OpReturn
OpFunctionEnd