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
// 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.0000000C.inc:
// Pre-generated shader for the ANGLE Vulkan back-end.
#pragma once
constexpr uint8_t kBlitResolve_frag_0000000C[] = {
0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x5d,0x94,0xfd,0x4b,0x93,0x51,
0x14,0xc7,0xef,0x9e,0x67,0xdb,0x33,0xed,0x65,0x46,0x6d,0xb3,0x19,0x61,0x99,0xd1,
0x1b,0x22,0x68,0x11,0x44,0x42,0x3f,0x15,0x38,0x33,0x9d,0xc6,0x52,0x2b,0x8d,0x88,
0x2c,0x53,0x49,0x93,0xc2,0x72,0x54,0xb3,0xa4,0xfd,0x10,0x94,0xf5,0x4f,0xf4,0xf7,
0x45,0x2f,0x10,0x74,0xce,0xdd,0xe7,0xc6,0x69,0x0f,0x5c,0xef,0xce,0xe7,0x9e,0x97,
0xfb,0xbd,0xe7,0x5e,0xe3,0xa8,0x2f,0x71,0x2e,0xe5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8,0x64,0x88,0xd9,0x30,0x1a,0x5e,0xa2,0x61,0xc8,0x68,0x78,0x05,0x0f,0x1a,0xb6,
0x60,0x41,0x43,0xc3,0x68,0xd8,0xf2,0xfb,0x73,0x9e,0x69,0xdd,0xba,0xd1,0xf0,0x9a,
0xda,0x29,0xa3,0xe1,0x0d,0x3c,0x68,0xf8,0x04,0x0b,0x7e,0xaa,0x21,0xe4,0x6a,0x18,
0x0d,0xbb,0xf8,0x6c,0x12,0x53,0x37,0x1a,0xb6,0xd1,0x30,0x62,0x34,0xbc,0x83,0x07,
0x0d,0xef,0x61,0x41,0x43,0xd3,0x68,0xd0,0xb5,0x1d,0x19,0x4d,0xea,0xee,0xf8,0x77,
0xd2,0xaa,0xfb,0x81,0xda,0xbb,0xe6,0x6d,0xe9,0x1e,0x83,0x6f,0xd3,0xec,0xf1,0x0b,
0x7e,0x0d,0xe2,0x76,0xd8,0xcf,0x98,0xbf,0xb7,0xad,0xb7,0xa7,0xb6,0xbe,0xb3,0x29,
0xde,0xd8,0x4d,0xd9,0xdf,0xb4,0x9f,0x5b,0x3e,0x53,0xe6,0x5e,0xde,0x42,0x57,0xcd,
0xdc,0xcb,0x19,0x78,0xb8,0xcf,0xb3,0xd4,0x9d,0x21,0x4e,0xdf,0xdf,0x1d,0xe2,0xe6,
0x88,0xd3,0xb7,0x78,0x17,0xbe,0x42,0x1f,0xe6,0x61,0x35,0xc9,0xa2,0xef,0x70,0x81,
0x3d,0xcc,0xf2,0xb6,0xe7,0x4d,0x1f,0xef,0xb1,0xee,0xfc,0x19,0xc7,0xfe,0xff,0x90,
0xb2,0x3f,0x72,0x22,0x17,0x65,0xfc,0x05,0xa3,0xd4,0x0a,0x18,0xc8,0x07,0x00,0x00
};
// Generated from:
//
// #version 450 core
//
// #extension GL_GOOGLE_include_directive : require
//
// layout(set = 0, binding = 0)uniform texture2D depth;
//
// 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;
// }
//
// #line 123 "shaders/src/BlitResolve.frag"
//
// void main()
// {
// vec2 srcImageCoords = getSrcImageCoords();
//
// gl_FragDepth = textureLod(sampler2D(depth, blitSampler), srcImageCoords * params . invSrcExtent, params . srcMip). x;
//
// }