blob: 7fe998dcb208492b2ecd8d4e5a632502c0998960 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; Bound: 38
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %main1 "main1"
OpEntryPoint GLCompute %main2 "main2"
OpEntryPoint GLCompute %main3 "main3"
OpEntryPoint GLCompute %main4 "main4"
OpExecutionMode %main1 LocalSize 1 1 1
OpExecutionMode %main2 LocalSize 1 1 1
OpExecutionMode %main3 LocalSize 1 1 1
OpExecutionMode %main4 LocalSize 1 1 1
OpMemberName %a_block 0 "inner"
OpName %a_block "a_block"
OpMemberName %b_block 0 "inner"
OpName %b_block "b_block"
OpMemberName %c_block 0 "inner"
OpName %c_block "c_block"
OpName %uses_a "uses_a"
OpName %foo "foo"
OpName %uses_uses_a "uses_uses_a"
OpName %uses_b "uses_b"
OpName %foo_0 "foo"
OpName %main1 "main1"
OpName %main2 "main2"
OpName %main3 "main3"
OpName %main4 "main4"
OpMemberDecorate %a_block 0 Offset 0
OpDecorate %a_block Block
OpMemberDecorate %b_block 0 Offset 0
OpDecorate %b_block Block
OpMemberDecorate %c_block 0 Offset 0
OpDecorate %c_block Block
%int = OpTypeInt 32 1
%a_block = OpTypeStruct %int
%_ptr_PushConstant_a_block = OpTypePointer PushConstant %a_block
%1 = OpVariable %_ptr_PushConstant_a_block PushConstant
%b_block = OpTypeStruct %int
%_ptr_PushConstant_b_block = OpTypePointer PushConstant %b_block
%5 = OpVariable %_ptr_PushConstant_b_block PushConstant
%c_block = OpTypeStruct %int
%_ptr_PushConstant_c_block = OpTypePointer PushConstant %c_block
%8 = OpVariable %_ptr_PushConstant_c_block PushConstant
%void = OpTypeVoid
%13 = OpTypeFunction %void
%_ptr_PushConstant_int = OpTypePointer PushConstant %int
%uint = OpTypeInt 32 0
%uint_0 = OpConstant %uint 0
%uses_a = OpFunction %void None %13
%14 = OpLabel
%15 = OpAccessChain %_ptr_PushConstant_int %1 %uint_0
%foo = OpLoad %int %15 None
OpReturn
OpFunctionEnd
%uses_uses_a = OpFunction %void None %13
%21 = OpLabel
%22 = OpFunctionCall %void %uses_a
OpReturn
OpFunctionEnd
%uses_b = OpFunction %void None %13
%24 = OpLabel
%25 = OpAccessChain %_ptr_PushConstant_int %5 %uint_0
%foo_0 = OpLoad %int %25 None
OpReturn
OpFunctionEnd
%main1 = OpFunction %void None %13
%28 = OpLabel
%29 = OpFunctionCall %void %uses_a
OpReturn
OpFunctionEnd
%main2 = OpFunction %void None %13
%31 = OpLabel
%32 = OpFunctionCall %void %uses_uses_a
OpReturn
OpFunctionEnd
%main3 = OpFunction %void None %13
%34 = OpLabel
%35 = OpFunctionCall %void %uses_b
OpReturn
OpFunctionEnd
%main4 = OpFunction %void None %13
%37 = OpLabel
OpReturn
OpFunctionEnd