// 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.00000002.inc: // Pre-generated shader for the ANGLE Vulkan back-end. #pragma once constexpr uint8_t kConvertVertex_comp_00000002[] = { 0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x95,0x57,0x6d,0x68,0x96,0x65, 0x14,0x7e,0xce,0xbd,0x77,0xef,0x3e,0x4b,0xc5,0xf9,0x39,0x9b,0x4e,0x23,0xcd,0xa9, 0xcc,0xf4,0x1d,0x56,0x94,0x29,0x58,0xfe,0x30,0x13,0x84,0x48,0xd7,0x9f,0x40,0x93, 0x82,0x6c,0x7d,0x60,0x19,0x4e,0x23,0xcc,0x34,0x2a,0x28,0x4b,0x12,0x0c,0xcc,0x39, 0xc3,0xc4,0x32,0x72,0xe8,0x2f,0x33,0xb3,0x52,0x1a,0x98,0x85,0xe4,0x10,0x12,0xf1, 0x4f,0x46,0x5a,0x16,0xe5,0x2c,0xa4,0xce,0xf5,0x9c,0xeb,0xb4,0xb3,0xd1,0x9f,0x06, 0x37,0xcf,0x7b,0xae,0xf3,0x71,0x5f,0xe7,0xe3,0xb9,0x9f,0x7b,0x65,0x69,0x42,0x45, 0x96,0x49,0x56,0x93,0x55,0x66,0x0f,0xa6,0x2c,0xff,0x1b,0x92,0x25,0x45,0x32,0xc5, 0x8a,0xf9,0xf3,0x9e,0x05,0x8b,0x17,0x4c,0x7b,0xea,0xe9,0x65,0xd3,0x66,0x96,0x9a, 0xa1,0xbf,0x3e,0x2b,0xcb,0xed,0xa0,0x1b,0xa4,0x36,0xe5,0xfa,0x2c,0xe8,0x7a,0xec, 0xa1,0x47,0x56,0x02,0xaf,0x51,0xc5,0x60,0xc5,0x0b,0x79,0xac,0x2c,0xbb,0x8b,0xb6, 0x79,0x2c,0xf5,0x9d,0xa8,0x4f,0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c5,0xfa,0xb7, 0x87,0xfa,0x8f,0x4e,0x86,0xfb,0xf7,0xbb,0x3e,0x19,0x86,0xb3,0xd6,0x63,0x8f,0x49, 0x76,0x47,0xac,0x4f,0x7d,0xdf,0xf4,0x86,0x64,0xff,0x67,0xb4,0x52,0x7f,0xa7,0xf6, 0x0a,0xd8,0xbc,0xd4,0xff,0x4e,0x8c,0xe7,0x35,0xad,0xda,0x2c,0x5d,0xff,0x00,0x11, 0x3e,0x0e,0xf8,0x54,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; // } // // int 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 value = int(valueAsUint); // // return value; // } // // float convertComponent(int 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; // } // // int srcValue = loadSourceComponent(cd); // float destValue = convertComponent(srcValue); // valueOut |= makeDestinationComponent(cd, destValue); // } // // storeDestinationComponents(valueOut); // }