1// GENERATED FILE - DO NOT EDIT. 2// Generated by gen_vk_internal_shaders.py. 3// 4// Copyright 2018 The ANGLE Project Authors. All rights reserved. 5// Use of this source code is governed by a BSD-style license that can be 6// found in the LICENSE file. 7// 8// shaders/gen/BlitResolve.frag.00000014.inc: 9// Pre-generated shader for the ANGLE Vulkan back-end. 10 11#pragma once 12constexpr uint8_t kBlitResolve_frag_00000014[] = { 13 0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x7d,0x95,0xdb,0x4e,0x53,0x51, 14 0x10,0x86,0x57,0xcf,0x80,0xa0,0x40,0x39,0x89,0x1c,0x04,0x04,0x05,0x95,0x54,0x6d, 15 0x0d,0x06,0x11,0x14,0x0a,0x22,0x55,0x81,0x42,0x41,0x8c,0x36,0x04,0x6a,0x24,0x81, 16 0x42,0x80,0x0b,0x2f,0x4c,0xbc,0x30,0x3e,0x82,0xbe,0x84,0xcf,0x67,0x3c,0x24,0x26, 17 0xce,0xac,0x7e,0xcb,0x8c,0x5c,0xb8,0x93,0x95,0xbd,0xe7,0x9f,0x7f,0x0e,0xff,0xda, 18 0x6b,0xf6,0x8e,0x45,0x87,0x52,0xce,0x45,0x5c,0x83,0xab,0x73,0x47,0xae,0x76,0xb5, 19 0xb8,0xa8,0x20,0xb5,0xfb,0xe7,0xb4,0x13,0x5f,0xbd,0x2b,0x2e,0x97,0xca,0xf9,0xcd, 20 0xb5,0xf2,0xc9,0xdb,0xed,0xdd,0xca,0x71,0xf9,0xe4,0xb4,0x52,0xdd,0xd9,0xdb,0x2f, 21 0x57,0xde,0x1d,0x1d,0x1e,0x9f,0x0a,0xf7,0x9c,0x4b,0xfa,0x98,0x85,0x42,0xb1,0x30, 22 0x7e,0x72,0xba,0x3b,0x9e,0xcd,0x65,0x34,0xd7,0x79,0x17,0xf3,0x39,0xd5,0x77,0x41, 23 0x6a,0xc4,0xe5,0xae,0xeb,0x60,0x7b,0xaf,0xaa,0x78,0xa3,0xac,0x39,0x59,0x1b,0xb2, 24 0x9a,0x85,0xab,0xbe,0x94,0x79,0x56,0xff,0x82,0x3c,0x35,0xfa,0x1a,0x9a,0xc3,0xb9, 25 0xc7,0x2e,0xe1,0xda,0xe8,0x75,0x88,0x7b,0xc0,0x22,0x60,0x75,0x06,0x8b,0x82,0x35, 26 0x1b,0x2c,0x06,0xd6,0x65,0xb0,0x38,0x58,0x8f,0xc1,0x12,0x60,0x97,0x0d,0x96,0x04, 27 0xbb,0x62,0xb0,0x14,0xd8,0x35,0x83,0xd5,0x81,0xdd,0x30,0x58,0x3d,0x58,0xc6,0xeb, 28 0x8a,0xfd,0xed,0x4f,0x35,0xce,0xa1,0xb1,0x03,0x7b,0x41,0xee,0x83,0xe8,0x0b,0xf6, 29 0x80,0xb1,0x97,0xce,0xf8,0x97,0xf0,0x87,0x7c,0x1b,0xe4,0xfb,0x92,0xae,0xd9,0x5b, 30 0x67,0xf8,0x5b,0xf0,0x75,0xcf,0xd2,0x12,0x15,0xf5,0x76,0xcc,0xef,0x4d,0xd4,0xf7, 31 0x11,0xf3,0x5a,0x55,0x7b,0xa7,0xf0,0x53,0x68,0x8f,0x62,0x37,0x60,0xc7,0x3d,0x27, 32 0xee,0x6b,0x69,0x2e,0xc5,0x27,0xb1,0x1b,0xc1,0xda,0xc5,0x6e,0x25,0x57,0xb0,0xd3, 33 0xd8,0x7a,0xf5,0x09,0x33,0xec,0x63,0x58,0xad,0xac,0x24,0xf7,0xb4,0x59,0x5a,0xaf, 34 0x9d,0xfd,0x6c,0xa3,0x5e,0x3b,0x7b,0xa7,0xd8,0x75,0xea,0x75,0x52,0x4f,0xf9,0x5d, 35 0xf8,0x52,0xc6,0xdf,0x4b,0xfd,0x60,0x0f,0xe2,0x57,0xfe,0x10,0xfc,0xb4,0xaf,0x11, 36 0x75,0x23,0xf0,0xd4,0xbe,0x7a,0x26,0x2e,0xc3,0xfb,0x0e,0xf6,0x24,0xb1,0x9a,0x67, 37 0x96,0xf3,0x96,0xa4,0xcf,0x59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de,0x01,0x9c,0x04, 51 0x31,0xa3,0x46,0xc3,0x2d,0x34,0x64,0x8c,0x86,0xdb,0xe0,0x41,0xc3,0x1d,0xb0,0xa0, 52 0x21,0x67,0x34,0xa8,0x2f,0x2b,0x2b,0x47,0xdd,0xac,0xd1,0x30,0x41,0xed,0x88,0xd1, 53 0x70,0x0f,0x3c,0x68,0xd8,0x07,0x0b,0x3c,0xd5,0x10,0x72,0xe5,0x8c,0x86,0x2a,0x9c, 54 0x31,0x62,0xb2,0x46,0xc3,0x7d,0x34,0x4c,0x1a,0x0d,0x53,0xe0,0x41,0xc3,0x03,0xb0, 55 0xa0,0x61,0xc6,0x68,0x50,0xdf,0xb4,0xac,0x19,0xea,0xea,0xf3,0x73,0xea,0x3e,0xa2, 56 0x76,0xd5,0xcc,0x84,0xf6,0x18,0xb8,0x33,0xa6,0xc7,0x43,0x78,0x39,0xe2,0xa6,0xe9, 57 0x27,0xef,0xff,0x15,0xb5,0xd9,0x56,0x5b,0xe7,0xb8,0xc0,0x0c,0x97,0xa4,0x3f,0x9d, 58 0xdf,0x67,0x70,0x0a,0xe6,0x5c,0xae,0xa0,0x6b,0xd9,0x9c,0xcb,0x55,0xf0,0x70,0x9e, 59 0x8b,0xd4,0x5d,0xf5,0x73,0x9d,0xf0,0x33,0xb5,0x46,0xbe,0xa2,0x79,0x17,0xeb,0xe0, 60 0xce,0xef,0x45,0xcc,0x7f,0xab,0xd6,0xc9,0xab,0xb3,0xfb,0x92,0x99,0xd6,0x7e,0x74, 61 0x9e,0x5f,0x83,0x15,0xc8,0xab,0x73,0xbd,0x0b,0x1e,0xf2,0xea,0x3e,0x57,0xc0,0xf5, 62 0x7a,0xcf,0xf7,0xe7,0x0d,0xb8,0xd6,0xd9,0xc0,0xfe,0x2d,0xbb,0x37,0x21,0xeb,0x0f, 63 0xf1,0x3d,0x7d,0x11,0x9c,0x08,0x00,0x00 64}; 65 66// Generated from: 67// 68// #version 450 core 69// 70// #extension GL_ARB_shader_stencil_export : require 71// 72// layout(push_constant)uniform PushConstants { 73// 74// vec2 offset; 75// vec2 stretch; 76// vec2 invSrcExtent; 77// int srcLayer; 78// int samples; 79// float invSamples; 80// 81// int outputMask; 82// 83// bool flipX; 84// bool flipY; 85// bool rotateXY; 86// } params; 87// 88// layout(set = 0, binding = 0)uniform texture2D depth; 89// 90// layout(set = 0, binding = 1)uniform utexture2D stencil; 91// 92// layout(set = 0, binding = 2)uniform sampler blitSampler; 93// 94// void main() 95// { 96// 97// vec2 srcImageCoords = vec2(gl_FragCoord . xy); 98// 99// srcImageCoords *= params . stretch; 100// 101// srcImageCoords -= params . offset; 102// 103// if(params . flipX) 104// srcImageCoords . x = - srcImageCoords . x; 105// if(params . flipY) 106// srcImageCoords . y = - srcImageCoords . y; 107// if(params . rotateXY) 108// srcImageCoords . xy = srcImageCoords . yx; 109// 110// gl_FragDepth = texture(sampler2D(depth, blitSampler), srcImageCoords * params . invSrcExtent). x; 111// 112// gl_FragStencilRefARB = int(texture(usampler2D(stencil, blitSampler), srcImageCoords * params . invSrcExtent). x); 113// 114// } 115