// 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,0x9d,0x56,0x4b,0x6c,0x55,0x55, 0x14,0xbd,0xbb,0xef,0xf5,0xb5,0xb6,0x05,0x31,0x50,0xf9,0x14,0x09,0x8a,0x1f,0xb0, 0xfc,0x94,0xa7,0x21,0x5a,0x1b,0x1d,0x10,0x1c,0x90,0x20,0x22,0x83,0x56,0x0c,0xb6, 0x54,0x9e,0xa0,0x55,0x8c,0x88,0x12,0x6b,0x68,0x04,0x6a,0x99,0x91,0x62,0xa4,0xb1, 0x23,0x2c,0x6a,0x6a,0x1b,0xeb,0x40,0x8c,0x50,0x71,0xa0,0x35,0xc6,0x01,0x2a,0xd1, 0x12,0x8c,0x7c,0x3a,0x51,0x4c,0x1f,0x6d,0x69,0x22,0x55,0x8a,0x15,0xcf,0xba,0x7b, 0x6d,0xbb,0x7d,0x61,0xe4,0x4b,0x4e,0xee,0xdb,0x6b,0xff,0xd6,0xde,0x67,0xdf,0x73, 0x4f,0x22,0x6f,0x5e,0x41,0x14,0x49,0x54,0x14,0x15,0x46,0x63,0x12,0xc5,0xbf,0x1b, 0xa2,0xbc,0x08,0x7f,0x8b,0xa3,0x54,0xfc,0x5c,0xb9,0x6a,0xed,0xaa,0xc5,0x2f,0x6e, 0xab,0x5b,0x9c,0xbe,0x67,0x29,0xf4,0x93,0xa3,0x44,0x6c,0x07,0xdd,0xf5,0xc1,0x26, 0x3f,0x3c,0x93,0x61,0xd5,0xd7,0x6c,0x7e,0x0e,0xf8,0xc5,0xb0,0xa6,0x04,0x3c,0x19, 0xc7,0x8a,0xa2,0x07,0x69,0x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0x71,0xc2,0xd5,0xf5,0x03, 0xbf,0x29,0x7d,0x6e,0xe6,0x7e,0x14,0xc5,0xab,0xdd,0x59,0xd3,0x27,0x8a,0x67,0x78, 0x8f,0xb3,0x19,0x38,0x29,0xaa,0x7b,0x24,0xf8,0xe2,0x0e,0x77,0x4a,0x94,0xff,0x99, 0xf8,0x6e,0x98,0x8a,0x6d,0x7e,0x12,0xbd,0x86,0xdc,0x47,0x7d,0x2f,0x73,0xff,0x2c, 0xaa,0x3b,0xc9,0x3e,0xf5,0x93,0xdf,0x69,0xce,0x18,0xf2,0x9e,0x65,0x3c,0xcb,0x77, 0x4e,0x14,0xf3,0xf6,0xfd,0xae,0xaf,0xa3,0xa2,0x71,0x51,0xe3,0x39,0xd6,0xfc,0x15, 0xf3,0xe1,0xde,0x82,0x7b,0xcc,0x28,0xfd,0x0b,0xe8,0x5f,0xe0,0xce,0x89,0x45,0xbc, 0x37,0xd8,0x3b,0x61,0x77,0xa1,0x94,0xdb,0x8f,0x5f,0xb8,0x1f,0x0d,0x6e,0x3f,0x7e, 0x15,0xc5,0xed,0x3b,0x72,0x5e,0x14,0xab,0x88,0x26,0x62,0xff,0xc6,0xbb,0xca,0x79, 0x99,0xf8,0xb6,0x0c,0x88,0xde,0x5f,0x33,0xd4,0x57,0xe2,0xee,0x4b,0x9e,0xfe,0x6e, 0x86,0xe7,0x78,0xe8,0xe2,0xf2,0xb0,0xfe,0x01,0x9b,0x7c,0xb7,0xb1,0x2c,0x10,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); // }