Files
wgpu/tests/out/spv/array-in-ctor.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

37 lines
907 B
Plaintext

; SPIR-V
; Version: 1.1
; Generator: rspirv
; Bound: 19
OpCapability Shader
OpExtension "SPV_KHR_storage_buffer_storage_class"
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %12 "cs_main"
OpExecutionMode %12 LocalSize 1 1 1
OpDecorate %4 ArrayStride 4
OpMemberDecorate %7 0 Offset 0
OpDecorate %8 NonWritable
OpDecorate %8 DescriptorSet 0
OpDecorate %8 Binding 0
OpDecorate %9 Block
OpMemberDecorate %9 0 Offset 0
%2 = OpTypeVoid
%3 = OpTypeFloat 32
%6 = OpTypeInt 32 0
%5 = OpConstant %6 2
%4 = OpTypeArray %3 %5
%7 = OpTypeStruct %4
%9 = OpTypeStruct %7
%10 = OpTypePointer StorageBuffer %9
%8 = OpVariable %10 StorageBuffer
%13 = OpTypeFunction %2
%14 = OpTypePointer StorageBuffer %7
%15 = OpConstant %6 0
%12 = OpFunction %2 None %13
%11 = OpLabel
%16 = OpAccessChain %14 %8 %15
OpBranch %17
%17 = OpLabel
%18 = OpLoad %7 %16
OpReturn
OpFunctionEnd