// 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.00000003.inc: // Pre-generated shader for the ANGLE Vulkan back-end. #pragma once constexpr uint8_t kConvertVertex_comp_00000003[] = { 0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x95,0x57,0x4d,0x6c,0x54,0x55, 0x14,0x7e,0xe7,0xcd,0x74,0xa6,0xda,0xaa,0x18,0x28,0xfd,0x53,0x82,0x20,0x2a,0x96, 0x3f,0x65,0x34,0x44,0xb1,0xd1,0x95,0x2e,0x48,0x00,0x91,0x45,0x2b,0x06,0x5b,0x2a, 0x23,0x28,0x8a,0x11,0x51,0xe2,0x18,0x8c,0x40,0x29,0x3b,0x52,0x8c,0x34,0x76,0x85, 0xf5,0x27,0xb5,0x8d,0x75,0x21,0x46,0x50,0x5c,0x68,0x8d,0x71,0xa3,0x12,0x2d,0xc1, 0x08,0xd2,0x8d,0x62,0x3a,0x14,0x70,0x21,0x58,0xa0,0xe2,0xf9,0xde,0xf9,0xae,0x3d, 0x4e,0xd8,0xd8,0xe4,0xe6,0xcd,0xf9,0xce,0xdf,0x77,0xce,0x3d,0xef,0xbe,0xdb,0x54, 0x3c,0x33,0x1b,0x45,0x12,0x55,0x44,0xe5,0x51,0x5d,0x1c,0x25,0x7f,0xd7,0x47,0xb1, 0x22,0x91,0x62,0x99,0xe4,0xf9,0xe0,0x92,0x15,0x4b,0xe6,0x3d,0xbf,0xa9,0x6d,0x5e, 0xee,0xae,0x05,0xd0,0x5f,0x1b,0xa5,0x12,0x3b,0xe8,0xae,0x53,0x9b,0x32,0x7d,0xa6, 0x75,0x6d,0x68,0x59,0xf7,0x0c,0xf0,0xb3,0xba,0x26,0x29,0x9e,0x4e,0x62,0x45,0xd1, 0xfd,0xb4,0x4d,0x62,0xa9,0xef,0x2c,0x7d,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7b,0x5f,0x98,0x81,0x23,0x62,0xba,0x65,0xea,0x8b,0x3b,0xdf,0x51,0x31,0xfe, 0xc7,0x93,0xff,0x87,0x32,0x89,0xcd,0x4f,0x62,0xd7,0x90,0x7b,0xa8,0x1f,0x64,0xee, 0x9f,0xc5,0x74,0x47,0xd8,0xa7,0x61,0xf2,0x3b,0xe6,0x66,0xec,0x04,0xe3,0x79,0xfd, 0xb0,0xeb,0x63,0x3a,0xb6,0x38,0xa8,0xe9,0x04,0x6b,0xfc,0x8a,0xf1,0x93,0x7b,0x4a, 0x6c,0x36,0xf0,0xcf,0xd2,0x3f,0xeb,0xce,0x85,0xb9,0xbc,0x27,0x84,0x77,0x20,0xdc, 0x7d,0x32,0xae,0xff,0xbf,0xb2,0xff,0x05,0xd7,0xff,0xdf,0xc4,0xf0,0xf0,0xdd,0x38, 0x29,0x86,0xe1,0x1d,0x0f,0xb1,0x7f,0xe7,0xdd,0xe4,0xa4,0x4c,0x7c,0x4b,0x46,0xc4, 0xee,0xb7,0x79,0xea,0x1b,0x71,0x37,0x26,0x4f,0x7f,0x17,0xc3,0x73,0x5c,0xbb,0xb6, 0x48,0xd7,0x3f,0xdf,0x7c,0x58,0x33,0xcc,0x0f,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; // } // // uint 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; // } // // uint value = valueAsUint; // // return value; // } // // float convertComponent(uint 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; // } // // uint srcValue = loadSourceComponent(cd); // float destValue = convertComponent(srcValue); // valueOut |= makeDestinationComponent(cd, destValue); // } // // storeDestinationComponents(valueOut); // }