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.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,0xdd,0x6b,0x54,0x57,
0x14,0xc5,0xcf,0x9d,0x99,0x24,0x6a,0xc0,0x5a,0x8c,0x1a,0xa1,0x26,0x71,0x0c,0xbe,
0x8c,0x48,0x20,0x2a,0x42,0xb1,0x38,0xa6,0x36,0x42,0xd2,0x3c,0xd8,0x68,0xaa,0x54,
0x41,0x9d,0x17,0x13,0xda,0x17,0xfb,0x10,0xd1,0x40,0x9f,0x63,0x55,0x10,0x41,0x93,
0xd4,0xf6,0x45,0x10,0xe2,0x07,0xa1,0x82,0x90,0x56,0x50,0x63,0x42,0x9f,0x55,0xac,
0x08,0xd6,0x3f,0xa1,0x8a,0x5a,0x35,0x8a,0xb4,0x7b,0xdf,0xfb,0x3b,0x61,0x75,0x48,
0xe0,0x70,0xee,0x5e,0x7b,0xaf,0xb5,0x3f,0xce,0x99,0x93,0x7c,0x6e,0x4d,0x5d,0x08,
0x49,0xa8,0x0f,0x0b,0x42,0x7d,0x12,0xd2,0xbf,0x8f,0x43,0x2e,0xf8,0x67,0x7d,0xa8,
0x4d,0xf7,0xce,0xee,0xaf,0xba,0xd7,0x1f,0xf9,0xbe,0xb2,0x7e,0xc3,0xc6,0x36,0xf7,
0x2f,0x0e,0xf9,0x34,0xce,0x7d,0x1f,0x59,0x4c,0x8d,0xed,0x05,0x5b,0xdf,0x1e,0x38,
0xfc,0x9d,0xe3,0xbb,0x6d,0x2d,0x31,0xbc,0x90,0x6a,0x85,0xb0,0x95,0xd8,0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c,0xce,0xe2,0x2c,0xb9,0xc6,0x39,0xab,0x73,0x70,0xfa,0x38,0xab,0x11,0x39,0x2b,
0xf7,0x9d,0xb7,0x35,0x42,0xbd,0xe7,0xa5,0xa6,0x9f,0xa9,0xa9,0x24,0x35,0xfd,0x02,
0x1e,0xf3,0x5f,0xe4,0x7d,0x2c,0xe2,0xf3,0xfc,0x17,0x79,0x0f,0x62,0xdd,0x97,0xf0,
0x0d,0x0a,0x36,0xce,0x9b,0x33,0x28,0x5a,0x97,0xe5,0xcd,0x19,0x97,0x9c,0x57,0xf0,
0xc5,0xb8,0xab,0x92,0xf3,0x12,0x39,0xaf,0x12,0x17,0xf5,0x27,0xc8,0xd9,0x25,0x67,
0xf9,0x2b,0xbf,0x75,0xcd,0x79,0x5d,0xb4,0x26,0xd0,0xba,0x4e,0x6c,0xd4,0xba,0x81,
0x56,0x49,0xb0,0x49,0xea,0x2f,0x89,0xd6,0x6f,0x52,0xff,0xa4,0xd4,0xff,0x3b,0xbe,
0x18,0x77,0x53,0x72,0xde,0x20,0xe7,0x4d,0xe2,0xa2,0xfe,0x6d,0x72,0xde,0x12,0xde,
0x1d,0xe1,0xdd,0x86,0x77,0x87,0x73,0xf5,0x3b,0x17,0xcf,0x70,0xa4,0xea,0xcd,0xf3,
0xfd,0x83,0xfd,0xc7,0xdc,0x6c,0xeb,0x3f,0xa1,0x68,0x87,0x36,0x6c,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;
// }
//
// }