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/ConvertVertex.comp.00000007.inc:
// Pre-generated shader for the ANGLE Vulkan back-end.
#pragma once
constexpr uint8_t kConvertVertex_comp_00000007[] = {
0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x95,0x57,0x4d,0x6c,0x54,0x55,
0x14,0x7e,0xe7,0xcd,0xf4,0xbf,0x48,0x6b,0xfd,0x4d,0x94,0xa0,0xb5,0xfe,0x30,0x0d,
0x90,0x06,0x8d,0xb1,0xd1,0xe8,0x4a,0x89,0x63,0xa4,0x82,0xa9,0x74,0x63,0x4b,0xc7,
0x20,0x89,0x83,0x12,0x9a,0x60,0xda,0xd2,0xb4,0x46,0x4c,0xdc,0x34,0x5d,0x20,0x6a,
0x62,0x68,0x4c,0x9b,0x68,0x11,0x81,0x8d,0x6c,0xd5,0x06,0x6c,0x34,0x42,0xe8,0x06,
0x31,0x10,0x17,0xad,0xd0,0x4a,0xa2,0x0b,0xb5,0xb5,0x2a,0x76,0x3c,0xdf,0x3b,0xdf,
0x75,0x4e,0x27,0x6c,0x9c,0xe4,0xe6,0xbd,0xf3,0x9d,0xef,0xfc,0xde,0xfb,0xee,0xbd,
0x93,0x8a,0x1b,0x2b,0xa2,0x48,0xa2,0x9a,0xa8,0x32,0x5a,0x15,0x47,0xc9,0xaf,0x3e,
0x8a,0x15,0x89,0x14,0x2b,0x4f,0x9e,0x4f,0x66,0xb7,0x66,0xd7,0xef,0xed,0xc9,0xad,
0xdf,0xf4,0xe0,0x46,0xe8,0x6f,0x88,0x52,0x09,0x0f,0xba,0xd5,0xca,0x29,0xd3,0x67,
0x5a,0x47,0xbe,0x6b,0xd7,0x6e,0xe0,0xf3,0x3a,0xea,0x14,0x4f,0x27,0xbe,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xdc,0xde,0xdb,0xc4,0x33,0x74,0xbc,0xe4,0x5e,0xb0,0xec,
0xce,0xf7,0xf3,0xec,0x7f,0xaf,0xdb,0x17,0xbf,0x13,0xc3,0xc3,0xbe,0x7b,0x41,0x0c,
0xf3,0xfb,0xfa,0xf7,0x3c,0xb7,0x2f,0x48,0x71,0x2f,0xbe,0x28,0x76,0x37,0xcc,0x51,
0xff,0x98,0xce,0xd5,0x45,0xe6,0xe9,0xef,0x29,0x99,0xe4,0x3e,0x20,0xfa,0x1f,0x4a,
0xa2,0x7f,0x01,0x0f,0x4f,0xa6,0xd1,0xb0,0x0e,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 destData[];
// };
//
// layout(set = 0, binding = 1) buffer src
// {
// uint srcData[];
// };
//
// layout(push_constant) uniform PushConstants
// {
//
// uint outputCount;
//
// uint componentCount;
//
// uint srcOffset;
// uint dstOffset;
//
// uint Ns;
// uint Bs;
// uint Ss;
// uint Es;
//
// uint Nd;
// uint Bd;
// uint Sd;
// uint Ed;
//
// uint srcEmulatedAlpha;
//
// bool isSrcHDR;
// bool isSrcA2BGR10;
// } params;
//
// uint getSourceComponentOffset(uint vertex, uint component)
// {
// return vertex * params.Ss + component * 4 + params.srcOffset;
// }
//
// uint getDestinationComponentOffset(uint vertex, uint component)
// {
// return vertex * params.Sd + component * params.Bd + params.dstOffset;
// }
//
// uint getShiftBits(uint offset, uint B)
// {
//
// uint shift = (offset % 4) * 8;
//
// return shift;
// }
//
// float loadSourceComponent(uint cd)
// {
//
// uint vertex = cd / params.Nd;
// uint component = cd % params.Nd;
//
// if (component >= params.Ns && component < 3)
// {
// return 0;
// }
//
// uint offset = getSourceComponentOffset(vertex, component);
// uint block = srcData[offset / 4];
//
// uint shiftBits;
// uint valueBits;
// uint valueMask;
//
// if (params.isSrcHDR)
// {
// valueBits = component == 3 ? 2 : 10;
// valueMask = component == 3 ? 0x03 : 0x3FF;
// if (params.isSrcA2BGR10)
// {
// shiftBits = 10 * component;
// }
// else
// {
//
// shiftBits = component == 3 ? 0 : (valueBits * (2 - component) + 2);
// }
// }
// else
// {
// shiftBits = getShiftBits(offset, 4);
// valueBits = 4 * 8;
// valueMask = valueBits == 32 ? - 1 : (1 << valueBits) - 1;
// }
//
// uint valueAsUint;
//
// if (component >= params.Ns && component == 3)
// {
// valueAsUint = params.srcEmulatedAlpha;
// }
// else
// {
// valueAsUint = (block >> shiftBits) & valueMask;
// }
//
// float value = uintBitsToFloat(valueAsUint);
//
// return value;
// }
//
// float convertComponent(float srcValue)
// {
//
// return srcValue;
// }
//
// uint makeDestinationComponent(uint cd, float value)
// {
//
// uint valueAsUint;
//
// if (params.Bd == 2)
// {
//
// uint shift = ( (cd & 1) == 0) ? 0 : 16;
// valueAsUint = packHalf2x16(vec2(value, 0.0)) << shift;
// }
// else
// {
// valueAsUint = floatBitsToInt(value);
// }
//
// return valueAsUint;
// }
//
// void storeDestinationComponents(uint valueAsUint)
// {
//
// destData[gl_GlobalInvocationID.x + params.dstOffset / 4] = valueAsUint;
// }
//
// void main()
// {
// if (gl_GlobalInvocationID.x >= params.outputCount)
// return;
//
// uint valueOut = 0;
// for (uint i = 0; i < params.Ed; ++ i)
// {
// uint cd = gl_GlobalInvocationID.x * params.Ed + i;
// if (cd >= params.componentCount)
// {
// break;
// }
//
// float srcValue = loadSourceComponent(cd);
// float destValue = convertComponent(srcValue);
// valueOut |= makeDestinationComponent(cd, destValue);
// }
//
// storeDestinationComponents(valueOut);
// }