| // GENERATED FILE - DO NOT EDIT. |
| // Generated by gen_vk_internal_shaders.py. |
| // |
| // Copyright 2020 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.00000015.inc: |
| // Pre-generated shader for the ANGLE Vulkan back-end. |
| |
| #pragma once |
| constexpr uint8_t kBlitResolve_frag_00000015[] = { |
| 0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x7d,0x95,0x69,0x4f,0x93,0x41, |
| 0x14,0x85,0xa7,0x3b,0x20,0x28,0xb4,0x6c,0x22,0x8b,0x80,0xa0,0xa0,0x12,0xd4,0xd6, |
| 0x60,0x10,0x41,0xa1,0x20,0x52,0x95,0x5d,0x14,0xa4,0xd4,0x82,0x4a,0xa2,0x60,0x68, |
| 0x4d,0x48,0x14,0xf9,0x60,0xfc,0x09,0xfa,0x27,0xfc,0x7d,0xc6,0x25,0x31,0xf1,0xde, |
| 0x79,0x9f,0x21,0x93,0x7e,0xb0,0xc9,0xe4,0x9d,0x7b,0xee,0xb9,0xcb,0x99,0xad,0x91, |
| 0x70,0x6f,0xc2,0x98,0x90,0xa9,0x31,0x55,0xe6,0xd8,0x04,0xbf,0x06,0x13,0x16,0x24, |
| 0xf8,0x7e,0x4d,0x19,0xf1,0x55,0x9b,0xa5,0xf9,0xd5,0x7c,0x76,0x6d,0x39,0x5f,0x7a, |
| 0x5d,0xd8,0xde,0x39,0xc8,0x97,0xca,0x3b,0x7b,0xc5,0xdd,0x37,0xf9,0x9d,0xc3,0x77, |
| 0xfb,0x07,0x65,0xe1,0x9e,0x32,0x71,0x1b,0x33,0x93,0x5b,0xca,0x0d,0x95,0xca,0xdb, |
| 0x43,0xe9,0xcc,0xb0,0xe6,0x3a,0x6d,0x22,0x36,0xa7,0xfa,0xce,0x48,0x8d,0xa8,0x7c, |
| 0x75,0xbc,0x2d,0xec,0xee,0x29,0x5e,0x2b,0x63,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,0x26,0x3d,0xe9,0x7b,0xb1,0xcd,0x3b,0xa2,0x6b,0xa0,0x6f,0xc8, |
| 0x2b,0xb0,0x1c,0x79,0xf5,0x2d,0x29,0x81,0xbb,0xbc,0xba,0xb7,0x65,0x70,0x63,0xcf, |
| 0x44,0xa0,0xef,0x3d,0xb8,0xd6,0xd9,0xc2,0xfe,0x2b,0x9d,0x8f,0xc8,0xf8,0x07,0xd4, |
| 0xb1,0x61,0x01,0x40,0x09,0x00,0x00 |
| }; |
| |
| // Generated from: |
| // |
| // #version 450 core |
| // |
| // #extension GL_ARB_shader_stencil_export : require |
| // |
| // layout(push_constant)uniform PushConstants { |
| // |
| // vec2 offset; |
| // vec2 stretch; |
| // vec2 invSrcExtent; |
| // int srcLayer; |
| // int samples; |
| // float invSamples; |
| // |
| // int outputMask; |
| // |
| // bool flipX; |
| // bool flipY; |
| // bool rotateXY; |
| // } params; |
| // |
| // layout(set = 0, binding = 0)uniform texture2DArray depth; |
| // |
| // layout(set = 0, binding = 1)uniform utexture2DArray stencil; |
| // |
| // layout(set = 0, binding = 2)uniform sampler blitSampler; |
| // |
| // void main() |
| // { |
| // |
| // 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; |
| // |
| // gl_FragDepth = texture(sampler2DArray(depth, blitSampler), vec3(srcImageCoords * params . invSrcExtent, params . srcLayer)). x; |
| // |
| // gl_FragStencilRefARB = int(texture(usampler2DArray(stencil, blitSampler), vec3(srcImageCoords * params . invSrcExtent, params . srcLayer)). x); |
| // |
| // } |