| // 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,0x7f,0x68,0x55,0x65, |
| 0x18,0x3e,0xef,0xee,0x76,0xb7,0xb4,0x4c,0xdd,0xd6,0xed,0x96,0xc5,0x6d,0x16,0x8e, |
| 0xac,0xdb,0x36,0x2c,0xdb,0x5c,0xd1,0x62,0x32,0x69,0x96,0x44,0x9b,0xeb,0x07,0x34, |
| 0x37,0x8c,0xfd,0x70,0xae,0xc6,0x82,0xca,0xdd,0x81,0x88,0xd8,0x08,0x34,0x05,0xdb, |
| 0x68,0xa3,0xbf,0xda,0x90,0x62,0xf4,0x4f,0x44,0xee,0xbf,0xb6,0x66,0x0d,0x04,0x4b, |
| 0x50,0x98,0x60,0x09,0x13,0x2c,0x73,0xfd,0x59,0xe9,0x2a,0xec,0x7b,0xcf,0xf7,0xbc, |
| 0xfa,0x78,0x3a,0xc2,0xf1,0xec,0x7b,0x9e,0xf7,0x7d,0xde,0xf7,0x7b,0x9f,0xef,0x9c, |
| 0x7b,0x12,0x79,0x6b,0x0b,0x83,0x40,0x82,0x65,0x41,0x51,0x70,0x44,0x82,0xf0,0xdf, |
| 0xaa,0x20,0x2f,0xd0,0x3f,0x97,0x07,0xc9,0xf0,0xde,0xb0,0xf5,0xa5,0xad,0xd9,0xfe, |
| 0xb7,0x77,0x66,0x37,0x3c,0x5e,0xa1,0xfc,0x8a,0x20,0x11,0xc6,0x29,0x77,0xa7,0x8b, |
| 0x29,0x70,0xf7,0x7c,0x77,0x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xe3,0xec,0x6f,0x37,0xfc,0xed,0x24,0x7f,0x77,0x89,0xc7,0xcd,0xdf,0x1e,0xf1, |
| 0x98,0x69,0xf7,0x8a,0xaf,0xd7,0x43,0xfe,0xf6,0xe1,0xb7,0xa9,0x93,0xfc,0xed,0x17, |
| 0x1f,0xdb,0x07,0x7f,0xb5,0xbf,0x7e,0xf2,0xf7,0x1b,0xf2,0x57,0x67,0x6e,0xb3,0x9b, |
| 0x22,0xbf,0x06,0xb0,0x8f,0x1c,0xe2,0x79,0xae,0x27,0xf0,0x5b,0x97,0xa6,0xb9,0x7e, |
| 0x07,0xdc,0xe6,0x35,0x87,0x6f,0xcc,0x14,0x38,0xed,0x63,0x0e,0xba,0xd6,0xc7,0x49, |
| 0x70,0x19,0x9a,0xfd,0x29,0x7c,0xb7,0x65,0x48,0xeb,0x07,0xfa,0x6e,0x3b,0x45,0x35, |
| 0x7f,0x04,0x67,0x71,0xa7,0xa9,0xe6,0x49,0xd4,0x3c,0x8d,0x38,0xd3,0x3f,0x83,0x9a, |
| 0xfc,0x5d,0x78,0x96,0xf2,0xce,0x20,0xef,0x2c,0xbe,0xff,0x2c,0xef,0x1c,0xf2,0xe6, |
| 0x09,0x3b,0x8f,0x5e,0xe7,0x49,0xeb,0x27,0xea,0xf5,0x3c,0xf5,0xfa,0x33,0x38,0x8b, |
| 0xbb,0x40,0x35,0xcf,0xa1,0xe6,0x05,0xc4,0x99,0xfe,0x45,0xd4,0x5c,0x20,0xec,0x12, |
| 0x6a,0x2e,0x90,0xd6,0x2f,0x54,0xf3,0x12,0xd5,0xfc,0x15,0x9c,0xc5,0x5d,0xa6,0x9a, |
| 0x17,0x51,0xf3,0x32,0xe2,0xf8,0xfb,0x74,0x31,0xfc,0x7e,0x92,0xe0,0x49,0x77,0xfd, |
| 0x07,0x6a,0x2f,0x96,0xf5,0xc0,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 >> 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]; |
| // } |