Source code
Revision control
Copy as Markdown
Other Tools
// 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.00000003.inc:
// Pre-generated shader for the ANGLE Vulkan back-end.
#pragma once
constexpr uint8_t kConvertIndex_comp_00000003[] = {
0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x6d,0x94,0x5f,0x6b,0x94,0x57,
0x10,0xc6,0xcf,0xfb,0xee,0x1a,0x2d,0x82,0x4d,0x69,0xd4,0xa4,0xb4,0xd9,0x64,0x0d,
0xbd,0x59,0x91,0x80,0x7f,0x28,0x29,0x2d,0xf5,0x26,0x7f,0xda,0x78,0x11,0xf5,0x42,
0xd4,0xb4,0x56,0x05,0xdd,0x0b,0x4d,0x40,0x6f,0x53,0x34,0x5f,0x20,0xd6,0x16,0x8a,
0x50,0x93,0xd4,0xf6,0x26,0x45,0xaa,0x15,0xa4,0x82,0x60,0x6b,0x31,0x6a,0xfa,0x01,
0xb4,0x54,0x29,0x58,0xf1,0x23,0x14,0xa3,0x51,0xe2,0xcc,0x7b,0x7e,0x27,0x3c,0x2e,
0x59,0x38,0x9c,0x77,0x9e,0x99,0xe7,0x99,0x39,0x73,0x66,0x4f,0x29,0xdf,0xb0,0x32,
0x84,0x2c,0xac,0x0e,0xab,0x42,0x35,0x0b,0xc5,0xef,0xad,0x90,0x07,0xff,0x5c,0x1d,
0x9a,0x8a,0xbd,0x6f,0x70,0xd7,0xe0,0xa6,0x13,0x27,0x0f,0x6f,0xda,0xb2,0xb5,0xdb,
0xfd,0x6b,0x42,0xa9,0x88,0x73,0xdf,0x9b,0x16,0xb3,0xc2,0xf6,0xb2,0xad,0x63,0x5f,
0xd6,0x8f,0x3b,0xbe,0xdf,0x56,0xb3,0xe1,0xe5,0x42,0x2b,0x84,0x4f,0x88,0x2d,0x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0x8b,0xfd,0x76,0x9f,0xdf,0x47,0xea,0xd3,0xb8,0xdc,0xc7,0x3b,0xc4,0x8c,0x12,0xaf,
0x3d,0xfc,0x86,0x1e,0x76,0xc9,0x99,0xbf,0x05,0x4f,0x3d,0xfc,0x0e,0xec,0x80,0xf4,
0xeb,0x1c,0xef,0x65,0x15,0xff,0xc7,0x76,0x6f,0xe7,0xc8,0x95,0xce,0xf6,0x3d,0x9c,
0x61,0xee,0x75,0x52,0xee,0xd5,0x7d,0xe7,0x6d,0x4d,0x52,0xef,0x79,0xa9,0xe9,0x47,
0x6a,0xaa,0x49,0x4d,0x3f,0x81,0xa7,0xfc,0x33,0xbc,0xbb,0x55,0x7c,0x9e,0x7f,0x86,
0x77,0x26,0xd5,0x7d,0x11,0xdf,0x98,0x60,0x97,0x78,0xcb,0xc6,0x44,0xeb,0xb2,0xbc,
0x65,0x97,0x24,0xe7,0xaf,0xf8,0x52,0xdc,0x15,0xc9,0x79,0x91,0x9c,0x57,0x88,0x4b,
0xfa,0x57,0xc9,0x39,0x24,0x33,0xf3,0x1b,0x6f,0x88,0xe6,0xbc,0x26,0x5a,0x57,0xd1,
0xba,0x46,0x6c,0xd2,0xba,0x8e,0x56,0x4d,0xb0,0x1b,0xd4,0x5f,0x13,0xad,0xdf,0xa5,
0xfe,0x1b,0x52,0xff,0x1f,0xf8,0x52,0xdc,0x4d,0xc9,0x79,0x9d,0x9c,0x37,0x89,0x4b,
0xfa,0xb3,0xe4,0xbc,0x25,0xbc,0xdb,0xc2,0x9b,0x85,0x77,0x9b,0x7b,0xf5,0x99,0x4b,
0x77,0x38,0xd9,0xf0,0x96,0xce,0x15,0xff,0x9f,0x2c,0x7c,0x60,0xeb,0x15,0x61,0x7a,
0x47,0xca,0xd4,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;
//
// if (value == 0xFF)
// value = 0xFFFF;
//
// 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;
// }
//
// }