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.0000000E.inc:
// Pre-generated shader for the ANGLE Vulkan back-end.
#pragma once
constexpr uint8_t kBlitResolve_frag_0000000E[] = {
0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x4d,0x93,0x5b,0x6b,0x53,0x51,
0x10,0x85,0xf7,0x39,0xc7,0x24,0x16,0x4d,0x9b,0xa2,0x49,0xad,0x0f,0x12,0x8d,0x6f,
0x96,0xd2,0x87,0x2a,0x42,0x51,0xf4,0xa1,0xb1,0x95,0x88,0xb4,0xb5,0x78,0x09,0x6a,
0x5a,0x83,0x72,0xd4,0xd4,0x80,0x05,0xdb,0x5a,0xfb,0xe0,0xdf,0xf1,0xf7,0x89,0x17,
0x10,0x9c,0xb5,0xf3,0x6d,0x9d,0x0d,0x93,0x39,0xb3,0xe6,0xba,0x66,0xef,0x14,0x79,
0xa7,0x16,0x42,0x16,0xce,0x84,0xd3,0xe1,0x24,0x4c,0xce,0x6c,0xc8,0x0d,0x09,0x86,
0x55,0xa3,0xbe,0xd7,0xdb,0xea,0x2d,0x7e,0xdc,0x1f,0x2e,0x2e,0x5f,0x5f,0x92,0x7f,
0x3a,0x14,0x31,0x4e,0xbe,0x99,0x50,0x0b,0xa7,0x4c,0x4b,0x46,0x3b,0xe5,0x9e,0xf0,
0x86,0x49,0x37,0xea,0x22,0xe2,0x35,0xf7,0x7d,0x56,0xf5,0xec,0xab,0x11,0xeb,0x2b,
0x5f,0x76,0x11,0x5a,0xa6,0x73,0x93,0xb5,0x50,0x89,0xdf,0x3a,0x1d,0x74,0xc2,0x32,
0xb0,0x05,0x87,0xe5,0x60,0x4b,0x0e,0x2b,0xc0,0x96,0xe9,0xd5,0xa5,0x57,0x0b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e,0xbe,0xbe,0xc9,0x00,0x3e,0xfd,
0x38,0x6f,0x25,0xde,0xe3,0x73,0x7a,0xea,0x9c,0x70,0xb7,0x2f,0xc0,0x37,0xcd,0xd2,
0x4c,0xfb,0x60,0x29,0xee,0x97,0xd5,0x48,0xb5,0xa4,0xbf,0x5b,0x94,0xe2,0x3e,0x13,
0x53,0x21,0xa7,0xef,0x38,0xec,0xc0,0xe1,0xd0,0x71,0xd8,0x05,0x4f,0x1c,0x5e,0x81,
0x25,0x0e,0xa5,0xe3,0x20,0xdf,0xd0,0xa4,0xa4,0xef,0xd0,0x71,0x78,0x4d,0xef,0xcc,
0x71,0x78,0x03,0x9e,0x38,0x7c,0x02,0x4b,0x71,0xe2,0x90,0x6a,0x95,0x8e,0xc3,0x31,
0x31,0x03,0x72,0x86,0x8e,0xc3,0x5b,0x38,0x1c,0x39,0x0e,0xef,0xc0,0x13,0x87,0xf7,
0x60,0x89,0xc3,0xd8,0x71,0x90,0x6f,0x64,0x32,0xa6,0xef,0x88,0x77,0xa4,0xbe,0x1f,
0xe8,0x7d,0xec,0xde,0xb7,0x66,0x4c,0xb1,0x63,0x37,0xe3,0x17,0xe2,0x4a,0xf2,0x46,
0xcc,0xa3,0xff,0xc0,0x7d,0xde,0xff,0x4b,0x8b,0xd4,0x7b,0xed,0x81,0x29,0xe7,0x0e,
0x6f,0x4f,0x7b,0xd3,0xff,0xea,0x01,0x7e,0x9d,0xdb,0x36,0x6b,0x17,0xec,0x8f,0x4d,
0x70,0xd3,0xe4,0x2f,0xe9,0xdc,0x30,0xc7,0xc4,0x05,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 texture2DMS depth;
//
// #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;
// }
//
// #line 123 "shaders/src/BlitResolve.frag"
//
// void main()
// {
// ivec2 srcImageCoords = getSrcImageCoords();
//
// gl_FragDepth = texelFetch(depth, srcImageCoords, 0).x;
//
// }