// GENERATED FILE - DO NOT EDIT. // Generated by gen_vk_internal_shaders.py. // // Copyright 2018 The ANGLE Project Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // shaders/gen/ConvertIndex.comp.00000002.inc: // Pre-generated shader for the ANGLE Vulkan back-end. #pragma once constexpr uint8_t kConvertIndex_comp_00000002[] = { 0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x6d,0x95,0x4b,0x48,0x95,0x51, 0x10,0xc7,0xcf,0x77,0xef,0xf5,0xda,0x8b,0x1e,0xf4,0x32,0x28,0xb5,0x9b,0xb4,0x31, 0x42,0xe8,0x41,0x14,0x85,0x37,0x2b,0x03,0xad,0x45,0x65,0x96,0x54,0x50,0xdd,0x8d, 0x4a,0x6d,0x6a,0x61,0x94,0xd0,0x5a,0xb3,0x20,0x84,0x52,0xb3,0x16,0x05,0x81,0x65, 0x48,0x41,0xd0,0x03,0x7a,0xa8,0xb4,0xae,0xa8,0x08,0xac,0x95,0xb4,0xac,0xb0,0xa7, 0x45,0xd4,0xcc,0xf7,0xfd,0x8e,0x4c,0x1f,0x57,0x38,0x9c,0x6f,0xfe,0x33,0xff,0xff, 0xcc,0x99,0x39,0xf7,0x98,0x4c,0x2c,0x29,0x74,0x2e,0x70,0x53,0xdc,0x24,0x57,0x18, 0xb8,0xf0,0x6f,0x96,0x4b,0x38,0xfd,0x9c,0xea,0xd2,0xe1,0x5e,0x5d,0xbb,0xb3,0x76, 0xf9,0xb1,0xe3,0xb9,0xe5,0x2b,0x57,0x55,0xa8,0x7f,0xba,0x4b,0x86,0x71,0xea,0x9b, 0x21,0x31,0x05,0xb2,0xa7,0x64,0x1d,0x39,0xd8,0x78,0x54,0xf1,0xdd,0xb2,0x66,0x0a, 0x9e,0x0a,0xb5,0x9c,0xab,0x24,0x56,0xd7,0x56,0x89,0x9e,0x13,0xa5,0x71,0x4b,0xd8, 0x3d,0x16,0x80,0xa5,0x0c,0x96,0x00,0x9b,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,0x59,0x74,0x92,0xab,0x8f,0x59,0x5d,0x80,0x53, 0xcf,0xac,0xba,0xcc,0xac,0xd4,0x77,0x51,0x56,0x17,0xf5,0x5e,0x34,0x35,0x5d,0xa6, 0xa6,0xb5,0xa6,0xa6,0x2b,0xe0,0xde,0xbe,0xca,0x9b,0xe3,0xeb,0xb9,0xc6,0xbb,0x9a, 0x21,0x56,0xeb,0xb9,0x46,0x9c,0x3f,0xc7,0x75,0x7c,0x2d,0x06,0xeb,0xe3,0xad,0x6a, 0x31,0x5a,0x37,0xcc,0x5b,0xd5,0x67,0x72,0xde,0xc4,0xe7,0xe3,0xfa,0x4d,0xce,0xeb, 0xe4,0xec,0x27,0xce,0xeb,0x0f,0x90,0xb3,0xc6,0xcc,0xf6,0x36,0x6f,0x84,0xcd,0x79, 0xc7,0x68,0x0d,0xa0,0x75,0x87,0x58,0xaf,0x75,0x17,0xad,0x72,0x83,0xdd,0xa3,0xfe, 0x72,0xa3,0x75,0xdf,0xd4,0x7f,0xcf,0xd4,0xff,0x00,0x9f,0x8f,0x7b,0x68,0x72,0xde, 0x25,0xe7,0x43,0xe2,0xbc,0xfe,0x63,0x72,0x3e,0x32,0xbc,0x27,0x86,0xf7,0x18,0xde, 0x13,0xe6,0xac,0x77,0xd0,0xcf,0xb4,0x2b,0xf6,0x56,0xea,0xfe,0x47,0xfe,0xd3,0xae, 0x91,0xf5,0x0f,0x58,0xb2,0x68,0xa4,0xb4,0x0b,0x00,0x00 }; // Generated from: // // #version 450 core // // layout(local_size_x = 64, local_size_y = 1, local_size_z = 1)in; // // layout(set = 0, binding = 0)buffer dst // { // // uint dstIndexBuf[]; // }; // // layout(set = 0, binding = 1)readonly buffer src // { // // uint srcIndexBuf[]; // }; // // layout(set = 0, binding = 2)readonly buffer srcIndirect // { // // uint srcIndirectBuf[]; // }; // // layout(set = 0, binding = 3)buffer dstIndirect // { // // uint dstIndirectBuf[]; // }; // // layout(push_constant)uniform PushConstants // { // // uint srcIndirectOffsetDiv4; // // uint srcIndexOffset; // // uint dstIndexBufOffsetDiv4; // // uint maxIndex; // // uint dstIndirectBufOffsetDiv4; // }; // // uint PullIndex(uint index) // { // uint srcIndex = index + srcIndexOffset; // uint srcBlock = srcIndexBuf[srcIndex >> 2]; // uint srcComponent =(srcIndex & 3); // // uint value =(srcBlock >>(srcComponent << 3))& 0xFF; // // return value; // } // // void PackIndexValue(uint srcValue, uint indexIndex, inout uint dstValue) // { // // dstValue |= srcValue <<(indexIndex << 4); // } // // void main() // { // // uint indexCount = srcIndirectBuf[srcIndirectOffsetDiv4]; // uint firstIndex = srcIndirectBuf[srcIndirectOffsetDiv4 + 2]; // uint endIndex = firstIndex + indexCount; // // uint index =((gl_GlobalInvocationID . x +(firstIndex >> 1))<< 1); // // if(index >= endIndex) // return; // // uint dstValue = 0; // // if(index >= firstIndex) // { // uint srcValue = PullIndex(index); // PackIndexValue(srcValue, 0, dstValue); // } // // if(index + 1 < endIndex) // { // uint srcValue = PullIndex(index + 1); // PackIndexValue(srcValue, 1, dstValue); // } // // dstIndexBuf[dstIndexBufOffsetDiv4 + gl_GlobalInvocationID . x]= dstValue; // // if(gl_GlobalInvocationID . x == 0) // { // dstIndirectBuf[dstIndirectBufOffsetDiv4]= srcIndirectBuf[srcIndirectOffsetDiv4]; // // dstIndirectBuf[dstIndirectBufOffsetDiv4 + 1]= srcIndirectBuf[srcIndirectOffsetDiv4 + 1]; // // dstIndirectBuf[dstIndirectBufOffsetDiv4 + 2]= firstIndex & 1; // // dstIndirectBuf[dstIndirectBufOffsetDiv4 + 3]= srcIndirectBuf[srcIndirectOffsetDiv4 + 3]; // dstIndirectBuf[dstIndirectBufOffsetDiv4 + 4]= 0; // } // // }