; SPIR-V ; Version: 1.3 ; Generator: Google spiregg; 0 ; Bound: 91 ; Schema: 0 OpCapability Shader OpCapability StorageImageReadWithoutFormat OpExtension "SPV_GOOGLE_hlsl_functionality1" OpExtension "SPV_GOOGLE_user_type" %1 = OpExtInstImport "GLSL.std.450" OpMemoryModel Logical GLSL450 OpEntryPoint GLCompute %csMain "main" %gl_GlobalInvocationID OpExecutionMode %csMain LocalSize 8 8 1 OpSource HLSL 500 OpName %Data "Data" OpMemberName %Data 0 "sourceData" OpName %g_data "g_data" OpName %type_2d_image "type.2d.image" OpName %g_inputTexture "g_inputTexture" OpName %type_2d_image_0 "type.2d.image" OpName %g_output "g_output" OpName %csMain "csMain" OpDecorate %gl_GlobalInvocationID BuiltIn GlobalInvocationId OpDecorateString %gl_GlobalInvocationID UserSemantic "SV_DispatchThreadID" OpDecorate %g_inputTexture DescriptorSet 0 OpDecorate %g_inputTexture Binding 0 OpDecorate %g_output DescriptorSet 0 OpDecorate %g_output Binding 0 OpDecorateString %g_inputTexture UserTypeGOOGLE "texture2d:" OpDecorateString %g_output UserTypeGOOGLE "rwtexture2d:" %int = OpTypeInt 32 1 %int_0 = OpConstant %int 0 %uint = OpTypeInt 32 0 %uint_0 = OpConstant %uint 0 %uint_4 = OpConstant %uint 4 %uint_1 = OpConstant %uint 1 %int_16 = OpConstant %int 16 %float = OpTypeFloat 32 %float_n1 = OpConstant %float -1 %v3float = OpTypeVector %float 3 %20 = OpConstantComposite %v3float %float_n1 %float_n1 %float_n1 %float_0 = OpConstant %float 0 %float_1 = OpConstant %float 1 %int_1 = OpConstant %int 1 %uint_64 = OpConstant %uint 64 %uint_16 = OpConstant %uint 16 %_arr_v3float_uint_16 = OpTypeArray %v3float %uint_16 %Data = OpTypeStruct %_arr_v3float_uint_16 %_arr_Data_uint_64 = OpTypeArray %Data %uint_64 %_ptr_Workgroup__arr_Data_uint_64 = OpTypePointer Workgroup %_arr_Data_uint_64 %type_2d_image = OpTypeImage %float 2D 2 0 0 1 Unknown %_ptr_UniformConstant_type_2d_image = OpTypePointer UniformConstant %type_2d_image %type_2d_image_0 = OpTypeImage %uint 2D 2 0 0 2 R32ui %_ptr_UniformConstant_type_2d_image_0 = OpTypePointer UniformConstant %type_2d_image_0 %v3uint = OpTypeVector %uint 3 %_ptr_Input_v3uint = OpTypePointer Input %v3uint %void = OpTypeVoid %34 = OpTypeFunction %void %v2uint = OpTypeVector %uint 2 %_ptr_Function__arr_v3float_uint_16 = OpTypePointer Function %_arr_v3float_uint_16 %_ptr_Workgroup__arr_v3float_uint_16 = OpTypePointer Workgroup %_arr_v3float_uint_16 %_ptr_Function_v3float = OpTypePointer Function %v3float %bool = OpTypeBool %v3int = OpTypeVector %int 3 %v2int = OpTypeVector %int 2 %v4float = OpTypeVector %float 4 %_ptr_Workgroup_v3float = OpTypePointer Workgroup %v3float %g_data = OpVariable %_ptr_Workgroup__arr_Data_uint_64 Workgroup %g_inputTexture = OpVariable %_ptr_UniformConstant_type_2d_image UniformConstant %g_output = OpVariable %_ptr_UniformConstant_type_2d_image_0 UniformConstant %gl_GlobalInvocationID = OpVariable %_ptr_Input_v3uint Input %csMain = OpFunction %void None %34 %44 = OpLabel %45 = OpVariable %_ptr_Function__arr_v3float_uint_16 Function %46 = OpLoad %v3uint %gl_GlobalInvocationID %47 = OpCompositeExtract %uint %46 0 OpBranch %48 %48 = OpLabel %49 = OpPhi %uint %uint_0 %44 %50 %51 %52 = OpULessThan %bool %49 %uint_4 OpLoopMerge %53 %51 None OpBranchConditional %52 %54 %53 %54 = OpLabel OpBranch %55 %55 = OpLabel %56 = OpPhi %uint %uint_0 %54 %57 %58 %59 = OpULessThan %bool %56 %uint_4 OpLoopMerge %60 %58 None OpBranchConditional %59 %58 %60 %58 = OpLabel %61 = OpBitcast %v3int %46 %62 = OpBitcast %int %56 %63 = OpBitcast %int %49 %64 = OpCompositeConstruct %v3int %62 %63 %int_0 %65 = OpIAdd %v3int %61 %64 %66 = OpVectorShuffle %v2int %65 %65 0 1 %67 = OpCompositeExtract %int %65 2 %68 = OpLoad %type_2d_image %g_inputTexture %69 = OpImageFetch %v4float %68 %66 Lod %67 %70 = OpVectorShuffle %v3float %69 %69 0 1 2 %71 = OpIMul %uint %49 %uint_4 %72 = OpIAdd %uint %71 %56 %73 = OpAccessChain %_ptr_Workgroup_v3float %g_data %47 %int_0 %72 OpStore %73 %70 %57 = OpIAdd %uint %56 %uint_1 OpBranch %55 %60 = OpLabel OpBranch %51 %51 = OpLabel %50 = OpIAdd %uint %49 %uint_1 OpBranch %48 %53 = OpLabel %74 = OpAccessChain %_ptr_Workgroup__arr_v3float_uint_16 %g_data %47 %int_0 %75 = OpLoad %_arr_v3float_uint_16 %74 OpStore %45 %75 OpBranch %76 %76 = OpLabel %77 = OpPhi %uint %uint_0 %53 %78 %79 %80 = OpPhi %int %int_0 %53 %81 %79 %82 = OpSLessThan %bool %80 %int_16 OpLoopMerge %83 %79 None OpBranchConditional %82 %79 %83 %79 = OpLabel %84 = OpAccessChain %_ptr_Function_v3float %45 %80 %85 = OpLoad %v3float %84 %86 = OpDot %float %85 %20 %87 = OpExtInst %float %1 FClamp %86 %float_0 %float_1 %88 = OpConvertFToU %uint %87 %78 = OpBitwiseOr %uint %77 %88 %81 = OpIAdd %int %80 %int_1 OpBranch %76 %83 = OpLabel %89 = OpVectorShuffle %v2uint %46 %46 0 1 %90 = OpLoad %type_2d_image_0 %g_output OpImageWrite %90 %89 %77 None OpReturn OpFunctionEnd