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.00000001.inc:
// Pre-generated shader for the ANGLE Vulkan back-end.
#pragma once
constexpr uint8_t kBlitResolve_frag_00000001[] = {
0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x65,0x95,0x4b,0x68,0x55,0x57,
0x14,0x86,0xf7,0x3e,0xf7,0xde,0xdc,0x68,0x82,0x26,0x24,0x9a,0x1b,0x8d,0x45,0x13,
0x35,0x81,0x8a,0x38,0x50,0x11,0x8a,0xa5,0x1d,0xe9,0x20,0xd0,0xd6,0x88,0x64,0x92,
0x41,0x40,0x02,0x0e,0x8c,0x60,0x0b,0x19,0x38,0x68,0xa0,0x76,0x90,0x81,0x93,0x4c,
0xd4,0xfa,0x44,0xfb,0xb0,0x3e,0x3b,0xb3,0x95,0x56,0xd4,0x8a,0x12,0xdb,0x60,0x49,
0x35,0x18,0xf0,0x45,0xc0,0x4a,0xa0,0x95,0x40,0x95,0xb4,0xd6,0x86,0xae,0x75,0xce,
0xb7,0xbc,0x8b,0xdb,0xc0,0x72,0x9f,0xff,0xff,0xd7,0x5e,0xff,0x5e,0xfb,0x71,0xcd,
0x25,0x6d,0xc5,0x10,0x62,0xa8,0x09,0xd5,0xa1,0x23,0x86,0xf4,0xaf,0x3e,0x24,0x41,
0x3f,0x6b,0x42,0x55,0x3a,0x6e,0xea,0xec,0xea,0x5c,0xfd,0xe1,0x47,0xdb,0x57,0xaf,
0x5d,0xb7,0x46,0xf5,0x79,0x21,0x97,0xe6,0xa9,0x36,0x5f,0x50,0x5e,0x46,0x8d,0x9d,
0xbd,0x3b,0xfa,0x95,0x6f,0x94,0xd8,0x2a,0xd1,0x23,0xd1,0x27,0xa1,0xe4,0x80,0xc4,
0xa0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73,0x25,0x6a,0xa9,0x35,
0x17,0x9f,0x21,0xe7,0x63,0x5a,0xad,0xf3,0x99,0x8f,0xcf,0x3e,0xe7,0x53,0x17,0x33,
0xde,0x7c,0x1a,0x9c,0x8f,0x6a,0xf5,0x12,0x0d,0xd4,0xaa,0xc7,0x67,0xd8,0xf9,0x98,
0xa6,0xe3,0xbf,0xf2,0xa2,0x37,0x48,0xfc,0x07,0x43,0xed,0xdc,0xad,0xa0,0x0c,0x00,
0x00
};
// Generated from:
//
// #version 450 core
//
// #extension GL_GOOGLE_include_directive : require
//
// layout(set = 0, binding = 0) uniform texture2DArray color;
//
// layout(location = 0) out vec4 colorOut0;
// layout(location = 1) out vec4 colorOut1;
// layout(location = 2) out vec4 colorOut2;
// layout(location = 3) out vec4 colorOut3;
// layout(location = 4) out vec4 colorOut4;
// layout(location = 5) out vec4 colorOut5;
// layout(location = 6) out vec4 colorOut6;
// layout(location = 7) out vec4 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(vec4 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();
//
// vec4 colorValue = textureLod(sampler2DArray(color, blitSampler), vec3(srcImageCoords * params.invSrcExtent, params.srcLayer), params.srcMip);
//
// broadcastColor(colorValue);
//
// }