// 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/ImageCopyFloat.frag.00000000.inc: // Pre-generated shader for the ANGLE Vulkan back-end. #pragma once constexpr uint8_t kImageCopyFloat_frag_00000000[] = { 0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x85,0x58,0x7d,0x6c,0xd5,0xe5, 0x15,0xbe,0xe7,0x5c,0xa0,0x40,0x99,0x2d,0x1f,0x05,0xb1,0xb6,0x81,0x15,0x64,0x99, 0xc8,0x50,0xbe,0xda,0x94,0x52,0xa8,0x60,0xdd,0x80,0xa2,0x6e,0x66,0x86,0x69,0x08, 0xc1,0x48,0x60,0x5a,0x08,0xce,0x10,0xf9,0xa8,0xfd,0x00,0xa7,0x04,0x8d,0xad,0x1f, 0xe8,0x92,0x2d,0x2e,0x61,0xd3,0x64,0x0b,0x6e,0x23,0xc6,0x8f,0x49,0xc8,0x46,0x88, 0x23,0xc0,0xfe,0x59,0x5c,0xb6,0x6c,0xce,0x64,0x89,0xac,0x99,0x19,0xca,0x1f,0x06, 0x61,0x23,0xdd,0x79,0xee,0x79,0x8e,0xf7,0x70,0xe3,0xb2,0x9b,0xbc,0xfd,0xfd,0xde, 0xe7,0x9c,0xf3,0x9c,0x73,0x9e,0xdf,0xfb,0xbe,0xbf,0x7b,0x5b,0xd4,0xa6,0xaa,0x42, 0x41,0x0a,0xd5,0x85,0xb1,0x85,0x43,0x5a,0x28,0x7d,0x26,0x16,0xd4,0x10,0xbf,0xde, 0x62,0xd7,0xea,0xc2,0x98,0xd2,0xbc,0x73,0xcd,0x37,0xd7,0xcc,0x7b,0xf8,0x7b,0xf7, 0xcf,0x5b,0xb8,0x68,0x3e,0xfc,0xae,0x29,0x14,0x4b,0xfe,0xb0,0xd5,0x14,0xaa,0x0a, 0xa3,0xec,0x8a,0xf1,0xd0,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,0x64,0xaa,0x07,0xb6,0x13, 0x36,0x4e,0x32,0xcf,0x89,0x54,0xcf,0x76,0xd6,0x33,0x94,0x9e,0x7d,0xf8,0x9d,0x4c, 0xf5,0x3c,0xab,0xee,0x83,0x1a,0x11,0x73,0x22,0xd5,0xf3,0x2e,0xeb,0x79,0x31,0xd5, 0xf3,0x3b,0x71,0x3c,0xea,0x39,0x9d,0xea,0x81,0xed,0x94,0x8d,0xd3,0xcc,0x73,0x2a, 0xd5,0xb3,0x43,0xfd,0xff,0x59,0xcf,0xf2,0xbd,0x89,0x7a,0xc2,0xef,0x74,0xaa,0xe7, 0x05,0x75,0x1f,0xd4,0x88,0x98,0x53,0x7c,0x0f,0x9f,0xa1,0xef,0xd1,0xf4,0xce,0x78, 0x5d,0x5c,0xcb,0x62,0x7a,0xcf,0x3d,0xa2,0x65,0x3c,0x7e,0x37,0x47,0xec,0x99,0x94, 0xe7,0x79,0xf5,0x5c,0xc8,0x8d,0x98,0xa3,0xcc,0x73,0x96,0xbe,0xaf,0xa6,0x3c,0x3f, 0x4f,0x7c,0x91,0x67,0xa7,0x5e,0x8d,0x87,0xef,0x91,0x2f,0xa8,0xe9,0x51,0x75,0x7c, 0x67,0x5a,0x1b,0x91,0xe7,0x6c,0xaa,0xe9,0x39,0xf5,0xba,0x50,0x27,0x62,0x50,0xc3, 0x32,0x63,0xc2,0xff,0xd4,0x60,0xbb,0x62,0xd1,0xcd,0x36,0xfe,0x0b,0xd7,0x2a,0x95, 0x12,0xd4,0x17,0x00,0x00 }; // Generated from: // // #version 450 core // // #extension GL_GOOGLE_include_directive : require // #extension GL_EXT_samplerless_texture_functions : require // // layout(set = 0, binding = 0) uniform sampler2D src; // layout(location = 0) out vec4 dst; // // #line 1 "shaders/src/ImageCopy.inc" // // layout(push_constant) uniform PushConstants { // // ivec2 srcOffset; // ivec2 dstOffset; // int srcMip; // int srcLayer; // int srcSampleCount; // // bool flipX; // bool flipY; // // bool premultiplyAlpha; // bool unmultiplyAlpha; // // bool dstHasLuminance; // bool dstIsAlpha; // // bool srcIsSRGB; // bool dstIsSRGB; // // int dstDefaultChannelsMask; // bool rotateXY; // } params; // // float linearToSRGB(float linear) // { // // if (linear <= 0.0031308) // { // return linear * 12.92; // } // else // { // return pow(linear, (1.0f / 2.4f)) * 1.055f - 0.055f; // } // } // // float sRGBToLinear(float sRGB) // { // // if (sRGB <= 0.04045) // { // return sRGB / 12.92; // } // else // { // return pow( (sRGB + 0.055f) / 1.055f, 2.4f); // } // } // // ivec2 transformImageCoords(ivec2 glFragCoords) // { // ivec2 imageCoordsOut = glFragCoords - params.dstOffset; // // if (params.flipX) // { // imageCoordsOut.x = - imageCoordsOut.x; // } // if (params.flipY) // { // imageCoordsOut.y = - imageCoordsOut.y; // } // if (params.rotateXY) // { // imageCoordsOut.xy = imageCoordsOut.yx; // } // // return imageCoordsOut; // } // // vec4 transformSrcValue(vec4 srcValue) // { // // if (params.srcIsSRGB) // { // // srcValue.r = linearToSRGB(srcValue.r); // srcValue.g = linearToSRGB(srcValue.g); // srcValue.b = linearToSRGB(srcValue.b); // } // // if (params.premultiplyAlpha) // { // srcValue.rgb *= srcValue.a; // } // else if (params.unmultiplyAlpha && srcValue.a > 0) // { // srcValue.rgb /= srcValue.a; // } // // vec4 dstValue = vec4(srcValue); // // if (params.dstIsSRGB) // { // // dstValue.r = sRGBToLinear(dstValue.r); // dstValue.g = sRGBToLinear(dstValue.g); // dstValue.b = sRGBToLinear(dstValue.b); // } // // if (params.dstHasLuminance) // { // dstValue.rg = dstValue.ra; // } // else if (params.dstIsAlpha) // { // dstValue.r = dstValue.a; // } // else // { // int defaultChannelsMask = params.dstDefaultChannelsMask; // if ( (defaultChannelsMask & 2) != 0) // { // dstValue.g = 0; // } // if ( (defaultChannelsMask & 4) != 0) // { // dstValue.b = 0; // } // if ( (defaultChannelsMask & 8) != 0) // { // dstValue.a = 1; // } // } // // return dstValue; // } // #line 30 "shaders/src/ImageCopyFloat.frag" // // void main() // { // ivec2 srcSubImageCoords = transformImageCoords(ivec2(gl_FragCoord.xy)); // // vec4 srcValue = texture( // src, vec2( (params.srcOffset + srcSubImageCoords) + vec2(0.5)) / textureSize(src, 0), params.srcMip); // // dst = transformSrcValue(srcValue); // }