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.00000004.inc:
// Pre-generated shader for the ANGLE Vulkan back-end.
#pragma once
constexpr uint8_t kBlitResolve_frag_00000004[] = {
0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x5d,0x95,0x4b,0x68,0x5d,0x65,
0x14,0x85,0xcf,0x7f,0xee,0xcd,0xbd,0x6d,0x6f,0xab,0x15,0x35,0x35,0x4f,0xd3,0x66,
0x12,0xa9,0x96,0x0e,0xaa,0x08,0x52,0xd1,0x91,0x0e,0x2a,0xa2,0xb6,0x62,0x26,0x01,
0x8b,0x10,0x1c,0xe8,0x1d,0xc4,0x41,0x06,0x05,0x0d,0x92,0x49,0x06,0x9d,0x64,0x52,
0x6b,0x6d,0x15,0xdb,0x6a,0x75,0x54,0x2d,0x5a,0x7c,0x14,0x25,0x6a,0x50,0x62,0x0d,
0x06,0x7c,0x11,0x68,0x4b,0x40,0x4b,0x40,0x4b,0xc0,0xd6,0xf8,0x08,0x71,0xaf,0x73,
0xbe,0xdd,0xbb,0xc9,0x85,0xcd,0x39,0x6b,0xad,0xbd,0xf7,0xfa,0xf7,0x7f,0xfe,0x73,
0x6e,0x25,0xef,0xaf,0x67,0x59,0xca,0x1a,0xd9,0xba,0x6c,0x5b,0xca,0x8a,0xdf,0x4d,
0x59,0x9e,0xe9,0xb6,0x91,0xd5,0x8a,0xeb,0x43,0x7b,0x9e,0xd8,0xb3,0x63,0xe4,0x85,
0x67,0x76,0xec,0xba,0x7b,0xa7,0xf4,0x1b,0xb2,0x4a,0x91,0x27,0xed,0x46,0x43,0x55,
0xbb,0x2a,0x9e,0x7b,0xfa,0xd9,0xe7,0xc5,0xb7,0x5b,0xec,0xb3,0x18,0xb2,0x18,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0x6b,0x58,0x6c,0xa2,0x57,0x03,0x9f,0xc9,0xe0,
0xe3,0x9a,0xae,0x2b,0xf6,0x55,0xb9,0xd7,0xe2,0x7f,0x63,0xf2,0x19,0x85,0x14,0x0c,
0x00,0x00
};
// Generated from:
//
// #version 450 core
//
// #extension GL_GOOGLE_include_directive : require
//
// layout(set = 0, binding = 0) uniform itexture2D 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;
//
// layout(set = 0, binding = 2) uniform sampler blitSampler;
//
// #line 1 "shaders/src/BlitResolve.inc"
//
// layout(push_constant) uniform PushConstants {
//
// vec2 offset;
// vec2 stretch;
// vec2 invSrcExtent;
// int srcMip;
// int srcLayer;
// int samples;
// float invSamples;
//
// int outputMask;
//
// bool flipX;
// bool flipY;
// bool rotateXY;
// } params;
//
// vec2 getSrcImageCoords()
// {
//
// vec2 srcImageCoords = vec2(gl_FragCoord.xy);
//
// srcImageCoords *= params.stretch;
//
// 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()
// {
// vec2 srcImageCoords = getSrcImageCoords();
//
// ivec4 colorValue = textureLod(isampler2D(color, blitSampler), srcImageCoords * params.invSrcExtent, params.srcMip);
//
// broadcastColor(colorValue);
//
// }