// 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.00000004.inc: // Pre-generated shader for the ANGLE Vulkan back-end. #pragma once constexpr uint8_t kConvertVertex_comp_00000004[] = { 0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x95,0x57,0x6d,0x68,0x96,0x65, 0x14,0x7e,0xce,0xbd,0x39,0xbf,0x86,0x3a,0x9d,0xa6,0x99,0x6b,0xea,0x56,0xba,0x2d, 0x37,0x63,0x95,0xb5,0xf9,0x9a,0xfe,0xc8,0x02,0xc3,0x2c,0xd4,0xec,0x5f,0xb8,0x1c, 0x45,0xea,0xa0,0x20,0x29,0x8d,0xa1,0x62,0xf3,0x4f,0x5f,0x46,0x05,0x7d,0x89,0x8a, 0xd2,0xdc,0x9a,0xff,0x24,0x23,0x87,0xc3,0xc8,0x2c,0x21,0x94,0x04,0xb3,0x90,0x1c, 0x42,0x22,0x51,0x21,0xeb,0x43,0x33,0x3b,0xd7,0x7b,0xae,0xd3,0x7b,0x36,0xfa,0xd3, 0xe0,0xe6,0x79,0xcf,0x75,0x3e,0xee,0xeb,0x7c,0x3c,0xf7,0x73,0xaf,0x28,0xcd,0x1c, 0x9e,0x65,0x92,0x8d,0xce,0x46,0x64,0x6d,0x29,0xcb,0xff,0x95,0x65,0x49,0x91,0x4c, 0xb1,0x92,0xfc,0x73,0xf1,0x92,0x47,0x96,0xcc,0x79,0xe6,0xd9,0x96,0x39,0x8d,0x77, 0x34,0x40,0x3f,0x26,0x2b,0xca,0xdb,0x41,0x37,0x56,0x6d,0x86,0xe9,0xb3,0x58,0xd7, 0xda,0xc7,0x9f,0x5c,0x07,0xbc,0x5c,0x15,0xe3,0x14,0x2f,0xce,0xc7,0xca,0xb2,0x7b, 0x69,0x9b,0x8f,0xa5,0xbe,0xd5,0xfa,0xc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a8,0x26,0x3f,0xf0,0xf4,0xf8,0x55, 0x8c,0x17,0xf5,0x78,0x7a,0x5f,0x57,0x24,0x8b,0x83,0x9c,0xaa,0x98,0xa3,0xcf,0x05, 0xee,0xa0,0xb8,0x93,0xae,0xa0,0x7f,0x2d,0xeb,0x5e,0x1b,0xce,0xfc,0x65,0xbc,0x03, 0xfa,0xf9,0xe6,0xf7,0xda,0x9a,0x50,0xff,0x1a,0xd6,0x7f,0x53,0xa8,0x7f,0x6d,0x32, 0xdc,0xef,0x04,0x75,0xc9,0x30,0x9c,0xdf,0x1e,0xfb,0xb6,0x64,0xf7,0xce,0xba,0x54, 0xb8,0x27,0xd4,0x27,0xfb,0xdf,0xa5,0x95,0xfa,0x9c,0xf6,0x0a,0xd8,0xaa,0x34,0xf8, 0x9e,0x8d,0xe7,0x35,0xad,0xda,0x3c,0x5d,0xff,0x00,0xae,0xa2,0x5d,0x25,0xb8,0x11, 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 * params.Bs + 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, params.Bs); // valueBits = params.Bs * 8; // valueMask = valueBits == 32 ? - 1 : (1 << valueBits) - 1; // } // // uint valueAsUint; // // if (component >= params.Ns && component == 3) // { // valueAsUint = params.srcEmulatedAlpha; // } // else // { // valueAsUint = (block >> shiftBits) & valueMask; // } // // if (valueBits < 32) // { // bool isNegative = (valueAsUint & (1 << (valueBits - 1))) != 0; // uint signExtension = isNegative ? 0xFFFFFFFF << valueBits : 0; // valueAsUint |= signExtension; // } // int valueAsInt = int(valueAsUint); // float value = float(valueAsInt) / (valueMask >> 1); // value = max(value, float(- 1)); // // 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); // }