1// GENERATED FILE - DO NOT EDIT. 2// Generated by gen_vk_internal_shaders.py. 3// 4// Copyright 2018 The ANGLE Project Authors. All rights reserved. 5// Use of this source code is governed by a BSD-style license that can be 6// found in the LICENSE file. 7// 8// shaders/gen/ConvertIndex.comp.00000001.inc: 9// Pre-generated shader for the ANGLE Vulkan back-end. 10 11#pragma once 12constexpr uint8_t kConvertIndex_comp_00000001[] = { 13 0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x6d,0x94,0xdd,0x4b,0xd3,0x61, 14 0x14,0xc7,0x9f,0xfd,0x36,0xa7,0xbd,0xd0,0x0b,0x69,0x6e,0x50,0xdb,0x6c,0x74,0x63, 15 0xa1,0x21,0x19,0x8d,0x28,0xea,0x42,0x4c,0x98,0x96,0x0c,0x82,0xf2,0x2a,0xe8,0xa6, 16 0x8b,0x32,0xda,0xfe,0x80,0xb6,0x56,0x10,0xa6,0xfd,0x01,0x15,0x15,0x81,0x95,0x48, 17 0x84,0x74,0x1d,0x26,0xc6,0x8a,0xd8,0x95,0xe4,0x4d,0x2f,0xff,0x45,0xf4,0x46,0xd8, 18 0x39,0x8f,0x9f,0xc7,0x4e,0xd2,0xe0,0x70,0x9e,0xf3,0x3d,0xef,0xdf,0xe7,0xf9,0x2d, 19 0x1e,0xe5,0x5b,0x9d,0x8b,0xb9,0x8d,0xae,0xcd,0x7d,0x71,0xab,0xbf,0xed,0x2e,0x12, 20 0xc4,0xb9,0x4d,0x2e,0xe9,0xf5,0x60,0xb1,0x54,0xec,0x29,0x57,0x2e,0xf4,0x1c,0xec, 21 0x3f,0xa0,0xfe,0x2d,0x2e,0xee,0xe3,0xd4,0xb7,0x55,0x62,0x5a,0x44,0x27,0x44,0x2e, 22 0x9d,0xbf,0x78,0x59,0xf1,0x11,0x91,0x6d,0x82,0x27,0x7c,0x2d,0xe7,0x8e,0x13,0xab, 23 0x72,0x52,0xa2,0xdb,0xe9,0x93,0x47,0x07,0x2c,0x06,0x96,0x30,0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0x65,0x91,0x0a,0xb3,0x94,0x4d,0xad,0x57,0xe4,0x59,0x3e, 51 0xe7,0xc1,0x2d,0x9f,0xaf,0x0d,0x9f,0xf3,0x86,0xcf,0x05,0x7c,0x81,0x93,0x45,0x72, 52 0x2d,0x9f,0x0d,0x70,0xcb,0xe7,0x5b,0x72,0x1b,0x26,0xf7,0x1d,0xb8,0xe5,0xf3,0x3d, 53 0x78,0xe0,0xb3,0xc9,0x0e,0x4d,0xc3,0xe7,0x67,0xe2,0x0a,0xc4,0x86,0xbe,0x4b,0xf8, 54 0x96,0x0d,0x9f,0x1f,0xe0,0x74,0x89,0x7a,0x81,0x13,0xd5,0x5f,0x5d,0xab,0x8f,0xf9, 55 0x48,0xcc,0x2c,0xf1,0x4d,0xf3,0x46,0x6f,0xf0,0x46,0x4b,0x86,0x83,0x9b,0xe0,0x81, 56 0xd3,0x5b,0x60,0xa3,0x86,0xbf,0x09,0xfe,0x07,0x52,0xf8,0x8f,0xc9,0x1d,0x4d,0xd0, 57 0xcb,0x7e,0x0f,0xaa,0x7f,0xcb,0xbf,0xcc,0x61,0x91,0x3f,0xc3,0x99,0xfa,0xf6,0xa0, 58 0x07,0x00,0x00 59}; 60 61// Generated from: 62// 63// #version 450 core 64// 65// layout(local_size_x = 64, local_size_y = 1, local_size_z = 1)in; 66// 67// layout(set = 0, binding = 0)buffer dst 68// { 69// 70// uint dstIndexBuf[]; 71// }; 72// 73// layout(set = 0, binding = 1)readonly buffer src 74// { 75// 76// uint srcIndexBuf[]; 77// }; 78// 79// layout(push_constant)uniform PushConstants 80// { 81// 82// uint srcIndexOffset; 83// 84// uint dstIndexBufOffsetDiv4; 85// 86// uint maxIndex; 87// 88// uint _padding; 89// }; 90// 91// uint PullIndex(uint index) 92// { 93// uint srcIndex = index + srcIndexOffset; 94// uint srcBlock = srcIndexBuf[srcIndex >> 2]; 95// uint srcComponent =(srcIndex & 3); 96// 97// uint value =(srcBlock >>(srcComponent << 3))& 0xFF; 98// 99// if(value == 0xFF) 100// value = 0xFFFF; 101// 102// return value; 103// } 104// 105// void PackIndexValue(uint srcValue, uint indexIndex, inout uint dstValue) 106// { 107// 108// dstValue |= srcValue <<(indexIndex << 4); 109// } 110// 111// void main() 112// { 113// 114// uint firstIndex = 0; 115// uint endIndex = firstIndex + maxIndex; 116// 117// uint index =((gl_GlobalInvocationID . x +(firstIndex >> 1))<< 1); 118// 119// if(index >= endIndex) 120// return; 121// 122// uint dstValue = 0; 123// 124// if(index >= firstIndex) 125// { 126// uint srcValue = PullIndex(index); 127// PackIndexValue(srcValue, 0, dstValue); 128// } 129// 130// if(index + 1 < endIndex) 131// { 132// uint srcValue = PullIndex(index + 1); 133// PackIndexValue(srcValue, 1, dstValue); 134// } 135// 136// dstIndexBuf[dstIndexBufOffsetDiv4 + gl_GlobalInvocationID . x]= dstValue; 137// 138// } 139