Hash :
98915e44
Author :
Date :
2025-09-12T14:15:05
Vulkan: Fix blit src missing mip Bug: angleproject:433816259 Bug: angleproject:40644750 Change-Id: I50261279224dea8e37beff388207b927399d099a Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/6944327 Reviewed-by: Cody Northrop <cnorthrop@google.com> Reviewed-by: Charlie Lao <cclao@google.com>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121
// 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.00000016.inc:
// Pre-generated shader for the ANGLE Vulkan back-end.
#pragma once
constexpr uint8_t kBlitResolve_frag_00000016[] = {
0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x7d,0x93,0xdd,0x4e,0x53,0x51,
0x10,0x85,0x77,0x7b,0xa0,0x05,0xb4,0x50,0x82,0x05,0x31,0x46,0x50,0xbc,0x30,0x51,
0x08,0x17,0x68,0x48,0x8c,0x46,0x2f,0x40,0x30,0x48,0xa1,0x20,0x72,0x81,0x16,0x84,
0x12,0x08,0xd0,0x2a,0x54,0x6d,0xc4,0x68,0x82,0xe8,0x1b,0xe8,0x4b,0xf8,0x7c,0xc6,
0x9f,0xc4,0xc4,0x59,0xa7,0xdf,0xc1,0x09,0x17,0x9e,0x64,0xce,0xde,0xb3,0xe6,0x77,
0xed,0xd9,0x3b,0x4a,0x0f,0x65,0x43,0x48,0x85,0x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,0xd7,0x2d,0x6a,0xea,0x7b,0xcf,0x9c,0xb7,0xc1,0x4b,0xa6,0xa9,0xa7,
0x0f,0x60,0x89,0xdf,0x2f,0xcb,0x91,0xe4,0xd2,0xfa,0xdd,0xbc,0xe4,0xf7,0x11,0x9f,
0x56,0x62,0x36,0x1d,0x87,0x5d,0x38,0x0c,0x3b,0x0e,0x7b,0xe0,0x09,0x87,0x2a,0x58,
0xc2,0xa1,0xee,0x38,0xc8,0x56,0x33,0xa9,0x53,0xb7,0xe6,0x38,0xbc,0xa4,0x76,0xca,
0x71,0xd8,0x07,0x4f,0x38,0x1c,0x81,0x25,0x7e,0xe2,0x90,0xe4,0xaa,0x3b,0x0e,0xc7,
0xf8,0xec,0x10,0x53,0x73,0x1c,0x5e,0xc1,0x61,0xdc,0x71,0x78,0x0d,0x9e,0x70,0x78,
0x03,0x96,0x70,0x38,0x74,0x1c,0x64,0x6b,0x98,0x1c,0x52,0xb7,0xc1,0x3d,0x52,0xdd,
0xb7,0xd4,0x3e,0x76,0xf7,0x57,0x3d,0x26,0xbe,0x87,0xae,0xc7,0x4f,0xf8,0xd5,0x89,
0x6b,0xd0,0x8f,0xde,0xd1,0x43,0xde,0x50,0xd9,0x3c,0x75,0x5f,0x67,0xc0,0x14,0x73,
0x8f,0xbb,0xa7,0x73,0xd3,0xdb,0x7c,0x84,0x5d,0xdf,0x5d,0xeb,0x75,0x12,0x4c,0xb9,
0xf4,0x5e,0x16,0x78,0x2b,0xca,0xa5,0x77,0xb2,0x04,0x76,0x3a,0x97,0xce,0xe1,0x09,
0x76,0x7d,0xef,0x98,0xc1,0x32,0xb8,0x72,0x17,0xd1,0xff,0x18,0xbb,0x71,0x93,0xbf,
0x2c,0x5d,0x24,0xfc,0x9c,0x07,0x00,0x00
};
// Generated from:
//
// #version 450 core
//
// #extension GL_GOOGLE_include_directive : require
//
// #extension GL_EXT_samplerless_texture_functions : require
//
// #extension GL_ARB_shader_stencil_export : require
//
// layout(set = 0, binding = 0)uniform texture2DMS depth;
//
// layout(set = 0, binding = 1)uniform utexture2DMS stencil;
//
// #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;
//
// gl_FragStencilRefARB = int(texelFetch(stencil, srcImageCoords, 0). x);
//
// }