Files
wgpu/tests/out/spv/array-in-ctor.spvasm
T

39 lines
959 B
Plaintext

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