| // 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,0x96,0x65, |
| 0x14,0xbe,0xcf,0xfb,0xbe,0x6e,0xa6,0x51,0x4e,0xb7,0xf4,0xad,0xdc,0x97,0xd5,0x8f, |
| 0xb7,0xb1,0x72,0x68,0x8d,0x34,0xb7,0xe9,0x0f,0xa3,0x86,0xd2,0xc7,0x28,0xb7,0xb6, |
| 0x14,0xd2,0x14,0xdd,0xa6,0x73,0x6e,0x81,0x09,0xba,0x95,0x3f,0x24,0x64,0x65,0x05, |
| 0xba,0xe1,0x46,0x7f,0x72,0x43,0x82,0xfd,0x8b,0xc8,0xfd,0x88,0xdc,0x5c,0x21,0x08, |
| 0x96,0xa0,0x30,0xc1,0x12,0x26,0x58,0xe6,0x82,0xbe,0x4b,0xbb,0xcf,0x73,0x5f,0x67, |
| 0xbb,0x7c,0x7a,0x07,0x0f,0xcf,0xee,0xeb,0x9c,0x73,0x9d,0x73,0x5f,0xd7,0xfd,0x3c, |
| 0xcf,0x9b,0x4c,0x2c,0xc9,0x75,0x4e,0xdc,0x1c,0x37,0xdb,0xf5,0x8a,0x8b,0xfe,0xf2, |
| 0x5c,0xc2,0xe9,0xbf,0x73,0x5d,0x4e,0x74,0x5f,0x5b,0xfb,0x62,0x6d,0xf9,0xee,0xf6, |
| 0xd7,0xcb,0x97,0x2d,0x7f,0x5c,0xe3,0xf7,0xb8,0x64,0x94,0xa7,0xb1,0x7b,0x7d,0xce, |
| 0x2c,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x58,0x46,0x7e,0x54,0x90,0x1f, |
| 0xcb,0x25,0xc4,0x4c,0xb3,0x27,0xc1,0xc7,0x7e,0x54,0x4a,0xc0,0xd9,0x8f,0xa7,0xe0, |
| 0x47,0x25,0xf9,0xb1,0x42,0x02,0x6e,0x7e,0xac,0x94,0x80,0x19,0xf7,0x2a,0x09,0xfd, |
| 0x56,0x92,0x1f,0x35,0x78,0x0e,0x2a,0xc9,0x8f,0x35,0x12,0x72,0x6b,0xe0,0x87,0xce, |
| 0xb7,0x06,0x7e,0x98,0x76,0x43,0xe4,0xc7,0xfb,0x98,0x79,0x00,0x3a,0x0e,0xe2,0xf9, |
| 0xee,0x43,0xee,0x30,0x69,0xfa,0x5c,0x16,0x4d,0x6b,0x25,0xe0,0xa6,0xe9,0xba,0x2c, |
| 0x67,0x7c,0xbd,0x84,0xbc,0x75,0xa4,0xe9,0xf3,0xa4,0xe9,0x7a,0xd2,0xf4,0x05,0x09, |
| 0x31,0xdb,0xf7,0x4b,0x59,0xce,0x78,0x9d,0x04,0x9c,0x35,0x7d,0x19,0x9a,0xd6,0x91, |
| 0xa6,0xaf,0x48,0xc0,0x4d,0xd3,0x0d,0x12,0x30,0xe3,0x6e,0x90,0xd0,0x6f,0x03,0x69, |
| 0xda,0x24,0xe1,0xfd,0x52,0x47,0x9a,0x6e,0x94,0x90,0xdb,0x04,0x4d,0x75,0x3e,0xc5, |
| 0x6c,0x7f,0x9f,0xb9,0xff,0xef,0xf9,0x73,0x9c,0xe5,0x74,0x4c,0xcf,0x3e,0xd2,0x5e, |
| 0xbf,0x61,0xaa,0xff,0x10,0x38,0x86,0x29,0xd6,0x83,0xe7,0x60,0x08,0x5c,0xc3,0xe0, |
| 0xe9,0x06,0x4f,0x77,0xec,0xfb,0xda,0x45,0xcf,0xd1,0x17,0xb1,0xf7,0xda,0x08,0x3d, |
| 0x47,0x1a,0x3b,0xe5,0xaf,0x11,0xd4,0x9d,0x22,0x7f,0xb7,0x66,0xf1,0x77,0x9b,0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0x8f,0x7f,0xeb,0x4e,0x45,0xbf,0xe7,0xc4,0x3f,0x37,0xe2,0xfe,0x03,0xb6,0x15, |
| 0x25,0x01,0x24,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]; |
| // } |