blob: ee6bc0815bc0ee0e75a8b950e8eb1d87519f515a [file] [log] [blame]
// 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/ImageCopy.frag.00000007.inc:
// Pre-generated shader for the ANGLE Vulkan back-end.
#pragma once
constexpr uint8_t kImageCopy_frag_00000007[] = {
0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x7d,0x97,0xfd,0x6b,0x96,0x55,
0x18,0xc7,0xef,0xf3,0x3c,0x7b,0xd5,0x7c,0xdd,0x4c,0xdd,0xa4,0x36,0x5f,0x57,0xb3,
0xf9,0xfe,0x3a,0xa7,0x0d,0x75,0x5b,0x65,0x9a,0x1b,0x92,0x66,0x16,0x86,0x99,0x96,
0xce,0x72,0xd1,0x2f,0x42,0x65,0x69,0x2a,0x58,0x49,0x5a,0x39,0xb2,0x1c,0x91,0x92,
0x24,0xa1,0x95,0x12,0x69,0xe5,0x08,0xb1,0x28,0x07,0xe5,0xa2,0x1c,0xfa,0x17,0x48,
0x92,0x94,0x69,0x85,0xd8,0xb9,0xce,0xf9,0x5c,0x7b,0xae,0x1e,0xb2,0xc1,0xe1,0xbe,
0xcf,0xf7,0x5c,0x2f,0xdf,0xeb,0x7b,0xae,0x73,0x9e,0x7b,0xe9,0xd4,0xb0,0xfc,0x24,
0x71,0x49,0x8f,0xa4,0x20,0xb9,0xdb,0x25,0xe1,0xaf,0x5f,0x92,0x4a,0x1c,0xcf,0xf1,
0xfe,0xd9,0x33,0xc9,0x0b,0xf3,0xfa,0x79,0x4d,0xf3,0xaa,0x5a,0x9e,0x5e,0x51,0x35,
0x71,0xd2,0x58,0xb1,0xeb,0x9d,0xa4,0x83,0xbd,0xac,0xf5,0x49,0xf2,0x93,0x1c,0xff,
0x94,0xb1,0x76,0xf9,0xea,0x66,0xc1,0x47,0xfa,0x71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0x73,0xc6,0xf0,0x99,0x04,0x9f,0xb9,0xe6,0x9e,0x52,0xbb,0x4e,0xc3,0xa7,0xce,0x45,
0x9b,0x0e,0x7c,0xce,0x18,0x3e,0x3f,0xc1,0xe7,0xb0,0xe1,0xf3,0x33,0xb8,0xf2,0xe9,
0x32,0x7c,0x64,0xed,0xac,0x1f,0x5d,0xe4,0x39,0x6b,0xf8,0x4c,0x71,0xf1,0xff,0x86,
0x3a,0x97,0xe9,0x57,0xb5,0xeb,0x32,0x7c,0xee,0x72,0xd1,0xa6,0x13,0x9f,0xb3,0xd8,
0xb6,0x63,0x7b,0xc2,0x7c,0x37,0x7f,0x85,0xde,0x69,0x93,0x67,0x9c,0xcb,0xe0,0x49,
0x96,0x6f,0xbb,0xc9,0xd3,0xe0,0x62,0xae,0x2e,0x7c,0x4e,0x60,0x7b,0x14,0xdb,0x23,
0x9c,0xbb,0x83,0xe1,0xae,0x8b,0xf1,0x0e,0x71,0xee,0xf2,0x39,0xab,0xe9,0x2c,0x9f,
0xa3,0x26,0x7e,0xbd,0x8b,0x39,0xda,0xf1,0x97,0x78,0x33,0xbd,0xc7,0x79,0xd6,0xae,
0xf9,0x2e,0x99,0xea,0xc7,0x3f,0xe2,0xeb,0xea,0x0b,0x80,0x12,0x00,0x00
};
// Generated from:
//
// #version 450 core
//
// #extension GL_EXT_samplerless_texture_functions : require
//
// layout(set = 0, binding = 0)uniform sampler2D src;
// layout(location = 0)out ivec4 dst;
//
// layout(push_constant)uniform PushConstants {
//
// ivec2 srcOffset;
// ivec2 dstOffset;
// int srcMip;
// int srcLayer;
//
// 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;
// }
// }
//
// void main()
// {
// ivec2 dstSubImageCoords = ivec2(gl_FragCoord . xy)- params . dstOffset;
//
// ivec2 srcSubImageCoords = dstSubImageCoords;
//
// if(params . flipX)
// {
// srcSubImageCoords . x = - srcSubImageCoords . x;
// }
// if(params . flipY)
// {
// srcSubImageCoords . y = - srcSubImageCoords . y;
// }
// if(params . rotateXY)
// {
// srcSubImageCoords . xy = srcSubImageCoords . yx;
// }
//
// vec4 srcValue = texture(
// src, vec2(params . srcOffset + srcSubImageCoords)/ textureSize(src, 0), params . srcMip);
//
// 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;
// }
//
// srcValue *= 255.0;
//
// ivec4 dstValue = ivec4(srcValue);
//
// 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;
// }
// }
//
// dst = dstValue;
// }