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.00000007.inc:
// Pre-generated shader for the ANGLE Vulkan back-end.
#pragma once
constexpr uint8_t kBlitResolve_frag_00000007[] = {
0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x5d,0x95,0x4b,0x6c,0x55,0x55,
0x14,0x86,0xcf,0x3e,0xe7,0xf6,0x5e,0xe0,0x5a,0x05,0x5a,0x5a,0x9b,0x16,0x5a,0x45,
0x8c,0x22,0x96,0x02,0xa5,0x92,0x10,0x8c,0x8e,0x34,0x86,0x46,0x6d,0x07,0x4c,0x9a,
0x88,0x89,0x1d,0x38,0x28,0x86,0x68,0x3a,0x60,0x60,0x89,0x4c,0x3a,0x20,0x26,0x9d,
0x18,0x60,0xa2,0x20,0xc6,0x47,0x09,0x51,0x63,0x54,0x74,0x86,0x8a,0x2f,0xa2,0xa9,
0xda,0x68,0xaa,0x36,0x36,0xf1,0x95,0x26,0x4a,0x9a,0x58,0xac,0x8f,0xa6,0xae,0xff,
0x9c,0x6f,0x7b,0x57,0xee,0x4d,0x56,0xf7,0x59,0xff,0xbf,0xf6,0xfa,0xf7,0x5a,0xfb,
0xd1,0x2c,0xdd,0x5c,0x49,0x92,0x90,0x54,0x93,0x55,0xc9,0x9e,0x90,0xe4,0xbf,0x75,
0x49,0x9a,0xe8,0xb3,0x9a,0x94,0xf3,0xf1,0x9e,0xfd,0x83,0xfb,0xbb,0x1f,0x7f,0xe2,
0x91,0xee,0xde,0xdd,0x3d,0xe2,0xaf,0x4d,0xb2,0x3c,0x4e,0xdc,0x75,0xe6,0x95,0x6c,
0x94,0x8d,0x3c,0xfc,0xe8,0x21,0xe1,0x2d,0x66,0x83,0x66,0x43,0x66,0xc3,0xc2,0xcd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9,0xa4,0xa1,
0xd0,0x39,0xec,0x74,0xb2,0x50,0xe0,0x51,0xa7,0x1c,0x6a,0x3a,0xe2,0x4a,0xfa,0x9f,
0x17,0x8a,0x5c,0xfa,0x96,0xce,0xa8,0xd3,0x89,0x9c,0xc6,0xa8,0xb3,0x1a,0x9d,0x23,
0x4e,0x67,0x4d,0x28,0xf0,0xa8,0xd3,0xe8,0x74,0xc4,0x55,0xcd,0x1a,0xc9,0x55,0x45,
0x67,0xcc,0xe9,0x44,0xae,0xd1,0xe9,0xac,0x45,0xe7,0x98,0xd3,0x59,0x17,0x0a,0x3c,
0xea,0x34,0x3b,0x1d,0x71,0xeb,0xcd,0x9a,0xc9,0xb5,0x1e,0x9d,0x71,0xa7,0x13,0xb9,
0x66,0xa7,0xd3,0x8a,0xce,0x71,0xa7,0x73,0x7d,0x28,0xf0,0xa8,0xd3,0xee,0x74,0xc4,
0xb5,0x99,0xb5,0x93,0xab,0x0d,0x9d,0x09,0xa7,0x13,0x39,0x8d,0xcb,0x76,0xfb,0xf6,
0x98,0xfd,0x07,0x36,0x4b,0x2e,0x63,0x28,0x0d,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 itexture2DMSArray 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, ivec3(srcImageCoords, params.srcLayer), i);
// }
//
// colorValue = ivec4(round(colorValue * params.invSamples));
//
// broadcastColor(colorValue);
//
// }