blob: 345c1b6d77cbd98871717947959c8f6317bd12e1 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 28
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %main "main"
OpExecutionMode %main LocalSize 1 1 1
OpName %out_block "out_block"
OpMemberName %out_block 0 "inner"
OpName %out "out"
OpName %S3 "S3"
OpMemberName %S3 0 "s2"
OpName %S2 "S2"
OpMemberName %S2 0 "s1"
OpName %S1 "S1"
OpMemberName %S1 0 "i"
OpName %f "f"
OpName %s3 "s3"
OpName %main "main"
OpDecorate %out_block Block
OpMemberDecorate %out_block 0 Offset 0
OpDecorate %out DescriptorSet 0
OpDecorate %out Binding 0
OpMemberDecorate %S3 0 Offset 0
OpMemberDecorate %S2 0 Offset 0
OpMemberDecorate %S1 0 Offset 0
%int = OpTypeInt 32 1
%out_block = OpTypeStruct %int
%_ptr_StorageBuffer_out_block = OpTypePointer StorageBuffer %out_block
%out = OpVariable %_ptr_StorageBuffer_out_block StorageBuffer
%S1 = OpTypeStruct %int
%S2 = OpTypeStruct %S1
%S3 = OpTypeStruct %S2
%5 = OpTypeFunction %int %S3
%void = OpTypeVoid
%15 = OpTypeFunction %void
%uint = OpTypeInt 32 0
%uint_0 = OpConstant %uint 0
%_ptr_StorageBuffer_int = OpTypePointer StorageBuffer %int
%int_42 = OpConstant %int 42
%25 = OpConstantComposite %S1 %int_42
%26 = OpConstantComposite %S2 %25
%27 = OpConstantComposite %S3 %26
%f = OpFunction %int None %5
%s3 = OpFunctionParameter %S3
%11 = OpLabel
%12 = OpCompositeExtract %S2 %s3 0
%13 = OpCompositeExtract %S1 %12 0
%14 = OpCompositeExtract %int %13 0
OpReturnValue %14
OpFunctionEnd
%main = OpFunction %void None %15
%18 = OpLabel
%22 = OpAccessChain %_ptr_StorageBuffer_int %out %uint_0
%23 = OpFunctionCall %int %f %27
OpStore %22 %23
OpReturn
OpFunctionEnd