blob: 47cc238fb6ec5bffb028e74029cd50670b02ba86 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 124
; Schema: 0
OpCapability Shader
OpCapability StorageImageExtendedFormats
OpCapability ImageQuery
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %main "main"
OpExecutionMode %main LocalSize 1 1 1
OpName %t_rgba8unorm "t_rgba8unorm"
OpName %t_rgba8snorm "t_rgba8snorm"
OpName %t_rgba8uint "t_rgba8uint"
OpName %t_rgba8sint "t_rgba8sint"
OpName %t_rgba16uint "t_rgba16uint"
OpName %t_rgba16sint "t_rgba16sint"
OpName %t_rgba16float "t_rgba16float"
OpName %t_r32uint "t_r32uint"
OpName %t_r32sint "t_r32sint"
OpName %t_r32float "t_r32float"
OpName %t_rg32uint "t_rg32uint"
OpName %t_rg32sint "t_rg32sint"
OpName %t_rg32float "t_rg32float"
OpName %t_rgba32uint "t_rgba32uint"
OpName %t_rgba32sint "t_rgba32sint"
OpName %t_rgba32float "t_rgba32float"
OpName %main "main"
OpName %dim1 "dim1"
OpName %dim2 "dim2"
OpName %dim3 "dim3"
OpName %dim4 "dim4"
OpName %dim5 "dim5"
OpName %dim6 "dim6"
OpName %dim7 "dim7"
OpName %dim8 "dim8"
OpName %dim9 "dim9"
OpName %dim10 "dim10"
OpName %dim11 "dim11"
OpName %dim12 "dim12"
OpName %dim13 "dim13"
OpName %dim14 "dim14"
OpName %dim15 "dim15"
OpName %dim16 "dim16"
OpDecorate %t_rgba8unorm NonReadable
OpDecorate %t_rgba8unorm DescriptorSet 0
OpDecorate %t_rgba8unorm Binding 0
OpDecorate %t_rgba8snorm NonReadable
OpDecorate %t_rgba8snorm DescriptorSet 0
OpDecorate %t_rgba8snorm Binding 1
OpDecorate %t_rgba8uint NonReadable
OpDecorate %t_rgba8uint DescriptorSet 0
OpDecorate %t_rgba8uint Binding 2
OpDecorate %t_rgba8sint NonReadable
OpDecorate %t_rgba8sint DescriptorSet 0
OpDecorate %t_rgba8sint Binding 3
OpDecorate %t_rgba16uint NonReadable
OpDecorate %t_rgba16uint DescriptorSet 0
OpDecorate %t_rgba16uint Binding 4
OpDecorate %t_rgba16sint NonReadable
OpDecorate %t_rgba16sint DescriptorSet 0
OpDecorate %t_rgba16sint Binding 5
OpDecorate %t_rgba16float NonReadable
OpDecorate %t_rgba16float DescriptorSet 0
OpDecorate %t_rgba16float Binding 6
OpDecorate %t_r32uint NonReadable
OpDecorate %t_r32uint DescriptorSet 0
OpDecorate %t_r32uint Binding 7
OpDecorate %t_r32sint NonReadable
OpDecorate %t_r32sint DescriptorSet 0
OpDecorate %t_r32sint Binding 8
OpDecorate %t_r32float NonReadable
OpDecorate %t_r32float DescriptorSet 0
OpDecorate %t_r32float Binding 9
OpDecorate %t_rg32uint NonReadable
OpDecorate %t_rg32uint DescriptorSet 0
OpDecorate %t_rg32uint Binding 10
OpDecorate %t_rg32sint NonReadable
OpDecorate %t_rg32sint DescriptorSet 0
OpDecorate %t_rg32sint Binding 11
OpDecorate %t_rg32float NonReadable
OpDecorate %t_rg32float DescriptorSet 0
OpDecorate %t_rg32float Binding 12
OpDecorate %t_rgba32uint NonReadable
OpDecorate %t_rgba32uint DescriptorSet 0
OpDecorate %t_rgba32uint Binding 13
OpDecorate %t_rgba32sint NonReadable
OpDecorate %t_rgba32sint DescriptorSet 0
OpDecorate %t_rgba32sint Binding 14
OpDecorate %t_rgba32float NonReadable
OpDecorate %t_rgba32float DescriptorSet 0
OpDecorate %t_rgba32float Binding 15
%float = OpTypeFloat 32
%3 = OpTypeImage %float 2D 0 1 0 2 Rgba8
%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
%t_rgba8unorm = OpVariable %_ptr_UniformConstant_3 UniformConstant
%7 = OpTypeImage %float 2D 0 1 0 2 Rgba8Snorm
%_ptr_UniformConstant_7 = OpTypePointer UniformConstant %7
%t_rgba8snorm = OpVariable %_ptr_UniformConstant_7 UniformConstant
%uint = OpTypeInt 32 0
%10 = OpTypeImage %uint 2D 0 1 0 2 Rgba8ui
%_ptr_UniformConstant_10 = OpTypePointer UniformConstant %10
%t_rgba8uint = OpVariable %_ptr_UniformConstant_10 UniformConstant
%int = OpTypeInt 32 1
%14 = OpTypeImage %int 2D 0 1 0 2 Rgba8i
%_ptr_UniformConstant_14 = OpTypePointer UniformConstant %14
%t_rgba8sint = OpVariable %_ptr_UniformConstant_14 UniformConstant
%18 = OpTypeImage %uint 2D 0 1 0 2 Rgba16ui
%_ptr_UniformConstant_18 = OpTypePointer UniformConstant %18
%t_rgba16uint = OpVariable %_ptr_UniformConstant_18 UniformConstant
%21 = OpTypeImage %int 2D 0 1 0 2 Rgba16i
%_ptr_UniformConstant_21 = OpTypePointer UniformConstant %21
%t_rgba16sint = OpVariable %_ptr_UniformConstant_21 UniformConstant
%24 = OpTypeImage %float 2D 0 1 0 2 Rgba16f
%_ptr_UniformConstant_24 = OpTypePointer UniformConstant %24
%t_rgba16float = OpVariable %_ptr_UniformConstant_24 UniformConstant
%27 = OpTypeImage %uint 2D 0 1 0 2 R32ui
%_ptr_UniformConstant_27 = OpTypePointer UniformConstant %27
%t_r32uint = OpVariable %_ptr_UniformConstant_27 UniformConstant
%30 = OpTypeImage %int 2D 0 1 0 2 R32i
%_ptr_UniformConstant_30 = OpTypePointer UniformConstant %30
%t_r32sint = OpVariable %_ptr_UniformConstant_30 UniformConstant
%33 = OpTypeImage %float 2D 0 1 0 2 R32f
%_ptr_UniformConstant_33 = OpTypePointer UniformConstant %33
%t_r32float = OpVariable %_ptr_UniformConstant_33 UniformConstant
%36 = OpTypeImage %uint 2D 0 1 0 2 Rg32ui
%_ptr_UniformConstant_36 = OpTypePointer UniformConstant %36
%t_rg32uint = OpVariable %_ptr_UniformConstant_36 UniformConstant
%39 = OpTypeImage %int 2D 0 1 0 2 Rg32i
%_ptr_UniformConstant_39 = OpTypePointer UniformConstant %39
%t_rg32sint = OpVariable %_ptr_UniformConstant_39 UniformConstant
%42 = OpTypeImage %float 2D 0 1 0 2 Rg32f
%_ptr_UniformConstant_42 = OpTypePointer UniformConstant %42
%t_rg32float = OpVariable %_ptr_UniformConstant_42 UniformConstant
%45 = OpTypeImage %uint 2D 0 1 0 2 Rgba32ui
%_ptr_UniformConstant_45 = OpTypePointer UniformConstant %45
%t_rgba32uint = OpVariable %_ptr_UniformConstant_45 UniformConstant
%48 = OpTypeImage %int 2D 0 1 0 2 Rgba32i
%_ptr_UniformConstant_48 = OpTypePointer UniformConstant %48
%t_rgba32sint = OpVariable %_ptr_UniformConstant_48 UniformConstant
%51 = OpTypeImage %float 2D 0 1 0 2 Rgba32f
%_ptr_UniformConstant_51 = OpTypePointer UniformConstant %51
%t_rgba32float = OpVariable %_ptr_UniformConstant_51 UniformConstant
%void = OpTypeVoid
%52 = OpTypeFunction %void
%v2uint = OpTypeVector %uint 2
%v3uint = OpTypeVector %uint 3
%_ptr_Function_v2uint = OpTypePointer Function %v2uint
%63 = OpConstantNull %v2uint
%main = OpFunction %void None %52
%55 = OpLabel
%dim1 = OpVariable %_ptr_Function_v2uint Function %63
%dim2 = OpVariable %_ptr_Function_v2uint Function %63
%dim3 = OpVariable %_ptr_Function_v2uint Function %63
%dim4 = OpVariable %_ptr_Function_v2uint Function %63
%dim5 = OpVariable %_ptr_Function_v2uint Function %63
%dim6 = OpVariable %_ptr_Function_v2uint Function %63
%dim7 = OpVariable %_ptr_Function_v2uint Function %63
%dim8 = OpVariable %_ptr_Function_v2uint Function %63
%dim9 = OpVariable %_ptr_Function_v2uint Function %63
%dim10 = OpVariable %_ptr_Function_v2uint Function %63
%dim11 = OpVariable %_ptr_Function_v2uint Function %63
%dim12 = OpVariable %_ptr_Function_v2uint Function %63
%dim13 = OpVariable %_ptr_Function_v2uint Function %63
%dim14 = OpVariable %_ptr_Function_v2uint Function %63
%dim15 = OpVariable %_ptr_Function_v2uint Function %63
%dim16 = OpVariable %_ptr_Function_v2uint Function %63
%60 = OpLoad %3 %t_rgba8unorm
%58 = OpImageQuerySize %v3uint %60
%56 = OpVectorShuffle %v2uint %58 %58 0 1
OpStore %dim1 %56
%66 = OpLoad %7 %t_rgba8snorm
%65 = OpImageQuerySize %v3uint %66
%64 = OpVectorShuffle %v2uint %65 %65 0 1
OpStore %dim2 %64
%70 = OpLoad %10 %t_rgba8uint
%69 = OpImageQuerySize %v3uint %70
%68 = OpVectorShuffle %v2uint %69 %69 0 1
OpStore %dim3 %68
%74 = OpLoad %14 %t_rgba8sint
%73 = OpImageQuerySize %v3uint %74
%72 = OpVectorShuffle %v2uint %73 %73 0 1
OpStore %dim4 %72
%78 = OpLoad %18 %t_rgba16uint
%77 = OpImageQuerySize %v3uint %78
%76 = OpVectorShuffle %v2uint %77 %77 0 1
OpStore %dim5 %76
%82 = OpLoad %21 %t_rgba16sint
%81 = OpImageQuerySize %v3uint %82
%80 = OpVectorShuffle %v2uint %81 %81 0 1
OpStore %dim6 %80
%86 = OpLoad %24 %t_rgba16float
%85 = OpImageQuerySize %v3uint %86
%84 = OpVectorShuffle %v2uint %85 %85 0 1
OpStore %dim7 %84
%90 = OpLoad %27 %t_r32uint
%89 = OpImageQuerySize %v3uint %90
%88 = OpVectorShuffle %v2uint %89 %89 0 1
OpStore %dim8 %88
%94 = OpLoad %30 %t_r32sint
%93 = OpImageQuerySize %v3uint %94
%92 = OpVectorShuffle %v2uint %93 %93 0 1
OpStore %dim9 %92
%98 = OpLoad %33 %t_r32float
%97 = OpImageQuerySize %v3uint %98
%96 = OpVectorShuffle %v2uint %97 %97 0 1
OpStore %dim10 %96
%102 = OpLoad %36 %t_rg32uint
%101 = OpImageQuerySize %v3uint %102
%100 = OpVectorShuffle %v2uint %101 %101 0 1
OpStore %dim11 %100
%106 = OpLoad %39 %t_rg32sint
%105 = OpImageQuerySize %v3uint %106
%104 = OpVectorShuffle %v2uint %105 %105 0 1
OpStore %dim12 %104
%110 = OpLoad %42 %t_rg32float
%109 = OpImageQuerySize %v3uint %110
%108 = OpVectorShuffle %v2uint %109 %109 0 1
OpStore %dim13 %108
%114 = OpLoad %45 %t_rgba32uint
%113 = OpImageQuerySize %v3uint %114
%112 = OpVectorShuffle %v2uint %113 %113 0 1
OpStore %dim14 %112
%118 = OpLoad %48 %t_rgba32sint
%117 = OpImageQuerySize %v3uint %118
%116 = OpVectorShuffle %v2uint %117 %117 0 1
OpStore %dim15 %116
%122 = OpLoad %51 %t_rgba32float
%121 = OpImageQuerySize %v3uint %122
%120 = OpVectorShuffle %v2uint %121 %121 0 1
OpStore %dim16 %120
OpReturn
OpFunctionEnd