// 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.00000001.inc: // Pre-generated shader for the ANGLE Vulkan back-end. #pragma once constexpr uint8_t kImageCopyFloat_frag_00000001[] = { 0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x85,0x58,0x59,0x6c,0x55,0x55, 0x14,0xbd,0xfb,0xb4,0xcc,0x43,0x5b,0x81,0x22,0x6a,0xb1,0xb4,0x80,0x20,0x84,0x29, 0xa0,0x48,0x29,0x94,0x62,0x29,0xa4,0xc8,0x24,0x8d,0xc4,0x18,0x15,0xa8,0xa8,0x44, 0x8b,0x4c,0x32,0x08,0x08,0x02,0xa2,0x11,0x04,0x12,0x3e,0x64,0xd0,0xc4,0x0f,0x23, 0x0a,0x21,0xa0,0x12,0x05,0x07,0x42,0xb4,0x21,0xda,0x00,0xe1,0x83,0x68,0x10,0x54, 0x42,0x22,0x81,0x40,0x54,0x10,0x65,0xc6,0xb3,0xde,0x5e,0x9b,0xb7,0x79,0xd1,0xd8, 0xe4,0xf4,0xbe,0xb3,0xf6,0xb4,0xf6,0xba,0xe7,0x9c,0x7b,0xdf,0xcb,0x0a,0xc5,0x8d, 0x92,0x44,0x92,0xa6,0x49,0xe3,0x64,0x51,0x48,0x52,0x7f,0x79,0x49,0x88,0x48,0x92, 0x34,0x4b,0x1a,0xa6,0xae,0x95,0x23,0x1f,0x1e,0xd9,0x63,0xe6,0xac,0x9a,0x1e,0x7d, 0xfb,0xf5,0x82,0xbd,0x65,0x92,0x95,0xf2,0x83,0x2d,0x27,0x69,0x94,0x64,0xc7,0x2b, 0xc6,0xf3,0x13,0x9f,0xad,0x05,0x7e,0x25,0x8e,0x4e,0xd1,0x98,0x1b,0xfd,0x80,0xc7, 0x02,0xc9,0xf0,0xa4,0x41,0x32,0x54,0xd3,0x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,0xb3,0xdf,0xf1,0x81, 0xad,0x3e,0x8e,0xfd,0xac,0x53,0xef,0xf8,0x3c,0x19,0xf4,0xb7,0x9c,0xf9,0x21,0xfd, 0xfc,0x31,0xbf,0xfd,0x8e,0xcf,0xc2,0xa0,0x3e,0xe0,0x88,0x98,0x7a,0x3e,0x27,0x0f, 0xd0,0x77,0xa7,0x7b,0x66,0x7c,0x2a,0xaa,0x25,0xf2,0x59,0x9d,0x47,0x43,0x1a,0xb7, 0xef,0xb9,0x16,0x7b,0xc0,0xd5,0x59,0x10,0xb4,0x16,0x6a,0x23,0x66,0x27,0xeb,0x1c, 0xa4,0xef,0x56,0xf7,0x1c,0xdd,0xce,0x7c,0x18,0xf6,0x1b,0x75,0x70,0xcf,0x51,0x8b, 0x39,0xe8,0xf2,0xbf,0x14,0xb4,0x06,0x6a,0x6e,0xe7,0x1e,0x18,0x14,0x23,0xf0,0x7b, 0x11,0x6c,0xd7,0xe2,0x2a,0xe9,0x1f,0xc7,0x3f,0x43,0xc7,0x62,0x51,0x54,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 texture2DMS 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 = vec4(0); // for(int i = 0;i < params . srcSampleCount;i ++) // { // srcValue += texelFetch(src, ivec2(params . srcOffset + srcSubImageCoords), i); // } // srcValue /= params . srcSampleCount; // // dst = transformSrcValue(srcValue); // }