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/ConvertIndexIndirectLineLoop.comp.00000001.inc:
// Pre-generated shader for the ANGLE Vulkan back-end.
#pragma once
constexpr uint8_t kConvertIndexIndirectLineLoop_comp_00000001[] = {
0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x6d,0x56,0x6d,0x68,0x95,0x65,
0x18,0x7e,0xee,0x73,0x8e,0x67,0xd6,0xa2,0x9c,0x6e,0xe9,0xa9,0xdc,0x97,0xd5,0x8f,
0xd3,0x58,0x39,0xb4,0x46,0x9a,0xdb,0xf4,0x47,0x52,0x43,0xe9,0x63,0x94,0x5b,0x5b,
0x0a,0x69,0x8a,0x6e,0xd3,0x39,0xb7,0xc0,0x04,0xdd,0xca,0x1f,0xfe,0xf0,0xcf,0x34,
0xb0,0x0d,0x37,0xfc,0x93,0x1b,0x12,0xec,0x5f,0x44,0xee,0x47,0xe4,0xa6,0x85,0x20,
0x58,0x82,0xc2,0x04,0x4b,0x98,0x60,0x99,0x0b,0xfa,0x2e,0xed,0xb9,0xdf,0xfb,0x7a,
0xb6,0xcb,0xb7,0x73,0xe0,0xe1,0x3d,0xcf,0x75,0xdf,0xf7,0x75,0x7f,0x5c,0xcf,0xfb,
0x91,0x4c,0x2c,0xc9,0x73,0x4e,0x5c,0xbe,0x9b,0xeb,0x06,0xc5,0x45,0xbf,0x02,0x97,
0x70,0xfa,0x37,0xdf,0xa5,0xa3,0xeb,0x8b,0xf5,0xaf,0xd5,0x57,0xee,0xee,0x7c,0xa7,
0x72,0xd9,0xf2,0x67,0xd4,0xfe,0xa0,0x4b,0x46,0x7e,0x6a,0x7b,0xc8,0xfb,0xcc,0xf1,
0xd7,0x94,0x5f,0xad,0x9b,0xb6,0xb5,0x29,0x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,0x22,0x7d,0xf7,0xe2,0xdd,0xd4,0x41,0xfa,0xee,0x13,0xf3,0xdd,0x0b,0x7d,0xb5,
0xbe,0x7d,0xa4,0xef,0x19,0xd2,0x57,0x67,0x1e,0x66,0x37,0x46,0x7a,0x7d,0x88,0x3e,
0x7a,0xe0,0xcf,0x73,0xfd,0x1a,0xef,0xba,0x0c,0xcd,0xf5,0x1b,0xe0,0x61,0x5e,0xe7,
0xf1,0x7d,0x5a,0x0e,0x9b,0xd6,0x71,0x1e,0xbc,0xa1,0x8e,0x0b,0xb0,0x65,0x69,0xf6,
0x17,0xf1,0xcd,0x97,0x25,0xae,0x6f,0xe9,0x9b,0xef,0x22,0xe5,0xfc,0x0e,0xb6,0xe0,
0x77,0x89,0x72,0x5e,0x40,0xce,0x4b,0xf0,0x0b,0xfc,0x97,0x91,0x93,0xbf,0x29,0xaf,
0x50,0xdc,0x65,0xc4,0x5d,0xc1,0xb7,0x63,0x88,0xbb,0x8a,0xb8,0x49,0xc2,0xae,0xa1,
0xd6,0x49,0xe2,0xfa,0x9e,0x6a,0xbd,0x46,0xb5,0xfe,0x00,0x5b,0xf0,0xbb,0x4e,0x39,
0xaf,0x22,0xe7,0x75,0xf8,0x05,0xfe,0x1b,0xc8,0x39,0x45,0xd8,0x4d,0xe4,0x9c,0x22,
0xae,0x1f,0x29,0xe7,0x4d,0xca,0xf9,0x13,0x6c,0xc1,0xef,0x16,0xe5,0xbc,0x81,0x9c,
0xb7,0xe0,0xc7,0xdf,0xb6,0xd3,0xd1,0xf7,0x9b,0xf8,0xfb,0x46,0xdc,0x7f,0x6b,0x6e,
0x88,0xd5,0x2c,0x11,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 dstData[];
// };
//
// layout(set = 0, binding = 1) readonly buffer src
// {
//
// uint srcData[];
// };
//
// layout(set = 0, binding = 2) readonly buffer cmd
// {
//
// uint cmdData[];
// };
//
// layout(set = 0, binding = 3) buffer dstCmd
// {
//
// uint dstCmdData[];
// };
//
// layout(push_constant) uniform PushConstants
// {
//
// uint cmdOffsetDiv4;
//
// uint dstCmdOffsetDiv4;
//
// uint srcOffset;
//
// uint dstOffsetDiv4;
//
// uint isRestartEnabled;
// };
//
// uint GetIndexValue(uint index)
// {
//
// index += srcOffset >> (2 - 1);
//
// uint srcBlock = srcData[index >> 1];
//
// uint srcShift = ( (index & 0x1) << 4);
//
// uint value = (srcBlock >> srcShift) & 0xffff;
// return value;
//
// }
//
// void PutIndexValue(uint index, uint value)
// {
//
// uint dstIndex = dstOffsetDiv4 + (index >> 1);
//
// uint srcBlock = dstData[dstIndex];
//
// uint srcShift = ( (index & 0x1) << 4);
//
// srcBlock &= ~ (0xffff << srcShift);
//
// srcBlock |= value << srcShift;
//
// dstData[dstIndex] = srcBlock;
//
// }
//
// void main()
// {
//
// uint indexCount = cmdData[cmdOffsetDiv4];
// uint firstIndex = cmdData[cmdOffsetDiv4 + 2];
// uint endIndex = firstIndex + indexCount;
//
// if (gl_GlobalInvocationID.x >= 1)
// return;
//
// uint workingCount = 0;
// uint srcIdx = firstIndex;
// uint indicesRemaining = indexCount;
// uint lineSize = 0;
// uint firstIndexValue = 0;
// while (indicesRemaining > 0)
// {
// uint indexValue;
// uint restartValue = 0xffff;
// indexValue = GetIndexValue(srcIdx ++);
// if (lineSize == 0)
// {
// firstIndexValue = indexValue;
// }
// indicesRemaining --;
// if ( (isRestartEnabled == 1) && (indexValue == restartValue))
// {
//
// if (lineSize > 1)
// {
// PutIndexValue(workingCount ++, firstIndexValue);
// }
// if (lineSize > 0)
// {
// PutIndexValue(workingCount ++, restartValue);
// }
// lineSize = 0;
// } else {
// PutIndexValue(workingCount, indexValue);
// workingCount ++;
// lineSize ++;
// }
// }
// if (lineSize > 1)
// {
// PutIndexValue(workingCount, firstIndexValue);
// workingCount ++;
// }
//
// dstCmdData[dstCmdOffsetDiv4] = workingCount;
// dstCmdData[dstCmdOffsetDiv4 + 1] = cmdData[cmdOffsetDiv4 + 1];
// dstCmdData[dstCmdOffsetDiv4 + 2] = 0;
// dstCmdData[dstCmdOffsetDiv4 + 3] = cmdData[cmdOffsetDiv4 + 3];
// dstCmdData[dstCmdOffsetDiv4 + 4] = cmdData[cmdOffsetDiv4 + 4];
// }