Source code
Revision control
Copy as Markdown
Other Tools
// 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,0x4f,0x68,0x5d,0x65,
0x10,0xc5,0xef,0xf7,0xde,0xcb,0x7b,0xad,0x2f,0x44,0x6b,0xfe,0x29,0xb4,0x26,0xda,
0x56,0x9b,0x26,0x4d,0x23,0x54,0x11,0xa4,0x52,0x57,0x8a,0x34,0x88,0xc9,0xa2,0x9b,
0x80,0x2d,0x98,0x85,0x8b,0x14,0x8b,0x92,0x45,0x17,0xa6,0xd8,0x4d,0x16,0x45,0xc8,
0x46,0xda,0x6e,0xb4,0xb5,0x42,0x51,0x91,0xda,0xea,0xae,0x6a,0xf1,0x4f,0x55,0x62,
0x0d,0x4a,0xd4,0x60,0x40,0xab,0x04,0xb4,0x04,0xb4,0x04,0x9a,0x1a,0xb1,0xc5,0x39,
0xf7,0xfe,0xa6,0x19,0xde,0x83,0xc9,0xbd,0x73,0xce,0x7c,0x73,0xbe,0x33,0xf7,0xbb,
0x37,0xe5,0xd2,0xc6,0x5a,0x96,0xa5,0xac,0x9e,0xad,0xc9,0x1e,0x4c,0x59,0xfe,0x5b,
0x97,0x95,0x32,0xdd,0xd6,0xb3,0x6a,0x7e,0x7d,0x62,0xf7,0xf0,0xee,0xfe,0x17,0x5f,
0x7a,0xae,0x7f,0xc7,0x43,0x03,0xe2,0x5b,0xb2,0x72,0x5e,0x27,0xee,0x76,0xcb,0x2a,
0x76,0x55,0x8c,0xed,0x7b,0x7e,0xbf,0xf0,0x4e,0x8b,0x61,0x8b,0x11,0x8b,0x51,0xe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xc4,0x35,0x59,0xd4,0xe8,0xa5,0x7b,0xe9,0x4c,
0x04,0x1d,0xe7,0x6a,0x41,0xe7,0x36,0x74,0x0e,0x07,0x9d,0x7a,0x2a,0x70,0xd7,0x69,
0x09,0x3a,0xe2,0x9a,0x2d,0x5a,0xe8,0xd5,0x8c,0xce,0x64,0xd0,0x71,0xae,0x25,0xe8,
0xac,0x43,0xe7,0x48,0xd0,0xb9,0x33,0x15,0xb8,0xeb,0xb4,0x07,0x1d,0x71,0xad,0x16,
0xed,0xf4,0x6a,0x45,0x67,0x2a,0xe8,0x38,0xa7,0xeb,0x0d,0x1b,0xde,0x23,0x16,0xff,
0x03,0x99,0xfb,0xea,0x83,0x8c,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);
//
// }