blob: 1a4b73ce93a18f94155e78cde4ca1402075402ff [file] [log] [blame]
// GENERATED FILE - DO NOT EDIT.
// Generated by gen_vk_internal_shaders.py.
//
// Copyright 2020 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,0x57,0x6d,0x68,0x96,0x65,
0x14,0x7e,0xce,0xde,0xed,0x9d,0x9a,0xa5,0xed,0xc3,0x35,0xac,0x58,0x5b,0x68,0x1f,
0x6e,0x6e,0x54,0x63,0x53,0x0a,0xc7,0xa4,0xd5,0x58,0x12,0x6c,0xae,0x0f,0x48,0x37,
0x92,0xcd,0xb9,0x5e,0xdb,0x2c,0xfa,0x70,0x1b,0x58,0x6c,0x85,0x04,0x6a,0x60,0x1b,
0x39,0xfc,0xd5,0x86,0x14,0xa3,0x3f,0x11,0xb9,0x7f,0x6d,0xcd,0x1a,0x08,0x96,0xa0,
0x20,0x58,0xc2,0x04,0xcb,0xb4,0xbf,0xa5,0xa6,0xb1,0xee,0xf3,0x9c,0xeb,0xc8,0xe5,
0xc3,0x2b,0xdc,0xde,0xcf,0x7d,0x9d,0x73,0xae,0x73,0xee,0x73,0xdd,0xcf,0xfd,0x3e,
0x4b,0xe5,0x54,0xe4,0x47,0x91,0x44,0xcb,0xa2,0x25,0xd1,0x21,0x89,0xe2,0x7f,0xf7,
0x46,0x39,0x91,0x3e,0xde,0x15,0xa5,0xe3,0xb9,0xa9,0xa5,0xb5,0xa5,0xea,0xad,0xb7,
0x77,0x54,0x3d,0xf9,0x54,0xb5,0xda,0xef,0x89,0x52,0xb1,0x9f,0xda,0x56,0x04,0x9f,
0xbc,0x30,0xe7,0x86,0x91,0xe9,0xec,0xd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e,
0xec,0x63,0x10,0xfe,0xdc,0xd7,0x13,0xf8,0xad,0x1b,0xa6,0xbe,0xfe,0x08,0xdc,0xfb,
0x35,0x8f,0x6f,0xca,0x12,0xd8,0xb4,0x8e,0x79,0xf0,0x7a,0x1d,0x27,0x61,0xcb,0x50,
0xef,0x4f,0xe1,0xbb,0x2d,0x43,0x5c,0x3f,0xd3,0x77,0xdb,0x29,0xca,0xf9,0x0b,0x6c,
0xee,0x77,0x9a,0x72,0x9e,0x44,0xce,0xd3,0xf0,0x73,0xfe,0x33,0xc8,0xc9,0xdf,0x85,
0x67,0x29,0xee,0x0c,0xe2,0xce,0xe2,0xfb,0xcf,0xe3,0xce,0x21,0xae,0x8c,0xb0,0xf3,
0xa8,0xb5,0x8c,0xb8,0x7e,0xa5,0x5a,0xcf,0x53,0xad,0xbf,0xc1,0xe6,0x7e,0x17,0x28,
0xe7,0x39,0xe4,0xbc,0x00,0x3f,0xe7,0xbf,0x88,0x9c,0x0b,0x84,0x5d,0x42,0xce,0x05,
0xe2,0xfa,0x9d,0x72,0x5e,0xa2,0x9c,0x7f,0xc0,0xe6,0x7e,0x97,0x29,0xe7,0x45,0xe4,
0xbc,0x0c,0x3f,0xfe,0x3e,0xd5,0xf9,0xbf,0x70,0x69,0xd4,0x85,0xf1,0x3f,0xf2,0x4e,
0xd1,0x9b,0xb0,0x10,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 dstOffsetDiv4;
//
// uint isRestartEnabled;
// };
//
// uint GetIndexValue(uint index)
// {
//
// 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];
// }