| // 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.00000011.inc: |
| // Pre-generated shader for the ANGLE Vulkan back-end. |
| |
| #pragma once |
| constexpr uint8_t kBlitResolve_frag_00000011[] = { |
| 0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x5d,0x94,0xd9,0x4e,0x94,0x41, |
| 0x10,0x85,0x7b,0x76,0x40,0x50,0x98,0x61,0x13,0x59,0x04,0x04,0x05,0x95,0x8c,0x3a, |
| 0x63,0x30,0xc8,0xa2,0x30,0x20,0x32,0x2a,0xbb,0x28,0xe8,0x48,0x00,0x05,0xa3,0x60, |
| 0x80,0x0b,0x2f,0x4c,0xbc,0x30,0x3e,0x82,0xbe,0x84,0xcf,0x67,0x5c,0x12,0x13,0xab, |
| 0xfa,0xff,0x9a,0x54,0xf8,0x93,0x9e,0xee,0x3a,0x7d,0x6a,0x39,0xdd,0x5d,0x93,0x88, |
| 0xf7,0x66,0x9c,0x8b,0xb9,0x1a,0x57,0xe5,0xde,0xba,0xe8,0x6b,0x70,0x71,0x41,0xa2, |
| 0xf9,0x5b,0xce,0xc9,0x5e,0xb5,0x5b,0x9a,0x5f,0xad,0x94,0xd6,0x96,0x2b,0x47,0xbb, |
| 0x9b,0xdb,0x3b,0x87,0x95,0xa3,0xe3,0x9d,0xfd,0xad,0xbd,0x77,0x95,0x9d,0x8f,0x1f, |
| 0x0e,0x0e,0x8f,0x85,0x7b,0xc6,0xa5,0xbd,0xcf,0x4c,0x79,0xa9,0x3c,0x74,0x74,0xbc, |
| 0x3d,0x54,0x28,0xe6,0x35,0xd6,0x59,0x97,0xf0,0x31,0x75,0xef,0x9c,0xcb,0xb8,0xa4, |
| 0xcc,0x3a,0xde,0x6f,0xee,0xed,0x2b,0x5e,0x2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x8d, |
| 0x06,0xdd,0x2b,0xc8,0x28,0x92,0xb7,0x60,0x34,0x0c,0x93,0x3b,0x66,0x34,0xdc,0x01, |
| 0x0f,0x1a,0x5e,0x83,0x05,0x9e,0x6a,0x08,0xb1,0x8a,0x46,0xc3,0x2e,0x9c,0x41,0x7c, |
| 0x0a,0x46,0xc3,0x5d,0x34,0x8c,0x18,0x0d,0xa3,0xe0,0x41,0xc3,0x18,0x58,0xd0,0x30, |
| 0x61,0x34,0xe8,0xde,0xb8,0x8c,0x09,0xf2,0xea,0xfa,0x09,0x79,0xef,0x93,0x7b,0xd7, |
| 0xf4,0x9e,0xd6,0x18,0xb8,0x13,0xa6,0xc6,0x3d,0x78,0x45,0xfc,0xc6,0xa9,0xa7,0xe4, |
| 0xff,0xbb,0xa3,0xde,0x54,0x5b,0xfb,0xb0,0x4c,0x0f,0xae,0x4a,0x7d,0xda,0x7f,0x8f, |
| 0xe1,0x94,0xcd,0xbb,0x5c,0x40,0xd7,0xbc,0x79,0x97,0x8b,0xe0,0xe1,0x3d,0x2f,0x91, |
| 0x77,0x11,0xbf,0x15,0x1f,0x33,0xf2,0x5b,0xc6,0x4f,0x7b,0xf5,0x29,0xf8,0x01,0xf7, |
| 0xb0,0x06,0x16,0xee,0xea,0x39,0xb1,0x6c,0xdf,0xad,0x83,0x45,0x7d,0x97,0xf6,0xbd, |
| 0xbe,0x01,0x77,0xfd,0x24,0x46,0xca,0xf7,0xfc,0x4b,0x34,0x6c,0xe0,0xaf,0x77,0x50, |
| 0x01,0xd7,0xef,0x13,0x75,0xbc,0x02,0x1f,0x93,0x3b,0x98,0xc2,0xfe,0x27,0x19,0x86, |
| 0x65,0xfc,0x07,0x8e,0x59,0x7a,0xd8,0x38,0x08,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 = 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_FragStencilRefARB = int(texture(usampler2DArray(stencil, blitSampler), vec3(srcImageCoords * params . invSrcExtent, params . srcLayer)). x); |
| // |
| // } |