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.00000003.inc: 9// Pre-generated shader for the ANGLE Vulkan back-end. 10 11#pragma once 12constexpr uint8_t kConvertVertex_comp_00000003[] = { 13 0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x9d,0x56,0x4b,0x6c,0x55,0x55, 14 0x14,0xbd,0xbb,0xef,0xf5,0xb5,0xb6,0x05,0x31,0x50,0xf9,0x14,0x09,0x8a,0x1f,0xb0, 15 0xfc,0x94,0xa7,0x21,0x5a,0x1b,0x1d,0x10,0x1c,0x90,0x20,0x22,0x83,0x56,0x0c,0xb6, 16 0x54,0x9e,0xa0,0x55,0x8c,0x88,0x12,0x6b,0x68,0x04,0x6a,0x99,0x91,0x62,0xa4,0xb1, 17 0x23,0x2c,0x6a,0x6a,0x1b,0xeb,0x40,0x8c,0x50,0x71,0xa0,0x35,0xc6,0x01,0x2a,0xd1, 18 0x12,0x8c,0x7c,0x3a,0x51,0x4c,0x1f,0x6d,0x69,0x22,0x55,0x8a,0x15,0xcf,0xba,0x7b, 19 0x6d,0xbb,0x7d,0x61,0xe4,0x4b,0x4e,0xee,0xdb,0x6b,0xff,0xd6,0xde,0x67,0xdf,0x73, 20 0x4f,0x22,0x6f,0x5e,0x41,0x14,0x49,0x54,0x14,0x15,0x46,0x63,0x12,0xc5,0xbf,0x1b, 21 0xa2,0xbc,0x08,0x7f,0x8b,0xa3,0x54,0xfc,0x5c,0xb9,0x6a,0xed,0xaa,0xc5,0x2f,0x6e, 22 0xab,0x5b,0x9c,0xbe,0x67,0x29,0xf4,0x93,0xa3,0x44,0x6c,0x07,0xdd,0xf5,0xc1,0x26, 23 0x3f,0x3c,0x93,0x61,0xd5,0xd7,0x6c,0x7e,0x0e,0xf8,0xc5,0xb0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39,0x0a,0x3f,0xc4,0xd9,0xca,0x7b,0xd1,0x37,0xa2,0x7a, 91 0xab,0xe1,0x5b,0xd6,0x70,0xdc,0xd5,0xf0,0x9d,0x28,0x6e,0x3d,0xfb,0x5e,0x14,0x6b, 92 0xe1,0x9c,0xf4,0xbb,0xfe,0x40,0x77,0x22,0xac,0xd3,0xe4,0x71,0xc2,0xd5,0xf5,0x03, 93 0xbf,0x29,0x7d,0x6e,0xe6,0x7e,0x14,0xc5,0xab,0xdd,0x59,0xd3,0x27,0x8a,0x67,0x78, 94 0x8f,0xb3,0x19,0x38,0x29,0xaa,0x7b,0x24,0xf8,0xe2,0x0e,0x77,0x4a,0x94,0xff,0x99, 95 0xf8,0x6e,0x98,0x8a,0x6d,0x7e,0x12,0xbd,0x86,0xdc,0x47,0x7d,0x2f,0x73,0xff,0x2c, 96 0xaa,0x3b,0xc9,0x3e,0xf5,0x93,0xdf,0x69,0xce,0x18,0xf2,0x9e,0x65,0x3c,0xcb,0x77, 97 0x4e,0x14,0xf3,0xf6,0xfd,0xae,0xaf,0xa3,0xa2,0x71,0x51,0xe3,0x39,0xd6,0xfc,0x15, 98 0xf3,0xe1,0xde,0x82,0x7b,0xcc,0x28,0xfd,0x0b,0xe8,0x5f,0xe0,0xce,0x89,0x45,0xbc, 99 0x37,0xd8,0x3b,0x61,0x77,0xa1,0x94,0xdb,0x8f,0x5f,0xb8,0x1f,0x0d,0x6e,0x3f,0x7e, 100 0x15,0xc5,0xed,0x3b,0x72,0x5e,0x14,0xab,0x88,0x26,0x62,0xff,0xc6,0xbb,0xca,0x79, 101 0x99,0xf8,0xb6,0x0c,0x88,0xde,0x5f,0x33,0xd4,0x57,0xe2,0xee,0x4b,0x9e,0xfe,0x6e, 102 0x86,0xe7,0x78,0xe8,0xe2,0xf2,0xb0,0xfe,0x01,0x9b,0x7c,0xb7,0xb1,0x2c,0x10,0x00, 103 0x00 104}; 105 106// Generated from: 107// 108// #version 450 core 109// 110// layout(local_size_x = 64, local_size_y = 1, local_size_z = 1)in; 111// 112// layout(set = 0, binding = 0)buffer dst 113// { 114// uint destData[]; 115// }; 116// 117// layout(set = 0, binding = 1)buffer src 118// { 119// uint srcData[]; 120// }; 121// 122// layout(push_constant)uniform PushConstants 123// { 124// 125// uint outputCount; 126// 127// uint componentCount; 128// 129// uint srcOffset; 130// uint dstOffset; 131// 132// uint Ns; 133// uint Bs; 134// uint Ss; 135// uint Es; 136// 137// uint Nd; 138// uint Bd; 139// uint Sd; 140// uint Ed; 141// 142// uint srcEmulatedAlpha; 143// 144// bool isSrcHDR; 145// bool isSrcA2BGR10; 146// } params; 147// 148// uint getSourceComponentOffset(uint vertex, uint component) 149// { 150// return vertex * params . Ss + component * params . Bs + params . srcOffset; 151// } 152// 153// uint getDestinationComponentOffset(uint vertex, uint component) 154// { 155// return vertex * params . Sd + component * params . Bd + params . dstOffset; 156// } 157// 158// uint getShiftBits(uint offset, uint B) 159// { 160// 161// uint shift =(offset % 4)* 8; 162// 163// return shift; 164// } 165// 166// uint loadSourceComponent(uint cd) 167// { 168// 169// uint vertex = cd / params . Nd; 170// uint component = cd % params . Nd; 171// 172// if(component >= params . Ns && component < 3) 173// { 174// return 0; 175// } 176// 177// uint offset = getSourceComponentOffset(vertex, component); 178// uint block = srcData[offset / 4]; 179// 180// uint shiftBits; 181// uint valueBits; 182// uint valueMask; 183// 184// if(params . isSrcHDR) 185// { 186// valueBits = component == 3 ? 2 : 10; 187// valueMask = component == 3 ? 0x03 : 0x3FF; 188// if(params . isSrcA2BGR10) 189// { 190// shiftBits = 10 * component; 191// } 192// else 193// { 194// 195// shiftBits = component == 3 ? 0 :(valueBits *(2 - component)+ 2); 196// } 197// } 198// else 199// { 200// shiftBits = getShiftBits(offset, params . Bs); 201// valueBits = params . Bs * 8; 202// valueMask = valueBits == 32 ? - 1 :(1 << valueBits)- 1; 203// } 204// 205// uint valueAsUint; 206// 207// if(component >= params . Ns && component == 3) 208// { 209// valueAsUint = params . srcEmulatedAlpha; 210// } 211// else 212// { 213// valueAsUint =(block >> shiftBits)& valueMask; 214// } 215// 216// uint value = valueAsUint; 217// 218// return value; 219// } 220// 221// float convertComponent(uint srcValue) 222// { 223// 224// return srcValue; 225// } 226// 227// uint makeDestinationComponent(uint cd, float value) 228// { 229// 230// uint valueAsUint; 231// 232// if(params . Bd == 2) 233// { 234// 235// uint shift =((cd & 1)== 0)? 0 : 16; 236// valueAsUint = packHalf2x16(vec2(value, 0.0))<< shift; 237// } 238// else 239// { 240// valueAsUint = floatBitsToInt(value); 241// } 242// 243// return valueAsUint; 244// } 245// 246// void storeDestinationComponents(uint valueAsUint) 247// { 248// 249// destData[gl_GlobalInvocationID . x + params . dstOffset / 4]= valueAsUint; 250// } 251// 252// void main() 253// { 254// if(gl_GlobalInvocationID . x >= params . outputCount) 255// return; 256// 257// uint valueOut = 0; 258// for(uint i = 0;i < params . Ed;++ i) 259// { 260// uint cd = gl_GlobalInvocationID . x * params . Ed + i; 261// if(cd >= params . componentCount) 262// { 263// break; 264// } 265// 266// uint srcValue = loadSourceComponent(cd); 267// float destValue = convertComponent(srcValue); 268// valueOut |= makeDestinationComponent(cd, destValue); 269// } 270// 271// storeDestinationComponents(valueOut); 272// } 273