blob: 2f1702df2a7c88731d0d03ea3f9ddf309d109b26 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 19
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %main "main"
OpExecutionMode %main LocalSize 1 1 1
OpName %S_block "S_block"
OpMemberName %S_block 0 "inner"
OpName %str "str"
OpMemberName %str 0 "i"
OpName %S "S"
OpName %func_S_i "func_S_i"
OpName %main "main"
OpDecorate %S_block Block
OpMemberDecorate %S_block 0 Offset 0
OpMemberDecorate %str 0 Offset 0
OpDecorate %S NonWritable
OpDecorate %S DescriptorSet 0
OpDecorate %S Binding 0
%int = OpTypeInt 32 1
%str = OpTypeStruct %int
%S_block = OpTypeStruct %str
%_ptr_Uniform_S_block = OpTypePointer Uniform %S_block
%S = OpVariable %_ptr_Uniform_S_block Uniform
%6 = OpTypeFunction %int
%uint = OpTypeInt 32 0
%uint_0 = OpConstant %uint 0
%_ptr_Uniform_int = OpTypePointer Uniform %int
%void = OpTypeVoid
%14 = OpTypeFunction %void
%func_S_i = OpFunction %int None %6
%8 = OpLabel
%12 = OpAccessChain %_ptr_Uniform_int %S %uint_0 %uint_0
%13 = OpLoad %int %12
OpReturnValue %13
OpFunctionEnd
%main = OpFunction %void None %14
%17 = OpLabel
%18 = OpFunctionCall %int %func_S_i
OpReturn
OpFunctionEnd