blob: ac6bb17caa2c7004e0bd9f974dc2fe5d8bd1d9cb [file]
// 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/BlitResolve.frag.0000000A.inc:
// Pre-generated shader for the ANGLE Vulkan back-end.
#pragma once
constexpr uint8_t kBlitResolve_frag_0000000A[] = {
0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x5d,0x95,0x5f,0x68,0x97,0x65,
0x14,0xc7,0xdf,0xf7,0xf7,0x77,0x6d,0x6b,0x69,0xdb,0xdc,0xa2,0xcd,0xcd,0x6c,0xd1,
0x1f,0x11,0x41,0x8b,0x20,0x12,0xbb,0x2a,0xc3,0x11,0xcd,0x0b,0x6f,0x06,0x19,0xb4,
0x8b,0x2e,0x26,0x49,0xb1,0x0b,0x2f,0x9a,0xe4,0xcd,0x2e,0x24,0xd8,0x4d,0xa8,0x17,
0x96,0x66,0x20,0x15,0x69,0x9a,0x77,0x56,0xd2,0x1f,0x2b,0x66,0x8d,0x62,0xd5,0x68,
0xd0,0x1f,0x19,0x94,0x0c,0x4a,0x06,0xce,0x16,0x29,0x9d,0xef,0xf3,0x7e,0xce,0x3a,
0xfc,0x06,0x67,0xef,0x7b,0xbe,0xdf,0xf3,0x9c,0xef,0x39,0xe7,0x79,0x9e,0xf7,0x57,
0x2e,0xad,0xaf,0x67,0x59,0x9e,0x35,0x67,0x4d,0xd9,0xba,0x3c,0x4b,0x7f,0xab,0xb3,
0x52,0xa6,0xd7,0x96,0xac,0x96,0x9e,0x8f,0xef,0xd8,0xb9,0x63,0xe3,0x8b,0x2f,0x3d,
0xb7,0x71,0xcb,0x83,0x9b,0xc4,0xb7,0x65,0xe5,0x14,0x27,0xee,0x36,0xf3,0x2a,0xf6,
0x94,0x8d,0x3e,0xfb,0xfc,0x1e,0xe1,0x5d,0x66,0x3b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0x38,0xa7,0xa7,0xeb,0x94,0xf3,0x42,0x67,0x5f,0xd0,0xa9,0xe4,0x05,0xee,0x3a,0xf5,
0xa0,0x23,0xae,0x6a,0x56,0x27,0x97,0xde,0xa5,0x33,0x1e,0x74,0x9c,0xab,0x07,0x9d,
0x66,0x74,0x0e,0x04,0x9d,0x96,0xbc,0xc0,0x5d,0xa7,0x2d,0xe8,0x88,0x6b,0x35,0x6b,
0x23,0x57,0x2b,0x3a,0x13,0x41,0xc7,0xb9,0xb6,0xa0,0xb3,0x1a,0x9d,0x83,0x41,0xe7,
0xf6,0xbc,0xc0,0x5d,0xa7,0x33,0xe8,0x88,0x6b,0x37,0xeb,0x24,0x57,0x3b,0x3a,0x93,
0x41,0xc7,0x39,0x3d,0x6f,0xd8,0xf0,0x1e,0x36,0xfb,0x0f,0x8c,0xca,0xb9,0x26,0xdc,
0x0c,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 utexture2DMS color;
//
// layout(location = 0)out uvec4 colorOut0;
// layout(location = 1)out uvec4 colorOut1;
// layout(location = 2)out uvec4 colorOut2;
// layout(location = 3)out uvec4 colorOut3;
// layout(location = 4)out uvec4 colorOut4;
// layout(location = 5)out uvec4 colorOut5;
// layout(location = 6)out uvec4 colorOut6;
// layout(location = 7)out uvec4 colorOut7;
//
// #line 1 "shaders/src/BlitResolve.inc"
//
// layout(push_constant)uniform PushConstants {
//
// ivec2 offset;
// vec2 stretch;
// vec2 invSrcExtent;
// int srcMip;
// int srcLayer;
// int samples;
// float invSamples;
//
// int outputMask;
//
// bool flipX;
// bool flipY;
// bool rotateXY;
// } params;
//
// ivec2 getSrcImageCoords()
// {
//
// ivec2 srcImageCoords = ivec2(gl_FragCoord . xy);
//
// srcImageCoords -= params . offset;
//
// if(params . flipX)
// srcImageCoords . x = - srcImageCoords . x;
// if(params . flipY)
// srcImageCoords . y = - srcImageCoords . y;
// if(params . rotateXY)
// srcImageCoords . xy = srcImageCoords . yx;
//
// return srcImageCoords;
// }
//
// void broadcastColor(uvec4 colorValue)
// {
//
// if((params . outputMask &(1 << 0))!= 0)
// {
// colorOut0 = colorValue;
// }
// if((params . outputMask &(1 << 1))!= 0)
// {
// colorOut1 = colorValue;
// }
// if((params . outputMask &(1 << 2))!= 0)
// {
// colorOut2 = colorValue;
// }
// if((params . outputMask &(1 << 3))!= 0)
// {
// colorOut3 = colorValue;
// }
// if((params . outputMask &(1 << 4))!= 0)
// {
// colorOut4 = colorValue;
// }
// if((params . outputMask &(1 << 5))!= 0)
// {
// colorOut5 = colorValue;
// }
// if((params . outputMask &(1 << 6))!= 0)
// {
// colorOut6 = colorValue;
// }
// if((params . outputMask &(1 << 7))!= 0)
// {
// colorOut7 = colorValue;
// }
// }
//
// #line 123 "shaders/src/BlitResolve.frag"
//
// void main()
// {
// ivec2 srcImageCoords = getSrcImageCoords();
//
// uvec4 colorValue = uvec4(0, 0, 0, 0);
// for(int i = 0;i < params . samples;++ i)
// {
// colorValue += texelFetch(color, srcImageCoords, i);
// }
//
// colorValue = uvec4(round(colorValue * params . invSamples));
//
// broadcastColor(colorValue);
//
// }