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.00000000.inc:
// Pre-generated shader for the ANGLE Vulkan back-end.
#pragma once
constexpr uint8_t kConvertIndexIndirectLineLoop_comp_00000000[] = {
0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x6d,0x56,0x5b,0x68,0x5c,0x55,
0x14,0x3d,0x7b,0x66,0x3a,0xa9,0x46,0xb4,0x69,0x33,0xb6,0xa3,0x36,0x0f,0x5b,0x84,
0x10,0x89,0xa6,0xb4,0x1a,0x6c,0x93,0x1a,0xfa,0x61,0xc0,0xd0,0xe2,0x23,0x98,0x31,
0x1a,0x95,0x46,0xb1,0xe4,0x51,0x3b,0x4d,0x83,0x50,0x8b,0x4d,0x6c,0x84,0xf4,0x23,
0x3f,0x49,0x15,0x6a,0x62,0x13,0xfc,0x90,0x24,0xea,0x47,0xfe,0x44,0x6c,0x40,0xd4,
0xc4,0x2a,0x85,0x42,0xb5,0xd0,0x42,0xa1,0x5a,0x48,0xa1,0x5a,0x1b,0xc1,0xb7,0xa2,
0x67,0xdf,0xbd,0x4e,0x58,0xbd,0xcc,0xc0,0xe1,0xde,0xb3,0xf6,0xde,0x6b,0x9f,0xb3,
0xd6,0xb9,0x77,0x6e,0x32,0xb1,0xa1,0xc8,0x39,0x71,0xc5,0x6e,0xa5,0x3b,0x21,0x2e,
0xfa,0x95,0xb8,0x84,0xd3,0xdb,0x62,0x97,0x8e,0xae,0x8f,0x34,0x3f,0xd1,0x5c,0xb3,
0xbf,0xb7,0xa3,0x66,0xf3,0x96,0xfb,0x35,0x7e,0xab,0x4b,0x46,0x79,0x1a,0xbb,0xcd,
0xe7,0xac,0xf0,0xd7,0x94,0x1f,0xdd,0x2f,0xec,0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xeb,
0x23,0x7f,0x0f,0xe2,0xbf,0x29,0x4f,0xfe,0x1e,0x12,0xcb,0x3d,0x08,0x7f,0x75,0x7d,
0x87,0xc8,0xdf,0x2f,0xc9,0x5f,0xd5,0x3c,0x68,0x37,0x47,0x7e,0x0d,0x62,0x1f,0xfd,
0xc8,0x67,0x5d,0xbf,0xc6,0x7f,0xdd,0x10,0xe9,0xfa,0x0d,0xf0,0xa0,0xd7,0x69,0x7c,
0x7b,0x66,0x11,0xd3,0x75,0x9c,0x06,0x6f,0x58,0xc7,0x19,0xc4,0xf2,0xa4,0xfd,0x59,
0x7c,0xdf,0xe5,0x89,0xeb,0x5b,0xfa,0xbe,0x3b,0x4b,0x3d,0xbf,0x43,0x2c,0xe4,0x9d,
0xa3,0x9e,0x67,0xd0,0xf3,0x1c,0xf2,0x02,0xff,0x79,0xf4,0xe4,0xef,0xc7,0x0b,0x54,
0x77,0x1e,0x75,0x17,0xf0,0x9d,0x18,0xea,0x2e,0xa2,0xae,0x8a,0xb0,0x4b,0x58,0x6b,
0x15,0x71,0x7d,0x4f,0x6b,0xbd,0x44,0x6b,0xfd,0x01,0xb1,0x90,0x77,0x99,0x7a,0x5e,
0x44,0xcf,0xcb,0xc8,0x0b,0xfc,0x57,0xd0,0x73,0x91,0xb0,0xab,0xe8,0xb9,0x48,0x5c,
0x3f,0x52,0xcf,0xab,0xd4,0xf3,0x27,0xc4,0x42,0xde,0x35,0xea,0x79,0x05,0x3d,0xaf,
0x21,0x8f,0xbf,0x63,0x97,0xa2,0xef,0x37,0x71,0x75,0x7e,0xfc,0x0f,0xa5,0xc3,0xaa,
0x35,0x18,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 - 2);
//
// uint srcBlock = srcData[index >> 2];
//
// uint srcShift = ( (index & 0x3) << 3);
//
// uint value = (srcBlock >> srcShift) & 0xff;
// return value;
//
// }
//
// void PutIndexValue(uint index, uint value)
// {
//
// uint dstIndex = dstOffsetDiv4 + (index >> 2);
//
// uint srcBlock = dstData[dstIndex];
//
// uint srcShift = ( (index & 0x3) << 3);
//
// srcBlock &= ~ (0xff << 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 = 0xff;
// 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];
// }