2021-06-10 18:49:14 +00:00
|
|
|
; SPIR-V
|
|
|
|
; Version: 1.3
|
|
|
|
; Generator: Google Tint Compiler; 0
|
2021-10-14 10:10:45 +00:00
|
|
|
; Bound: 36
|
2021-06-10 18:49:14 +00:00
|
|
|
; Schema: 0
|
|
|
|
OpCapability Shader
|
|
|
|
OpMemoryModel Logical GLSL450
|
|
|
|
OpEntryPoint GLCompute %main "main"
|
|
|
|
OpExecutionMode %main LocalSize 1 1 1
|
|
|
|
OpName %Src "Src"
|
|
|
|
OpName %Dst "Dst"
|
2021-06-17 09:10:04 +00:00
|
|
|
OpName %main_1 "main_1"
|
2021-06-10 18:49:14 +00:00
|
|
|
OpName %srcValue "srcValue"
|
2021-06-17 09:10:04 +00:00
|
|
|
OpName %main "main"
|
2021-06-10 18:49:14 +00:00
|
|
|
OpDecorate %Src DescriptorSet 0
|
|
|
|
OpDecorate %Src Binding 0
|
|
|
|
OpDecorate %Dst NonReadable
|
|
|
|
OpDecorate %Dst DescriptorSet 0
|
|
|
|
OpDecorate %Dst Binding 1
|
|
|
|
%uint = OpTypeInt 32 0
|
2021-10-14 10:10:45 +00:00
|
|
|
%3 = OpTypeImage %uint 2D 0 0 0 1 Unknown
|
2021-06-10 18:49:14 +00:00
|
|
|
%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
|
|
|
|
%Src = OpVariable %_ptr_UniformConstant_3 UniformConstant
|
2021-10-14 10:10:45 +00:00
|
|
|
%7 = OpTypeImage %uint 2D 0 0 0 2 R32ui
|
|
|
|
%_ptr_UniformConstant_7 = OpTypePointer UniformConstant %7
|
|
|
|
%Dst = OpVariable %_ptr_UniformConstant_7 UniformConstant
|
2021-06-10 18:49:14 +00:00
|
|
|
%void = OpTypeVoid
|
2021-10-14 10:10:45 +00:00
|
|
|
%8 = OpTypeFunction %void
|
2021-06-10 18:49:14 +00:00
|
|
|
%v4uint = OpTypeVector %uint 4
|
|
|
|
%_ptr_Function_v4uint = OpTypePointer Function %v4uint
|
2021-10-14 10:10:45 +00:00
|
|
|
%15 = OpConstantNull %v4uint
|
2021-06-10 18:49:14 +00:00
|
|
|
%int = OpTypeInt 32 1
|
|
|
|
%v2int = OpTypeVector %int 2
|
|
|
|
%int_0 = OpConstant %int 0
|
2021-10-14 10:10:45 +00:00
|
|
|
%21 = OpConstantComposite %v2int %int_0 %int_0
|
2021-06-10 18:49:14 +00:00
|
|
|
%uint_0 = OpConstant %uint 0
|
|
|
|
%_ptr_Function_uint = OpTypePointer Function %uint
|
|
|
|
%int_1 = OpConstant %int 1
|
2021-10-14 10:10:45 +00:00
|
|
|
%main_1 = OpFunction %void None %8
|
|
|
|
%11 = OpLabel
|
|
|
|
%srcValue = OpVariable %_ptr_Function_v4uint Function %15
|
|
|
|
%17 = OpLoad %3 %Src
|
|
|
|
%16 = OpImageFetch %v4uint %17 %21 Lod %int_0
|
|
|
|
OpStore %srcValue %16
|
|
|
|
%24 = OpAccessChain %_ptr_Function_uint %srcValue %uint_0
|
|
|
|
%25 = OpLoad %uint %24
|
|
|
|
%26 = OpAccessChain %_ptr_Function_uint %srcValue %uint_0
|
|
|
|
%27 = OpBitcast %uint %int_1
|
|
|
|
%29 = OpIAdd %uint %25 %27
|
|
|
|
OpStore %26 %29
|
|
|
|
%30 = OpLoad %v4uint %srcValue
|
|
|
|
%32 = OpLoad %7 %Dst
|
|
|
|
OpImageWrite %32 %21 %30
|
2021-06-10 18:49:14 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
2021-10-14 10:10:45 +00:00
|
|
|
%main = OpFunction %void None %8
|
|
|
|
%34 = OpLabel
|
|
|
|
%35 = OpFunctionCall %void %main_1
|
2021-06-17 09:10:04 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|