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/ImageCopyFloat.frag.00000000.inc: 9// Pre-generated shader for the ANGLE Vulkan back-end. 10 11#pragma once 12constexpr uint8_t kImageCopyFloat_frag_00000000[] = { 13 0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x85,0x58,0x7b,0x68,0x97,0x65, 14 0x14,0xfe,0xce,0xbb,0xab,0x5a,0x6e,0xe6,0x9c,0x97,0x4a,0xd4,0x65,0x94,0x5b,0xa6, 15 0x69,0x66,0xea,0x9a,0xce,0x36,0x03,0x35,0x6b,0xb6,0x34,0x24,0x4c,0xa7,0x79,0xcb, 16 0xad,0x4c,0x2d,0xa2,0x42,0xad,0xe8,0x66,0x42,0x21,0x81,0x66,0x81,0x56,0x16,0x1a, 17 0x36,0xa4,0x44,0x4a,0xd4,0x7f,0xec,0x82,0x51,0x19,0x04,0x52,0x29,0xd9,0x24,0x50, 18 0x8a,0xa2,0xd2,0x4a,0x2d,0x3b,0xcf,0xce,0x73,0xdc,0xf1,0x47,0xd1,0xe0,0xdd,0xef, 19 0xf7,0x3e,0xe7,0xf6,0x9c,0xe7,0xbd,0x7c,0xdf,0x96,0x97,0x2a,0x8a,0xb2,0x4c,0xb2, 20 0xce,0x59,0x71,0xb6,0x38,0x65,0xed,0x3f,0xdd,0xb2,0xa4,0x88,0x7d,0x5e,0xa3,0x9f, 21 0x5d,0xb2,0xc2,0xf6,0xf9,0x84,0x49,0x53,0x27,0x0d,0xbe,0x7f,0xe9,0x9c,0xc1,0xc3, 22 0xaf,0x1d,0x02,0xbf,0xae,0x59,0x5e,0xbb,0x3f,0x6c,0x25,0x59,0x51,0x96,0xaf,0x9f, 23 0x18,0x8b,0x67,0x2d,0x68,0x06,0x7e,0x5a,0x47,0xb9,0x1a,0x4b,0xd5,0x0f,0xb8,0x16, 24 0xca,0x6e,0xca,0x0a,0xb2,0xf1,0x56,0x26,0xab,0xe0,0xa7,0x63,0x42,0xac,0x38,0x60, 25 0x89,0x58,0x69,0xc0,0xf2,0x88,0x95,0x05,0x2c,0x9f,0x58,0xaf,0x80,0x15,0x10,0xbb, 26 0x24,0x60,0x85,0xc4,0xfa,0x05,0xac,0x88,0xd8,0x65,0x01,0x2b,0x26,0x76,0x45,0xc0, 27 0x3a,0x11,0xab,0x0a,0x58,0x67,0x62,0x43,0x02,0xd6,0x85,0xd8,0xf0,0x80,0x5d,0x40, 28 0x6c,0x64,0xc0,0x2e,0x24,0x36,0x26,0x60,0x5d,0x89,0x8d,0x85,0xde,0xda,0xa9,0x6b, 29 0x30,0x41,0x3b,0x3c,0xcd,0xdc,0x25,0x9c,0x17,0xa8,0x60,0x03,0xa8,0xa1,0xcf,0xfb, 30 0x87,0x39,0xb4,0xef,0xcb,0x79,0x77,0xcd,0x82,0x3c,0xfd,0x35,0x67,0x1e,0x73,0x96, 31 0xeb,0xb7,0x42,0x6a,0xd1,0x43,0xfd,0x4b,0xf8,0x1d,0xeb,0xd0,0x53,0xe7,0xa5,0xac, 32 0x95,0x38,0x2f,0xa7,0x7e,0xd0,0xba,0x52,0x7f,0xe3,0xfb,0xa5,0xd0,0x77,0xf0,0xe4, 33 0xd1,0x65,0xea,0xd5,0x37,0xe0,0xe8,0xa1,0x61,0xe7,0xcd,0xe3,0x7c,0x0e,0x1d,0x1b, 34 0x1b,0xbf,0xbc,0xc1,0xe7,0x83,0x74,0x54,0x77,0x7e,0xb2,0xc6,0xe7,0xd0,0x74,0xdb, 35 0x84,0x59,0xd5,0x3e,0x1f,0xaa,0xe3,0xfb,0x6d,0x03,0xcf,0xcd,0xa1,0xd1,0xfa,0x75, 36 0xbd,0xc7,0x82,0x67,0x2d,0x79,0xe2,0xa7,0xaf,0xee,0xd2,0xf1,0xdc,0x1f,0xce,0xd7, 37 0x47,0xed,0xff,0x0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0x4e,0x33,0x60,0x5f,0x55,0x8a,0xed, 51 0xbd,0x7a,0xe6,0x83,0x4f,0x95,0x18,0xbe,0x4a,0x7d,0x30,0xbf,0x4a,0x2c,0x0e,0x38, 52 0xe2,0xb0,0xdf,0x06,0x33,0x6e,0x22,0xe3,0xb0,0xe7,0xae,0x16,0xc3,0xb7,0xaa,0x0f, 53 0xce,0xe7,0x10,0x31,0x0c,0x7b,0xf1,0x77,0x65,0x3e,0x82,0x9a,0x9c,0x52,0x7f,0xd8, 54 0x86,0xea,0x00,0x86,0x7e,0xf0,0xfd,0x56,0x8d,0xc3,0xda,0x0d,0x13,0xab,0x89,0x9f, 55 0x47,0xb9,0x9e,0xc3,0xc5,0xf0,0x06,0x55,0x07,0x9c,0x86,0x24,0xc3,0xdc,0xef,0x4f, 56 0xcd,0xe1,0xb9,0xf0,0x79,0x42,0xb5,0x80,0xdf,0x6d,0xc9,0x7c,0x0a,0x18,0x33,0x34, 57 0xf4,0x70,0x1d,0x7b,0x98,0x1e,0x7a,0x18,0x29,0x86,0x7b,0x0f,0xd7,0x8b,0x61,0xde, 58 0x43,0x4d,0xe8,0x01,0xb6,0x51,0x3a,0x6a,0x58,0x77,0x54,0xe8,0x61,0x8c,0x58,0x6d, 59 0x09,0x3d,0x54,0x8b,0xe1,0xde,0xc3,0xb0,0x64,0x98,0xfb,0xa1,0x07,0xcf,0x55,0x13, 60 0x7a,0x68,0x4c,0xe6,0x83,0xbe,0x10,0x33,0x2a,0xf4,0x30,0x96,0x3d,0x34,0x85,0x1e, 61 0xc6,0x89,0xe1,0xde,0x43,0xad,0x18,0xe6,0x3d,0xd4,0x87,0x1e,0x60,0x1b,0xaf,0xa3, 62 0x9e,0x75,0xc7,0x8b,0xed,0x23,0xd4,0xad,0x13,0xab,0xdd,0x98,0x3a,0xf6,0x3e,0x38, 63 0xba,0x6f,0x7d,0xe0,0x78,0x3b,0xfd,0xc0,0xbb,0x8e,0x39,0xc1,0x07,0x67,0xa2,0x90, 64 0xe7,0xc1,0xf7,0x5c,0x11,0x39,0xb7,0x85,0x3d,0x57,0x2c,0x86,0xaf,0xe0,0x9e,0xeb, 65 0x2c,0x86,0x21,0x6f,0x0b,0xef,0x8c,0x2e,0x62,0xf8,0x1c,0x9d,0xe3,0xec,0x5d,0xc8, 66 0xdc,0xf3,0x18,0xd3,0x95,0x18,0xf2,0x7a,0x4c,0x89,0x18,0xfe,0x94,0xfa,0x60,0x5e, 67 0x2a,0x96,0xa7,0x84,0x7c,0x70,0xb7,0x74,0x23,0x9f,0x23,0xe4,0x83,0xb5,0xba,0x48, 68 0x0c,0x6f,0xe1,0x79,0xec,0x2e,0x86,0x4d,0xd3,0x7e,0x71,0xe6,0xca,0x58,0x1b,0xf9, 69 0x84,0x76,0x5f,0x93,0x06,0xe6,0x6b,0x0e,0x6b,0x32,0x55,0x0c,0xf7,0x35,0xb9,0x4d, 70 0x0c,0xf3,0x35,0x99,0x1d,0xd6,0x04,0xb6,0x46,0x1d,0xb3,0xa9,0x73,0x23,0xf7,0x15, 71 0x78,0x4c,0x13,0xab,0x9d,0x31,0xee,0x0b,0x7e,0x3f,0xad,0xdf,0x91,0xeb,0x03,0xc6, 72 0xe0,0x73,0x17,0x6b,0x7d,0x24,0x16,0x77,0x29,0x63,0x0e,0x84,0x5a,0xb0,0x7d,0xac, 73 0xe3,0x13,0xc6,0xe1,0xf3,0x02,0xed,0x11,0xb5,0x3e,0x65,0x6f,0x7d,0x58,0x17,0xcf, 74 0xd5,0x27,0xc8,0xe3,0x33,0x31,0x3b,0x9e,0xad,0x8f,0x11,0xfb,0x5c,0x0c,0xaf,0xe2, 75 0x3e,0xf9,0x82,0x39,0x91,0xdf,0xe3,0xf6,0x93,0x4b,0x45,0x8e,0x0f,0x38,0x9d,0xd5, 76 0x6a,0x7f,0x10,0x3b,0x41,0x0e,0xd3,0x92,0xe5,0x05,0xaf,0xfd,0xe4,0x8a,0xf3,0x83, 77 0x35,0x18,0x91,0xcc,0xee,0x7a,0xb8,0x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0x73,0x26,0xdc,0x19,0x7f,0x8b,0xc5,0x0d,0x65,0x4c,0x51,0xea,0xa8,0x05,0xdb,0x59, 105 0xdc,0x41,0xc9,0xe2,0xf0,0xb9,0x92,0xb5,0xf2,0x93,0xc5,0x55,0x85,0xbb,0xa2,0x20, 106 0x19,0x8e,0x77,0x65,0xbf,0x5b,0x0a,0x53,0xc7,0xdd,0x02,0xfb,0x18,0xea,0x56,0xcc, 107 0x9c,0x67,0xc3,0x9d,0x21,0xcc,0x89,0x77,0xeb,0xe8,0x03,0x4e,0x7e,0x67,0x00,0xf3, 108 0x3b,0x63,0x56,0xb2,0xfc,0xe0,0x85,0xd8,0xb3,0xe1,0xce,0xa8,0x4d,0x66,0x77,0x3d, 109 0x5c,0xa3,0x17,0xa8,0x91,0x3f,0x7b,0xfa,0xe4,0x68,0xd4,0x95,0x35,0xf1,0xe9,0x1a, 110 0x95,0x26,0x8b,0x73,0x8d,0x7a,0x07,0x8d,0x60,0xeb,0x86,0x7b,0x87,0x71,0x65,0x41, 111 0xa3,0x72,0xc6,0x45,0x8d,0x7a,0x26,0xc3,0xa3,0x46,0xbd,0x82,0x46,0x3d,0x83,0x46, 112 0x7d,0x98,0x13,0xf9,0x3d,0xbe,0x3b,0x73,0xba,0x46,0xee,0xd3,0x3b,0x68,0xd4,0x27, 113 0x68,0xd4,0x94,0x2c,0x3f,0x78,0x75,0x27,0x57,0xd7,0xa8,0x2e,0x99,0xbd,0x36,0xe7, 114 0xd9,0xf3,0x22,0x35,0xf2,0x67,0x4f,0x55,0x8e,0x46,0xfd,0x58,0xb3,0x5f,0xd0,0x68, 115 0x40,0xb2,0x38,0xd7,0xa8,0x32,0x68,0x04,0x5b,0x85,0x8e,0xcb,0x19,0x77,0x79,0xd0, 116 0xe8,0x0a,0xc6,0x45,0x8d,0xae,0x4c,0x86,0x47,0x8d,0x06,0x05,0x8d,0xae,0x0c,0x1a, 117 0x55,0x31,0x67,0x45,0xd0,0x68,0x20,0x73,0xba,0x46,0xee,0x53,0x19,0x34,0xaa,0x0a, 118 0x1a,0xcd,0x4d,0x96,0x1f,0xbc,0x06,0x92,0xab,0x6b,0x74,0x53,0x32,0x7b,0x5d,0x78, 119 0xf6,0xf8,0xd9,0x5b,0x17,0xce,0xfc,0x3c,0xee,0x35,0xdc,0x03,0x88,0x41,0x7e,0x3f, 120 0xf3,0xeb,0x79,0xe6,0xf7,0x85,0x33,0xff,0x92,0x18,0xee,0x67,0x7e,0x83,0x18,0xe6, 121 0x67,0x7e,0x6f,0x38,0xf3,0xb0,0xbd,0xac,0x63,0x13,0xeb,0x6e,0x0a,0xf7,0xc9,0xab, 122 0xcc,0x7d,0x20,0xe4,0x7e,0x4d,0x0c,0xf7,0xdc,0xaf,0x8b,0x61,0x9e,0x7b,0x4f,0xc8, 123 0x0d,0xdb,0x66,0x1d,0x5b,0x98,0x7b,0x4b,0x78,0xef,0xde,0xca,0xdc,0xdf,0x84,0xf7, 124 0xee,0xb7,0xc4,0xf0,0x0f,0xf9,0x77,0xd4,0x36,0x31,0x0c,0xef,0xe6,0x5e,0xef,0x6d, 125 0x31,0xbc,0x8d,0xf5,0xb6,0x87,0x7a,0xb0,0xb5,0xea,0xd8,0xce,0x7a,0xad,0xe1,0xcc, 126 0x4e,0x4e,0xf6,0x4c,0x9b,0x17,0xfe,0xde,0x72,0xbf,0xed,0x41,0xeb,0xf9,0xc9,0x7c, 127 0xc0,0x15,0x31,0xad,0x81,0xcf,0x3b,0xe4,0x73,0x2c,0xf0,0x79,0x57,0x0c,0x77,0x3e, 128 0x3b,0x03,0x1f,0xd8,0x76,0xe8,0xd8,0xc9,0x3a,0x3b,0x02,0x9f,0x29,0xe4,0x33,0x3f, 129 0xac,0xbd,0xfb,0xed,0x0c,0x7c,0x16,0x24,0xf3,0x01,0x47,0xc4,0xec,0x08,0x7c,0xde, 130 0x23,0x9f,0xb5,0x81,0xcf,0xfb,0x62,0xb8,0xf3,0xd9,0x1d,0xf8,0xc0,0xb6,0x4b,0xc7, 131 0x6e,0xd6,0xd9,0x15,0xf8,0xdc,0x9a,0xec,0xff,0x24,0x0b,0x52,0xc7,0xf3,0xc7,0xfd, 132 0x76,0x07,0x3e,0xf7,0x24,0xf3,0x01,0x47,0xc4,0xec,0xe2,0x73,0x72,0x0f,0x7d,0x37, 133 0x87,0x67,0xc6,0x9b,0x62,0x5a,0x22,0x9f,0xd7,0x99,0x98,0x3a,0x70,0xff,0x9b,0xd2, 134 0x63,0xf7,0x84,0x3a,0x8b,0x92,0xd5,0x42,0x6d,0xc4,0x6c,0x66,0x9d,0xbd,0xf4,0x7d, 135 0x39,0x3c,0x47,0x37,0x32,0x1f,0x86,0xff,0xff,0x37,0x85,0xe7,0xa8,0xc7,0xec,0x0d, 136 0xf9,0x17,0x26,0xab,0x81,0x9a,0x1b,0x79,0x06,0x6e,0xd0,0x08,0xfc,0x6f,0x06,0xb6, 137 0xbf,0x74,0x97,0x8c,0xd4,0xf1,0x0f,0x32,0x90,0xe5,0x21,0xb8,0x16,0x00,0x00 138}; 139 140// Generated from: 141// 142// #version 450 core 143// 144// #extension GL_GOOGLE_include_directive : require 145// #extension GL_EXT_samplerless_texture_functions : require 146// 147// layout(set = 0, binding = 0)uniform sampler2D src; 148// layout(location = 0)out vec4 dst; 149// 150// #line 1 "shaders/src/ImageCopy.inc" 151// 152// layout(push_constant)uniform PushConstants { 153// 154// ivec2 srcOffset; 155// ivec2 dstOffset; 156// int srcMip; 157// int srcLayer; 158// int srcSampleCount; 159// 160// bool flipX; 161// bool flipY; 162// 163// bool premultiplyAlpha; 164// bool unmultiplyAlpha; 165// 166// bool dstHasLuminance; 167// bool dstIsAlpha; 168// 169// bool srcIsSRGB; 170// bool dstIsSRGB; 171// 172// int dstDefaultChannelsMask; 173// bool rotateXY; 174// } params; 175// 176// float linearToSRGB(float linear) 177// { 178// 179// if(linear <= 0.0031308) 180// { 181// return linear * 12.92; 182// } 183// else 184// { 185// return pow(linear,(1.0f / 2.4f))* 1.055f - 0.055f; 186// } 187// } 188// 189// float sRGBToLinear(float sRGB) 190// { 191// 192// if(sRGB <= 0.04045) 193// { 194// return sRGB / 12.92; 195// } 196// else 197// { 198// return pow((sRGB + 0.055f)/ 1.055f, 2.4f); 199// } 200// } 201// 202// ivec2 transformImageCoords(ivec2 glFragCoords) 203// { 204// ivec2 imageCoordsOut = glFragCoords - params . dstOffset; 205// 206// if(params . flipX) 207// { 208// imageCoordsOut . x = - imageCoordsOut . x; 209// } 210// if(params . flipY) 211// { 212// imageCoordsOut . y = - imageCoordsOut . y; 213// } 214// if(params . rotateXY) 215// { 216// imageCoordsOut . xy = imageCoordsOut . yx; 217// } 218// 219// return imageCoordsOut; 220// } 221// 222// vec4 transformSrcValue(vec4 srcValue) 223// { 224// 225// if(params . srcIsSRGB) 226// { 227// 228// srcValue . r = linearToSRGB(srcValue . r); 229// srcValue . g = linearToSRGB(srcValue . g); 230// srcValue . b = linearToSRGB(srcValue . b); 231// } 232// 233// if(params . premultiplyAlpha) 234// { 235// srcValue . rgb *= srcValue . a; 236// } 237// else if(params . unmultiplyAlpha && srcValue . a > 0) 238// { 239// srcValue . rgb /= srcValue . a; 240// } 241// 242// vec4 dstValue = vec4(srcValue); 243// 244// if(params . dstIsSRGB) 245// { 246// 247// dstValue . r = sRGBToLinear(dstValue . r); 248// dstValue . g = sRGBToLinear(dstValue . g); 249// dstValue . b = sRGBToLinear(dstValue . b); 250// } 251// 252// if(params . dstHasLuminance) 253// { 254// dstValue . rg = dstValue . ra; 255// } 256// else if(params . dstIsAlpha) 257// { 258// dstValue . r = dstValue . a; 259// } 260// else 261// { 262// int defaultChannelsMask = params . dstDefaultChannelsMask; 263// if((defaultChannelsMask & 2)!= 0) 264// { 265// dstValue . g = 0; 266// } 267// if((defaultChannelsMask & 4)!= 0) 268// { 269// dstValue . b = 0; 270// } 271// if((defaultChannelsMask & 8)!= 0) 272// { 273// dstValue . a = 1; 274// } 275// } 276// 277// return dstValue; 278// } 279// #line 30 "shaders/src/ImageCopyFloat.frag" 280// 281// void main() 282// { 283// ivec2 srcSubImageCoords = transformImageCoords(ivec2(gl_FragCoord . xy)); 284// 285// vec4 srcValue = texture( 286// src, vec2(params . srcOffset + srcSubImageCoords)/ textureSize(src, 0), params . srcMip); 287// 288// dst = transformSrcValue(srcValue); 289// } 290