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.00000002.inc:
// Pre-generated shader for the ANGLE Vulkan back-end.
#pragma once
constexpr uint8_t kConvertIndexIndirectLineLoop_comp_00000002[] = {
0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x6d,0x95,0x6f,0x68,0xd5,0x65,
0x14,0xc7,0x9f,0xfb,0x67,0x77,0x86,0x66,0x96,0x4e,0x0b,0xbc,0xf3,0xa6,0x2f,0x66,
0x2e,0x24,0xd8,0x75,0xfd,0xa3,0xe9,0xde,0xb8,0xad,0x76,0xad,0xd1,0xbb,0xdc,0x40,
0xa3,0x09,0x09,0xa5,0x65,0xd8,0x46,0x1b,0x45,0xd0,0x46,0x6f,0xf6,0x2e,0x24,0xf7,
0xae,0x2d,0xad,0x91,0x61,0x09,0x0a,0x13,0x2c,0x63,0x82,0x65,0xae,0x77,0x25,0x92,
0x14,0x21,0x85,0x48,0x21,0x92,0xad,0xa9,0x65,0xe7,0xfc,0xf6,0x79,0xd6,0xd7,0x1f,
0xf7,0xc2,0xc3,0xf3,0x3b,0xdf,0x73,0xce,0xf7,0x9c,0xef,0x79,0x9e,0xdf,0xef,0xe6,
0xb2,0x6b,0x6a,0x43,0xc8,0x84,0x85,0x61,0x41,0x58,0x91,0x09,0xc9,0xef,0xee,0x90,
0x0d,0xfe,0xb8,0x30,0x14,0x92,0xbd,0xad,0xf3,0xd9,0xce,0xf5,0x7b,0x5e,0x7b,0x61,
0x7d,0x79,0xc3,0x43,0xee,0x5f,0x1c,0x72,0x49,0x9c,0xfb,0xee,0xb2,0x98,0x1a,0xdb,
0xf3,0xb6,0x5e,0xda,0xfe,0xe2,0xcb,0x8e,0xb7,0xdb,0x5a,0x62,0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,0xfc,0x3f,0x1d,0x96,0x9a,0x9f,0xe3,0x8b,
0x71,0x47,0xa4,0xe6,0x21,0x6a,0x1e,0x21,0x2e,0xf2,0x1f,0x9d,0xef,0xe7,0xff,0xbc,
0x63,0x92,0x77,0x94,0xbc,0x63,0xbc,0x83,0x31,0xef,0x38,0x79,0x93,0x82,0x9d,0xa0,
0xd7,0x49,0xe1,0xfa,0x42,0x7a,0x3d,0x21,0xbd,0x7e,0x89,0x2f,0xc6,0x9d,0x94,0x9a,
0xc7,0xa9,0x79,0x92,0xb8,0xc8,0x7f,0x8a,0x9a,0x53,0x82,0x9d,0xa6,0xe6,0x94,0x70,
0x7d,0x2d,0x35,0x4f,0x4b,0xcd,0x6f,0xf0,0xc5,0xb8,0x33,0x52,0xf3,0x14,0x35,0xcf,
0x10,0xa7,0xff,0xc3,0xd3,0xc9,0x7d,0xc9,0x58,0x9d,0x4c,0xf8,0x0f,0x96,0x29,0x37,
0xf2,0xc8,0x0d,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 - 0);
//
// return srcData[index];
//
// }
//
// void PutIndexValue(uint index, uint value)
// {
//
// dstData[dstOffsetDiv4 + index] = value;
//
// }
//
// 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 = 0xffffffff;
// 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];
// }