Source code

Revision control

Copy as Markdown

Other Tools

// 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/ConvertIndirectLineLoop.comp.00000000.inc:
// Pre-generated shader for the ANGLE Vulkan back-end.
#pragma once
constexpr uint8_t kConvertIndirectLineLoop_comp_00000000[] = {
0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x6d,0x94,0xfd,0x4b,0xd3,0x51,
0x14,0xc6,0xaf,0xdf,0xcd,0xf9,0x92,0x6d,0x66,0x9a,0x45,0x3a,0xdf,0x6a,0x95,0xd5,
0xec,0x07,0x67,0x9a,0x18,0x8e,0x89,0x5a,0x0c,0xc9,0x69,0x21,0x08,0x96,0xa0,0xa0,
0xc2,0x04,0xd3,0xb4,0x5f,0x04,0xfb,0x7f,0x22,0xfa,0xe7,0x7a,0x27,0xe8,0x9c,0xeb,
0xe7,0xc8,0x69,0x38,0xb8,0xdc,0xef,0x79,0xce,0x79,0x9e,0xf3,0x72,0xef,0x5d,0x2a,
0x19,0x69,0x09,0xa1,0x29,0x5c,0x09,0xad,0xe1,0x53,0x38,0xff,0x5d,0x0b,0x89,0x20,
0x41,0xb0,0x4c,0xdc,0x17,0xaa,0x2b,0xd5,0xe2,0xe1,0xd1,0x56,0x71,0xbc,0xf4,0x44,
0xfd,0xd9,0x90,0x8a,0x71,0xea,0xcb,0x49,0x4c,0xb3,0xec,0x69,0x59,0xf5,0xcd,0xdd,
0x7d,0xc5,0x87,0x64,0x75,0x0a,0x9e,0x8e,0x5a,0x21,0xcc,0x12,0x1b,0xb5,0x04,0x6d,
0x93,0x3d,0x03,0x67,0x41,0xb4,0xda,0x65,0x57,0xc5,0x45,0x41,0xda,0xa9,0xe1,0x66,
0xb4,0x9b,0x2f,0xec,0x11,0x76,0x8d,0xef,0xc0,0xaf,0x5a,0x1d,0x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,0xb9,0xba,0xab,0xd4,0xbd,0x44,0x7f,0xc6,0x7b,0x05,0xc7,0xea,0xb6,
0xfc,0x8b,0xee,0x8c,0xce,0x88,0x19,0x23,0xde,0xd7,0xf6,0x9a,0xda,0x2a,0xae,0xb6,
0x37,0xe0,0x56,0xc7,0x1a,0xef,0x2f,0x8b,0x4f,0xeb,0x58,0x43,0xd7,0xea,0x58,0xc7,
0x57,0x70,0xd8,0x06,0x77,0xba,0xe0,0xb4,0xde,0xba,0x3b,0xbd,0xe1,0x72,0xbe,0xc3,
0x67,0x71,0x9b,0x2e,0xe7,0x3a,0x39,0x37,0x89,0x33,0xfd,0x2d,0x72,0xfa,0x37,0xb3,
0xed,0x78,0x5b,0xf0,0xb6,0xb9,0xa3,0xc6,0xdb,0x85,0xb7,0xe3,0x78,0x7b,0x8e,0xb7,
0x0b,0x6f,0xaf,0x81,0xb7,0x0f,0xaf,0xee,0xb0,0x03,0x7a,0xf4,0x5a,0xef,0x5d,0x8f,
0x07,0xae,0xc7,0x43,0x7c,0x16,0x77,0xe4,0x72,0xee,0x93,0xf3,0x88,0x38,0xff,0xfe,
0x74,0xff,0x2b,0xff,0x9a,0x93,0xb2,0xfe,0x01,0x86,0x08,0xd7,0xa3,0xbc,0x08,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) readonly buffer srcIndirectBuf
// {
//
// uint indirectBuf[];
// };
//
// layout(set = 0, binding = 1) buffer dstIndirectBuf
// {
//
// uint indexIndirectBuf[];
// };
//
// layout(set = 0, binding = 2) buffer dstIndexBuf
// {
//
// uint dstData[];
// };
//
// layout(push_constant) uniform PushConstants
// {
//
// uint indirectBufferOffsetDiv4;
//
// uint indexIndirectBufOffsetDiv4;
//
// uint dstDataOffsetDiv4;
// };
//
// void main()
// {
//
// uint vertexCount = indirectBuf[indirectBufferOffsetDiv4];
// uint firstVertex = indirectBuf[indirectBufferOffsetDiv4 + 2];
//
// if (gl_GlobalInvocationID.x >= 1)
// return;
//
// for (uint i = 0; i < vertexCount; i ++)
// {
// dstData[dstDataOffsetDiv4 + i] = firstVertex + i;
// }
// if (vertexCount > 1)
// {
// dstData[dstDataOffsetDiv4 + vertexCount] = firstVertex;
// vertexCount ++;
// }
//
// indexIndirectBuf[indexIndirectBufOffsetDiv4] = vertexCount;
// indexIndirectBuf[indexIndirectBufOffsetDiv4 + 1] = indirectBuf[indirectBufferOffsetDiv4 + 1];
// indexIndirectBuf[indexIndirectBufOffsetDiv4 + 2] = 0;
// indexIndirectBuf[indexIndirectBufOffsetDiv4 + 3] = 0;
// indexIndirectBuf[indexIndirectBufOffsetDiv4 + 4] = indirectBuf[indirectBufferOffsetDiv4 + 3];
// }