| // GENERATED FILE - DO NOT EDIT. |
| // Generated by gen_vk_internal_shaders.py. |
| // |
| // Copyright 2020 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.00000005.inc: |
| // Pre-generated shader for the ANGLE Vulkan back-end. |
| |
| #pragma once |
| constexpr uint8_t kConvertVertex_comp_00000005[] = { |
| 0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x9d,0x98,0x79,0x94,0x8f,0x65, |
| 0x14,0xc7,0x7f,0xef,0xec,0xc6,0x60,0x66,0x30,0x63,0x19,0x32,0x51,0x8d,0x4c,0xb6, |
| 0x06,0x65,0x4b,0x47,0x1a,0x4a,0x49,0x22,0x1c,0x92,0x25,0x52,0x91,0xd0,0x26,0x2a, |
| 0xb2,0xa6,0x2c,0x21,0x4b,0x4a,0x49,0xd9,0x93,0x52,0x42,0x92,0x3d,0x39,0xc7,0x39, |
| 0x2a,0xe7,0x90,0xa5,0x4d,0x69,0x75,0x92,0x6d,0xa8,0xe8,0xb9,0xef,0xfb,0xb9,0x5c, |
| 0xcf,0x99,0xbf,0x9a,0x73,0x9e,0xf3,0x3e,0xf7,0x7b,0xef,0xfd,0x3e,0xf7,0xb9,0xcf, |
| 0x7d,0x96,0xdf,0xc4,0xc7,0x55,0x4f,0x8e,0xc5,0x82,0x58,0x6a,0x2c,0x25,0x56,0x25, |
| 0x88,0x85,0x7f,0x19,0xb1,0xb8,0x98,0x74,0x4b,0xc6,0x92,0xc2,0x6f,0x61,0xdb,0x0e, |
| 0x6d,0x6b,0x0f,0x19,0xda,0xa7,0x76,0x41,0x83,0xba,0xa2,0x2f,0x1d,0x8b,0x0f,0xed, |
| 0x44,0x57,0xc6,0xd9,0x24,0xba,0x6f,0x82,0x6b,0x03,0x7a,0xf6,0x1f,0x28,0xf8,0x21, |
| 0xd7,0xd2,0x1d,0x9e,0x10,0x72,0xc5,0x62,0x2d,0xb0,0x95,0xd6,0xda,0x59,0x5f,0x11, |
| 0x0d,0x13,0xab,0xce,0x57,0xb1,0x00,0x2c,0xc1,0x60,0x71,0x60,0x29,0x06,0x8b,0x07, |
| 0x4b,0x33,0x58,0x02,0x58,0xba,0xc1,0x12,0xc1,0xca,0x19,0x2c,0x09,0xac,0x82,0xc1, |
| 0x92,0xc1,0x72,0x0c,0x96,0x02,0x56,0xcd,0x60,0x25,0xc0,0x6a,0x18,0x2c,0x15,0x2c, |
| 0xcf,0x60,0x25,0xc1,0xf2,0x0d,0x96,0x06,0x56,0xd7,0x60,0xa5,0xc0,0x0a,0x24,0xc7, |
| 0x6e,0x56,0x3a,0xdf,0x42,0x37,0x9b,0xde,0xc4,0xaa,0xb9,0xe8,0xe3,0xe5,0x4c,0xec, |
| 0xfb,0x90,0x0b,0xb1,0xef,0xeb,0xbe,0x97,0x5f,0xd0,0x45,0x72,0x2e,0x39,0x15,0x79, |
| 0xaf,0xc7,0xb7,0xaf,0x18,0xbe,0x7d,0x86,0x6f,0xbf,0xc7,0xb7,0x1f,0x3e,0x95,0x0f, |
| 0x31,0xcf,0x1c,0xe4,0x9c,0x20,0x92,0x2b,0xba,0x56,0xd6,0xcd,0x22,0x2e,0xb4,0x8f, |
| 0x0f,0xf9,0xa4,0x5f,0xde,0xd9,0x24,0x91,0xcf,0x58,0xf8,0x4d,0x08,0xf3,0x9e,0x4c, |
| 0x5c,0xb9,0x2e,0xa6,0x14,0xfa,0x8a,0x67,0x39,0xef,0x0c,0x7c,0x72,0x9d,0x7d,0x26, |
| 0xf5,0x94,0x8c,0x7f,0x16,0xfd,0x0c,0xf4,0xd9,0xf4,0xb3,0xe0,0xab,0x6c,0xf8,0xb2, |
| 0xb0,0xa9,0x46,0x3c,0x82,0x55,0x75,0xd5,0xa2,0x35,0xf1,0x7f,0x9a,0xc4,0x70,0x25, |
| 0x75,0x21,0x3c,0x4d,0x90,0xaf,0x02,0x93,0x39,0xe7,0x11,0xbf,0xac,0x43,0x2d,0xe4, |
| 0x9a,0xc6,0xff,0x6a,0x6c,0x93,0x8c,0xbe,0x0e,0xb5,0xab,0x72,0x01,0x31,0xd7,0x22, |
| 0x87,0x4d,0x59,0x47,0x95,0x9b,0x53,0xaf,0x6a,0xdf,0xca,0x93,0xdb,0x61,0x5f,0xce, |
| 0xb1,0xdc,0x69,0xfc,0x3a,0xb2,0xde,0x22,0x4b,0xde,0xba,0xb2,0x36,0x55,0x1c,0xaa, |
| 0xf5,0x57,0x95,0x3a,0xeb,0x4d,0xbc,0xf7,0x11,0x4b,0x1f,0xe6,0x2b,0x72,0x5f,0x13, |
| 0x9f,0x8c,0xd7,0xcf,0xac,0xf1,0x03,0xe8,0xec,0xfc,0x06,0xb0,0x1f,0x34,0x8e,0x41, |
| 0xd8,0xab,0xfe,0x71,0xf6,0x95,0xca,0x23,0x4c,0x9c,0x22,0x3f,0xed,0xda,0xf9,0xf8, |
| 0x8b,0xf2,0x48,0xf6,0x92,0xf2,0x8d,0x37,0xfe,0x22,0x4f,0xf3,0xf2,0xb7,0x80,0x35, |
| 0x91,0xf8,0xde,0xa6,0x16,0xf2,0x0c,0xff,0x12,0xe1,0x77,0x7f,0x2a,0x2f,0x63,0xfd, |
| 0x24,0x2f,0x7b,0x4d,0x5e,0x64,0xbf,0xec,0x85,0xe7,0x6b,0xc6,0xd8,0x47,0x5e,0x44, |
| 0xde,0x0f,0x96,0xed,0xe4,0x03,0xf8,0xc5,0x63,0x7f,0x10,0xce,0x03,0xd8,0x1f,0xe4, |
| 0xdc,0x0c,0xd0,0x7f,0x43,0x3f,0xc9,0xc4,0x5d,0x64,0xea,0x48,0xe4,0xca,0x41,0x74, |
| 0xb6,0xe6,0x3b,0x49,0x78,0x64,0x0f,0x0a,0x56,0x84,0x6d,0x43,0x57,0x45,0x71,0xac, |
| 0x7d,0x8c,0xb1,0x8b,0x1c,0x92,0xc8,0x98,0x32,0xef,0x3f,0x99,0xbf,0xca,0xc7,0x3c, |
| 0xf9,0x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,0xac,0xba,0x7b,0x89,0x43, |
| 0x74,0x3d,0x90,0xf5,0x2c,0xed,0xc9,0xf9,0xd3,0x9d,0xfa,0x12,0x9b,0x6e,0xe0,0xea, |
| 0x7f,0x3f,0xb5,0xa9,0x6b,0xd2,0x1f,0xac,0x69,0x98,0xa3,0xa4,0xf0,0xcd,0xf9,0x20, |
| 0xef,0xd2,0x7e,0xe8,0xd5,0xf7,0x21,0x74,0xc2,0xdb,0x0b,0x59,0xf3,0x3a,0x90,0xbc, |
| 0x0e,0x30,0xf6,0x0f,0x83,0x2f,0x25,0x3f,0x8f,0x80,0x0d,0x22,0x3f,0x43,0x4c,0x7e, |
| 0x44,0x37,0xd8,0xb5,0xd9,0xe4,0x63,0xb0,0xe1,0x79,0x94,0x39,0x2f,0x81,0xe7,0x31, |
| 0x30,0xc9,0xfd,0x62,0x67,0x21,0xef,0xcc,0x27,0xc0,0x0b,0x78,0x03,0x0f,0xc7,0xf7, |
| 0x49,0x74,0x12,0xf3,0x50,0x64,0xe5,0x7d,0xca,0xe3,0x1d,0x0e,0x66,0x79,0x9f,0x01, |
| 0x1f,0xc1,0xdb,0x59,0x79,0x9f,0x45,0x27,0xbc,0xc3,0x90,0x35,0x17,0xa3,0xc8,0xc5, |
| 0x48,0x33,0xd6,0x73,0xe0,0x9a,0x8b,0xd1,0x60,0x9a,0x8b,0xb1,0x26,0x17,0xa2,0x1b, |
| 0xe3,0xda,0x44,0x72,0x31,0xc6,0xf0,0x4c,0x20,0x66,0x3d,0xeb,0x9e,0xe7,0xcd,0x3e, |
| 0x81,0x58,0xc6,0x81,0xc9,0xbd,0x36,0x16,0xff,0x89,0xc6,0xff,0x05,0x6f,0xce,0x2f, |
| 0x82,0x75,0x24,0x8e,0x29,0x26,0x0e,0xd1,0x4d,0x76,0x6d,0x2a,0x3c,0x93,0x19,0x63, |
| 0x92,0x79,0xc3,0x4d,0x41,0x37,0xd5,0x8c,0xf1,0x12,0xe7,0x97,0xca,0xd3,0x19,0x73, |
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7e,0xd8,0xcb,0x3c,0x8f,0x60,0xa7,0xbf,0x77,0xfe,0x03,0x83, |
| 0x27,0x82,0x36,0xfc,0x16,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 dest |
| // { |
| // uint destData[]; |
| // }; |
| // |
| // layout(set = 0, binding = 1)buffer src |
| // { |
| // uint srcData[]; |
| // }; |
| // |
| // layout(push_constant)uniform PushConstants |
| // { |
| // |
| // uint outputCount; |
| // |
| // uint componentCount; |
| // |
| // uint srcOffset; |
| // uint destOffset; |
| // |
| // uint Ns; |
| // uint Bs; |
| // uint Ss; |
| // uint Es; |
| // |
| // uint Nd; |
| // uint Bd; |
| // uint Sd; |
| // uint Ed; |
| // |
| // 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 * 4 + params . destOffset; |
| // } |
| // |
| // 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 = valueMask; |
| // |
| // } |
| // else |
| // { |
| // valueAsUint =(block >> shiftBits)& valueMask; |
| // } |
| // |
| // float positiveMax = valueMask; |
| // |
| // float value = valueAsUint / positiveMax; |
| // |
| // return value; |
| // } |
| // |
| // float convertComponent(float srcValue) |
| // { |
| // |
| // return srcValue; |
| // } |
| // |
| // uint makeDestinationComponent(uint cd, float value) |
| // { |
| // |
| // uint valueAsUint = floatBitsToInt(value); |
| // |
| // return valueAsUint; |
| // } |
| // |
| // void storeDestinationComponents(uint valueAsUint) |
| // { |
| // |
| // destData[gl_GlobalInvocationID . x + params . destOffset / 4]= valueAsUint; |
| // } |
| // |
| // void main() |
| // { |
| // if(gl_GlobalInvocationID . x >= params . outputCount) |
| // return; |
| // |
| // uint valueOut = 0; |
| // for(uint i = 0;i < 1;++ i) |
| // { |
| // uint cd = gl_GlobalInvocationID . x * 1 + i; |
| // if(cd >= params . componentCount) |
| // { |
| // break; |
| // } |
| // |
| // float srcValue = loadSourceComponent(cd); |
| // float destValue = convertComponent(srcValue); |
| // valueOut |= makeDestinationComponent(cd, destValue); |
| // } |
| // |
| // storeDestinationComponents(valueOut); |
| // } |