blob: bbe1ef9dc94ce7b36a0058b0c5033d63373d2e9a [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 27
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %main "main"
OpExecutionMode %main LocalSize 1 1 1
OpName %texture0 "texture0"
OpName %results_block "results_block"
OpMemberName %results_block 0 "inner"
OpName %Results "Results"
OpMemberName %Results 0 "colorSamples"
OpName %results "results"
OpName %main "main"
OpDecorate %texture0 DescriptorSet 0
OpDecorate %texture0 Binding 0
OpDecorate %results_block Block
OpMemberDecorate %results_block 0 Offset 0
OpMemberDecorate %Results 0 Offset 0
OpDecorate %_arr_float_uint_4 ArrayStride 4
OpDecorate %results DescriptorSet 0
OpDecorate %results Binding 2
%float = OpTypeFloat 32
%3 = OpTypeImage %float 2D 0 0 1 1 Unknown
%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
%texture0 = OpVariable %_ptr_UniformConstant_3 UniformConstant
%uint = OpTypeInt 32 0
%uint_4 = OpConstant %uint 4
%_arr_float_uint_4 = OpTypeArray %float %uint_4
%Results = OpTypeStruct %_arr_float_uint_4
%results_block = OpTypeStruct %Results
%_ptr_StorageBuffer_results_block = OpTypePointer StorageBuffer %results_block
%results = OpVariable %_ptr_StorageBuffer_results_block StorageBuffer
%void = OpTypeVoid
%12 = OpTypeFunction %void
%uint_0 = OpConstant %uint 0
%int = OpTypeInt 32 1
%18 = OpConstantNull %int
%_ptr_StorageBuffer_float = OpTypePointer StorageBuffer %float
%v4float = OpTypeVector %float 4
%v2int = OpTypeVector %int 2
%25 = OpConstantNull %v2int
%main = OpFunction %void None %12
%15 = OpLabel
%20 = OpAccessChain %_ptr_StorageBuffer_float %results %uint_0 %uint_0 %18
%23 = OpLoad %3 %texture0
%21 = OpImageFetch %v4float %23 %25 Sample %18
%26 = OpCompositeExtract %float %21 0
OpStore %20 %26
OpReturn
OpFunctionEnd