1// GENERATED FILE - DO NOT EDIT. 2// Generated by gen_vk_internal_shaders.py. 3// 4// Copyright 2018 The ANGLE Project Authors. All rights reserved. 5// Use of this source code is governed by a BSD-style license that can be 6// found in the LICENSE file. 7// 8// shaders/gen/ConvertVertex.comp.00000005.inc: 9// Pre-generated shader for the ANGLE Vulkan back-end. 10 11#pragma once 12constexpr uint8_t kConvertVertex_comp_00000005[] = { 13 0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x9d,0x98,0x77,0x70,0x57,0x45, 14 0x10,0xc7,0xdf,0x25,0x21,0xc4,0x24,0x94,0x50,0x12,0xba,0xc1,0x80,0x04,0x12,0x42, 15 0x84,0x50,0x44,0x44,0x1c,0x44,0x2c,0xd8,0x45,0x81,0x11,0x1b,0x68,0x6c,0x68,0x14, 16 0x6c,0x08,0x2a,0x2a,0x4d,0x2c,0x28,0x2a,0x45,0xec,0x15,0xc5,0x82,0xa2,0x28,0x16, 17 0x44,0x41,0x50,0x64,0x86,0x19,0x2c,0x28,0xf6,0xae,0x30,0x03,0x62,0x05,0x15,0xbc, 18 0x7d,0xf7,0x59,0xb3,0x9c,0xf9,0xcb,0xcc,0xbc,0xf9,0xbd,0xfd,0xee,0xee,0xf7,0xf6, 19 0x76,0xf7,0x4a,0x5e,0x66,0x46,0x49,0xfd,0x24,0x71,0x49,0x6e,0x92,0x93,0xf4,0x71, 20 0x49,0xfa,0x57,0x90,0x64,0x24,0xf2,0x9a,0x97,0x64,0xa7,0xbf,0x83,0x87,0x1c,0x37, 21 0xa4,0x62,0xec,0xb8,0xd1,0x15,0x55,0x3d,0x2b,0x45,0xdf,0x30,0xc9,0x4c,0xed,0x44, 22 0xd7,0xc8,0xdb,0xd4,0xf3,0xbf,0x59,0xfe,0x19,0x73,0xda,0xd9,0xe7,0x0b,0xfe,0xab, 23 0x7f,0x1a,0x7b,0x3c,0x2b,0xe5,0x4a,0x92,0x01,0xd8,0xca,0x73,0x88,0xb7,0xee,0x18, 24 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09,0x4f,0x37,0x63,0xb3,0x0f,0xb8,0xf2,0x74,0xc7,0x4f,0x70,0xcd, 78 0x55,0x0f,0xf8,0xbb,0x1b,0xae,0x9e,0x70,0x55,0x19,0xae,0x5e,0xe0,0xea,0xd7,0x1b, 79 0x5f,0xc1,0x77,0xfa,0x39,0xf6,0x4e,0xef,0x8e,0xb5,0xb9,0x69,0x54,0x47,0x6e,0x1a, 80 0x98,0xf7,0x86,0xe4,0xa6,0xb1,0xd9,0x1b,0xfb,0x72,0xf6,0xe9,0x98,0xfb,0xe1,0x33, 81 0x1d,0xce,0xfd,0xc1,0xfa,0x99,0x39,0x1d,0x00,0xde,0x9f,0x5a,0xf7,0xfd,0x17,0x0b, 82 0x1c,0x03,0xe0,0x95,0x18,0x07,0x98,0x18,0x0b,0xb8,0x9f,0xcb,0x5f,0x13,0x13,0x57, 83 0x53,0xe2,0x6a,0x6e,0xe2,0x1a,0x98,0xec,0xbe,0x87,0x1f,0x1a,0xc9,0x27,0x45,0xf2, 84 0xc8,0x48,0x3e,0x25,0x92,0x4f,0x8f,0xe4,0x71,0x91,0x3c,0x3e,0x92,0xa7,0x46,0xf2, 85 0x4d,0x91,0x3c,0x2f,0x92,0xe7,0x1b,0x59,0xee,0x13,0x8f,0x44,0xfa,0x97,0x92,0xdd, 86 0xcf,0xa8,0x95,0x91,0xbc,0x3a,0xaa,0xc3,0x41,0xe4,0x45,0xfb,0xe3,0x60,0xfa,0x63, 87 0x90,0xb1,0x19,0x0c,0x3e,0x85,0xba,0x1c,0x82,0xdf,0x60,0xea,0x32,0x10,0x4c,0xed, 88 0x0f,0x8b,0x38,0x0f,0xaf,0x83,0x73,0x08,0xb8,0xd6,0xff,0x08,0xfc,0x86,0xc0,0x79, 89 0x28,0x98,0xda,0x1f,0x49,0x6d,0x94,0xf3,0x68,0x38,0x8f,0x32,0x36,0xc7,0x80,0xeb, 90 0x5e,0x7c,0x1c,0x7e,0xc7,0x18,0x9b,0xe3,0xe1,0xd1,0xb3,0xe9,0x04,0xb0,0xa1,0x69, 91 0x2e,0x03,0x76,0x22,0xbe,0xa2,0x93,0x3d,0x7c,0x78,0x52,0xbb,0x87,0x8b,0x6e,0x98, 92 0x7f,0x86,0xd3,0x4b,0xc3,0xe8,0xbf,0x11,0xc8,0xc3,0xcd,0x58,0x27,0xd3,0x5f,0x32, 93 0x9f,0x91,0xc8,0xaa,0x3b,0x95,0x38,0x44,0x77,0x0a,0xb2,0xee,0xa5,0xa7,0xb1,0xff, 94 0x8c,0xa4,0xbf,0xc4,0xe6,0x24,0x70,0xf5,0x3f,0x8b,0xde,0xd4,0x9a,0x9c,0x0d,0xd6, 95 0x2f,0xcd,0x51,0x76,0x7a,0x17,0x3e,0x97,0xfb,0x72,0x35,0x7a,0xf5,0x3d,0x0f,0x9d, 96 0xf0,0x9e,0x8e,0xac,0x79,0x3d,0x9f,0xbc,0x8e,0x31,0xf6,0x17,0x80,0x3f,0x4e,0x7e, 97 0x2e,0x04,0xab,0x21,0x3f,0x63,0x4d,0x7e,0x44,0x77,0x91,0x7f,0xe6,0x92,0x8f,0x8b, 98 0x0c,0xcf,0xc5,0xcc,0xf9,0x31,0x78,0x2e,0x01,0x93,0xdc,0x2f,0xf0,0x16,0x72,0x4f, 99 0xbc,0x0c,0xbc,0x8a,0xbb,0xf9,0x04,0x7c,0x2f,0x47,0x27,0x31,0x8f,0x43,0x56,0xde, 100 0x2b,0x22,0xde,0x09,0x60,0x96,0xf7,0x2a,0xf0,0x89,0xdc,0xe9,0x95,0xf7,0x6a,0x74, 101 0xc2,0x3b,0x1e,0x59,0x73,0x71,0x0d,0xb9,0x98,0x64,0xc6,0xba,0x16,0x5c,0x73,0x71, 102 0x1d,0x98,0xe6,0x62,0x8a,0xc9,0x85,0xe8,0x26,0xfb,0x67,0x06,0xb9,0x98,0x6c,0x78, 103 0xa6,0x13,0xb3,0xee,0x75,0xd7,0xf3,0xbf,0xc4,0x74,0x62,0x99,0x0a,0x26,0xe7,0xda, 104 0x14,0xfc,0x67,0x18,0xff,0x1b,0xa2,0x39,0xdf,0x08,0x36,0x94,0x38,0x66,0x9a,0x38, 105 0x44,0x77,0xb3,0x7f,0x6e,0x81,0xe7,0x66,0xc6,0xb8,0x29,0xa9,0xbd,0x0b,0xce,0x44, 106 0x77,0x8b,0x19,0xe3,0x56,0xf6,0x2f,0x95,0x6f,0x63,0xcc,0x6b,0x88,0xf9,0x76,0xfe, 107 0xdf,0xb9,0xcd,0xcc,0xe3,0x0e,0xfc,0x6e,0x37,0xe7,0xc9,0x6c,0xf0,0x59,0x66,0xdc, 108 0xd9,0xd1,0xb8,0x33,0xcd,0x38,0x73,0xd8,0x07,0x35,0x0f,0x73,0xa2,0x3c,0x4c,0x41, 109 0x1e,0x8b,0x3c,0xd7,0xf8,0xde,0xc9,0xba,0x10,0xdf,0x79,0xc8,0x5a,0xcf,0xbb,0xea, 110 0x38,0x47,0xef,0x06,0x17,0xfb,0xf9,0xc8,0xba,0x0e,0xef,0xe1,0xac,0x9b,0xc7,0xbe, 111 0xab,0xf1,0xdc,0x63,0x38,0xef,0xad,0x83,0xf3,0x3e,0x70,0xcd,0xc9,0xfd,0x60,0xfd, 112 0x4d,0xff,0xde,0x6f,0xec,0x1f,0x20,0xcf,0x5a,0xcb,0x87,0xc0,0x1e,0xa4,0x96,0x0b, 113 0x4c,0x2d,0x45,0xf7,0x68,0xda,0x7f,0x61,0xee,0x8f,0xc2,0xf9,0x08,0xff,0x4b,0x4a, 114 0x5e,0x16,0xa0,0x7b,0xdc,0x8c,0xf1,0x04,0x63,0xac,0xf0,0x63,0x94,0xa6,0x7b,0x64, 115 0xb8,0x43,0x3d,0x41,0x3d,0x05,0x7b,0xca,0xe0,0xca,0xf9,0x54,0xc4,0xb9,0x00,0xce, 116 0xd2,0x74,0x0f,0x0d,0xe7,0x8f,0xae,0xa5,0x45,0x60,0xba,0x96,0x16,0x45,0x75,0x1a, 117 0x6b,0xe2,0x79,0x26,0xda,0xcf,0x9f,0xad,0x63,0x3f,0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f1,0x69, 131 0x2d,0x3f,0x06,0xdb,0x68,0xb8,0x3f,0x01,0xaf,0x31,0x67,0xd5,0x67,0xe0,0xd5,0x7c, 132 0xcf,0xd1,0xf5,0xf5,0x39,0x3a,0xc9,0xfd,0x87,0xc8,0x9a,0xb7,0x2f,0x99,0xff,0xd1, 133 0x9e,0x57,0xbe,0xfb,0x7c,0x0d,0x36,0x22,0xfd,0x7e,0x14,0xf6,0xb3,0x6f,0xf8,0x2e, 134 0xd3,0x17,0xbd,0xc6,0xf9,0x2d,0x79,0x5a,0x41,0x9c,0xdf,0x61,0xfb,0x2d,0x63,0x7d, 135 0x01,0x26,0x3d,0xb7,0x81,0x79,0x7e,0x6f,0xc6,0xfe,0x81,0xb1,0x27,0xb0,0x2f,0xfc, 136 0x08,0xa6,0x71,0x6f,0x02,0x53,0xae,0x4d,0x11,0xd7,0x06,0x13,0xcb,0x66,0x6a,0x24, 137 0xf5,0xdf,0x6c,0xea,0x9f,0x61,0xbe,0x13,0x17,0x9b,0xfa,0xb7,0x87,0xa3,0xc4,0x7c, 138 0x77,0xf9,0xbd,0x8e,0xef,0x2e,0x7f,0x80,0x6b,0xdd,0xb7,0x53,0xf7,0x89,0xc6,0x66, 139 0x07,0xb8,0xde,0xa9,0xfe,0x04,0xeb,0x67,0xce,0xb2,0xbf,0xe0,0xfa,0xd3,0xf8,0xfd, 140 0x4d,0x1c,0x7a,0xef,0xda,0xc9,0xf7,0xb3,0x6a,0xec,0x65,0xde,0x3b,0xb1,0xd3,0xff, 141 0x33,0xff,0x01,0x35,0x79,0xaa,0xd4,0x24,0x19,0x00,0x00 142}; 143 144// Generated from: 145// 146// #version 450 core 147// 148// layout(local_size_x = 64, local_size_y = 1, local_size_z = 1)in; 149// 150// layout(set = 0, binding = 0)buffer dest 151// { 152// uint destData[]; 153// }; 154// 155// layout(set = 0, binding = 1)buffer src 156// { 157// uint srcData[]; 158// }; 159// 160// layout(push_constant)uniform PushConstants 161// { 162// 163// uint outputCount; 164// 165// uint componentCount; 166// 167// uint srcOffset; 168// uint destOffset; 169// 170// uint Ns; 171// uint Bs; 172// uint Ss; 173// uint Es; 174// 175// uint Nd; 176// uint Bd; 177// uint Sd; 178// uint Ed; 179// 180// uint srcEmulatedAlpha; 181// 182// bool isSrcHDR; 183// bool isSrcA2BGR10; 184// } params; 185// 186// uint getSourceComponentOffset(uint vertex, uint component) 187// { 188// return vertex * params . Ss + component * params . Bs + params . srcOffset; 189// } 190// 191// uint getDestinationComponentOffset(uint vertex, uint component) 192// { 193// return vertex * params . Sd + component * params . Bd + params . destOffset; 194// } 195// 196// uint getShiftBits(uint offset, uint B) 197// { 198// 199// uint shift =(offset % 4)* 8; 200// 201// return shift; 202// } 203// 204// float loadSourceComponent(uint cd) 205// { 206// 207// uint vertex = cd / params . Nd; 208// uint component = cd % params . Nd; 209// 210// if(component >= params . Ns && component < 3) 211// { 212// return 0; 213// } 214// 215// uint offset = getSourceComponentOffset(vertex, component); 216// uint block = srcData[offset / 4]; 217// 218// uint shiftBits; 219// uint valueBits; 220// uint valueMask; 221// 222// if(params . isSrcHDR) 223// { 224// valueBits = component == 3 ? 2 : 10; 225// valueMask = component == 3 ? 0x03 : 0x3FF; 226// if(params . isSrcA2BGR10) 227// { 228// shiftBits = 10 * component; 229// } 230// else 231// { 232// 233// shiftBits = component == 3 ? 0 :(valueBits *(2 - component)+ 2); 234// } 235// } 236// else 237// { 238// shiftBits = getShiftBits(offset, params . Bs); 239// valueBits = params . Bs * 8; 240// valueMask = valueBits == 32 ? - 1 :(1 << valueBits)- 1; 241// } 242// 243// uint valueAsUint; 244// 245// if(component >= params . Ns && component == 3) 246// { 247// valueAsUint = params . srcEmulatedAlpha; 248// } 249// else 250// { 251// valueAsUint =(block >> shiftBits)& valueMask; 252// } 253// 254// float positiveMax = valueMask; 255// 256// float value = valueAsUint / positiveMax; 257// 258// return value; 259// } 260// 261// float convertComponent(float srcValue) 262// { 263// 264// return srcValue; 265// } 266// 267// uint makeDestinationComponent(uint cd, float value) 268// { 269// 270// uint valueAsUint; 271// 272// if(params . Bd == 2) 273// { 274// 275// uint shift =((cd & 1)== 0)? 0 : 16; 276// valueAsUint = packHalf2x16(vec2(value, 0.0))<< shift; 277// } 278// else 279// { 280// valueAsUint = floatBitsToInt(value); 281// } 282// 283// return valueAsUint; 284// } 285// 286// void storeDestinationComponents(uint valueAsUint) 287// { 288// 289// destData[gl_GlobalInvocationID . x + params . destOffset / 4]= valueAsUint; 290// } 291// 292// void main() 293// { 294// if(gl_GlobalInvocationID . x >= params . outputCount) 295// return; 296// 297// uint valueOut = 0; 298// for(uint i = 0;i < params . Ed;++ i) 299// { 300// uint cd = gl_GlobalInvocationID . x * params . Ed + i; 301// if(cd >= params . componentCount) 302// { 303// break; 304// } 305// 306// float srcValue = loadSourceComponent(cd); 307// float destValue = convertComponent(srcValue); 308// valueOut |= makeDestinationComponent(cd, destValue); 309// } 310// 311// storeDestinationComponents(valueOut); 312// } 313