blob: de95254e0242688fe5257ca7699b042f4c5ad5f8 [file] [log] [blame]
// 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/ConvertIndex.comp.00000003.inc:
// Pre-generated shader for the ANGLE Vulkan back-end.
#pragma once
constexpr uint8_t kConvertIndex_comp_00000003[] = {
0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x6d,0x94,0xdf,0x6b,0x54,0x57,
0x10,0xc7,0xcf,0xdd,0x5d,0xd7,0xa8,0x45,0x23,0xfe,0xc8,0x46,0x6c,0x12,0x37,0xa1,
0x2f,0x29,0x12,0xb0,0x8a,0xa4,0x58,0xe2,0x4b,0xd6,0xb4,0xf1,0x21,0xc6,0x07,0xd1,
0xa4,0xb5,0x2a,0xd4,0x7d,0x50,0x03,0xf6,0x35,0xa2,0xf9,0x07,0x12,0xd3,0x42,0x11,
0x6a,0x12,0x63,0x1f,0x1a,0x91,0x6a,0x05,0xa9,0x20,0xa8,0x11,0xa3,0xc6,0x3f,0x40,
0x45,0xa5,0x60,0x45,0x7c,0x12,0x9f,0xc4,0x68,0x94,0x38,0x73,0xef,0x67,0xe2,0xf4,
0xb2,0x0b,0x87,0x73,0xe7,0x3b,0xf3,0xfd,0xce,0x9c,0x99,0xb3,0x27,0x9b,0x69,0x5c,
0x18,0x42,0x14,0x16,0x87,0xaa,0xb0,0x26,0x0a,0xf1,0x6f,0x79,0xc8,0x04,0xfd,0x5c,
0x12,0xf2,0xf1,0x5e,0xea,0xec,0xee,0x5c,0x7f,0xf4,0xe7,0x03,0xeb,0xbf,0xda,0xd8,
0xa2,0xfe,0xa5,0x21,0x1b,0xc7,0xa9,0x6f,0x99,0xc4,0x2c,0x90,0x3d,0x27,0xeb,0xd0,
0x8f,0xe5,0xc3,0x8a,0xf7,0xc8,0xaa,0x16,0x3c,0x17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,0x4c,0x47,0x52,0x6f,0xf4,0x74,0xfc,0xff,0x8a,0xc2,0x66,0x59,0x1f,0x01,0x95,
0xba,0x8e,0x3e,0x3c,0x0c,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 dstIndexBuf[];
// };
//
// layout(set = 0, binding = 1)readonly buffer src
// {
//
// uint srcIndexBuf[];
// };
//
// layout(set = 0, binding = 2)readonly buffer srcIndirect
// {
//
// uint srcIndirectBuf[];
// };
//
// layout(set = 0, binding = 3)buffer dstIndirect
// {
//
// uint dstIndirectBuf[];
// };
//
// layout(push_constant)uniform PushConstants
// {
//
// uint srcIndirectOffsetDiv4;
//
// uint srcIndexOffset;
//
// uint dstIndexBufOffsetDiv4;
//
// uint maxIndex;
//
// uint dstIndirectBufOffsetDiv4;
// };
//
// uint PullIndex(uint index)
// {
// uint srcIndex = index + srcIndexOffset;
// uint srcBlock = srcIndexBuf[srcIndex >> 2];
// uint srcComponent =(srcIndex & 3);
//
// uint value =(srcBlock >>(srcComponent << 3))& 0xFF;
//
// if(value == 0xFF)
// value = 0xFFFF;
//
// return value;
// }
//
// void PackIndexValue(uint srcValue, uint indexIndex, inout uint dstValue)
// {
//
// dstValue |= srcValue <<(indexIndex << 4);
// }
//
// void main()
// {
//
// uint indexCount = srcIndirectBuf[srcIndirectOffsetDiv4];
// uint firstIndex = srcIndirectBuf[srcIndirectOffsetDiv4 + 2];
// uint endIndex = firstIndex + indexCount;
//
// uint index =((gl_GlobalInvocationID . x +(firstIndex >> 1))<< 1);
//
// if(index >= endIndex)
// return;
//
// uint dstValue = 0;
//
// if(index >= firstIndex)
// {
// uint srcValue = PullIndex(index);
// PackIndexValue(srcValue, 0, dstValue);
// }
//
// if(index + 1 < endIndex)
// {
// uint srcValue = PullIndex(index + 1);
// PackIndexValue(srcValue, 1, dstValue);
// }
//
// dstIndexBuf[dstIndexBufOffsetDiv4 + gl_GlobalInvocationID . x]= dstValue;
//
// if(gl_GlobalInvocationID . x == 0)
// {
// dstIndirectBuf[dstIndirectBufOffsetDiv4]= srcIndirectBuf[srcIndirectOffsetDiv4];
//
// dstIndirectBuf[dstIndirectBufOffsetDiv4 + 1]= srcIndirectBuf[srcIndirectOffsetDiv4 + 1];
//
// dstIndirectBuf[dstIndirectBufOffsetDiv4 + 2]= firstIndex & 1;
//
// dstIndirectBuf[dstIndirectBufOffsetDiv4 + 3]= srcIndirectBuf[srcIndirectOffsetDiv4 + 3];
// dstIndirectBuf[dstIndirectBufOffsetDiv4 + 4]= 0;
// }
//
// }