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.00000006.inc:
// Pre-generated shader for the ANGLE Vulkan back-end.
#pragma once
constexpr uint8_t kBlitResolve_frag_00000006[] = {
0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x5d,0x94,0x4d,0x68,0x5d,0x55,
0x14,0x85,0xef,0x79,0xbf,0xad,0x2f,0x44,0x6b,0x4c,0x82,0xa4,0x35,0xd1,0xb6,0xda,
0x34,0x69,0x1a,0xa1,0x8a,0x20,0x95,0x3a,0x52,0xa4,0x41,0x4c,0x06,0x9d,0x04,0xac,
0x60,0x06,0x0e,0x52,0x29,0x4a,0x06,0x1d,0x98,0x62,0x27,0x19,0x14,0x21,0x13,0x69,
0x3b,0xd1,0xd6,0x0a,0x45,0x45,0xaa,0xd5,0x59,0xd5,0xe2,0x4f,0x55,0xa2,0x06,0x25,
0x6a,0x30,0xe0,0x1f,0x01,0x2d,0x01,0x2d,0x81,0xa6,0x46,0x6c,0x71,0xaf,0x7b,0xbf,
0xdd,0x6c,0x5e,0x60,0xe7,0xde,0xbd,0xd6,0x3e,0x7b,0x9d,0xb5,0xef,0x39,0xaf,0x5c,
0xda,0x5c,0xcf,0xb2,0x94,0x35,0xb2,0x75,0xd9,0xbd,0x29,0xcb,0xff,0x36,0x64,0xa5,
0x4c,0xaf,0x8d,0xac,0x96,0x3f,0x1f,0xd9,0x3b,0xb2,0x77,0xe0,0xb9,0xe7,0x9f,0x1e,
0xd8,0x75,0xdf,0xa0,0xf8,0xd6,0xac,0x9c,0xd7,0x89,0xbb,0xd9,0xb2,0x8a,0x3d,0x15,
0xe3,0x4f,0x3d,0x73,0x40,0x78,0x87,0xc5,0x88,0xc5,0xa8,0xc5,0x98,0x70,0x8b,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d0,0x71,0xae,0x1e,0x74,
0x6e,0x42,0xe7,0x48,0xd0,0x69,0xa4,0x02,0x77,0x9d,0xd6,0xa0,0x23,0xae,0xc5,0xa2,
0x95,0x5e,0x2d,0xe8,0x4c,0x05,0x1d,0xe7,0x5a,0x83,0xce,0x06,0x74,0x8e,0x06,0x9d,
0x5b,0x53,0x81,0xbb,0x4e,0x7b,0xd0,0x11,0xd7,0x66,0xd1,0x4e,0xaf,0x36,0x74,0xa6,
0x83,0x8e,0x73,0x7a,0x5e,0xb3,0xe1,0x3d,0x60,0xf1,0x3f,0xf2,0x3c,0x88,0x8d,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 itexture2DMS color;
//
// layout(location = 0) out ivec4 colorOut0;
// layout(location = 1) out ivec4 colorOut1;
// layout(location = 2) out ivec4 colorOut2;
// layout(location = 3) out ivec4 colorOut3;
// layout(location = 4) out ivec4 colorOut4;
// layout(location = 5) out ivec4 colorOut5;
// layout(location = 6) out ivec4 colorOut6;
// layout(location = 7) out ivec4 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(ivec4 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();
//
// ivec4 colorValue = ivec4(0, 0, 0, 0);
// for (int i = 0; i < params.samples; ++ i)
// {
// colorValue += texelFetch(color, srcImageCoords, i);
// }
//
// colorValue = ivec4(round(colorValue * params.invSamples));
//
// broadcastColor(colorValue);
//
// }