blob: 36525c0b6972ea2fb5ce552460859285239b23dc [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 24
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %main "main"
OpExecutionMode %main LocalSize 1 1 1
OpName %Constants "Constants"
OpMemberName %Constants 0 "zero"
OpName %constants "constants"
OpName %Result "Result"
OpMemberName %Result 0 "value"
OpName %result "result"
OpName %S "S"
OpMemberName %S 0 "data"
OpName %s "s"
OpName %main "main"
OpDecorate %Constants Block
OpMemberDecorate %Constants 0 Offset 0
OpDecorate %constants NonWritable
OpDecorate %constants DescriptorSet 1
OpDecorate %constants Binding 0
OpDecorate %Result Block
OpMemberDecorate %Result 0 Offset 0
OpDecorate %result NonReadable
OpDecorate %result DescriptorSet 1
OpDecorate %result Binding 1
OpMemberDecorate %S 0 Offset 0
OpDecorate %_arr_uint_uint_3 ArrayStride 4
%uint = OpTypeInt 32 0
%Constants = OpTypeStruct %uint
%_ptr_Uniform_Constants = OpTypePointer Uniform %Constants
%constants = OpVariable %_ptr_Uniform_Constants Uniform
%Result = OpTypeStruct %uint
%_ptr_StorageBuffer_Result = OpTypePointer StorageBuffer %Result
%result = OpVariable %_ptr_StorageBuffer_Result StorageBuffer
%uint_3 = OpConstant %uint 3
%_arr_uint_uint_3 = OpTypeArray %uint %uint_3
%S = OpTypeStruct %_arr_uint_uint_3
%_ptr_Private_S = OpTypePointer Private %S
%13 = OpConstantNull %S
%s = OpVariable %_ptr_Private_S Private %13
%void = OpTypeVoid
%14 = OpTypeFunction %void
%uint_0 = OpConstant %uint 0
%_ptr_Uniform_uint = OpTypePointer Uniform %uint
%_ptr_Private_uint = OpTypePointer Private %uint
%main = OpFunction %void None %14
%17 = OpLabel
%20 = OpAccessChain %_ptr_Uniform_uint %constants %uint_0
%21 = OpLoad %uint %20
%23 = OpAccessChain %_ptr_Private_uint %s %uint_0 %21
OpStore %23 %uint_0
OpReturn
OpFunctionEnd