| // 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.00000010.inc: |
| // Pre-generated shader for the ANGLE Vulkan back-end. |
| |
| #pragma once |
| constexpr uint8_t kBlitResolve_frag_00000010[] = { |
| 0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x5d,0x93,0x6b,0x4b,0xd4,0x41, |
| 0x14,0x87,0x67,0xef,0x6b,0x37,0x8d,0x6d,0xd5,0x34,0xc2,0x32,0xa3,0x1b,0x22,0x58, |
| 0x11,0x44,0x42,0x2f,0xa2,0xc0,0x35,0x5d,0x77,0x35,0xcb,0x6a,0x11,0xdd,0x72,0xc9, |
| 0x5b,0xae,0xc5,0x56,0x92,0x6c,0x2a,0xf9,0x22,0x28,0x8b,0xfa,0x12,0x7d,0xbe,0xe8, |
| 0x02,0x41,0xe7,0xcc,0xff,0x19,0x39,0xb9,0x30,0x3b,0xff,0xf3,0xcc,0xb9,0xcc,0x6f, |
| 0xce,0x4c,0x22,0xde,0x9b,0x71,0x2e,0xe6,0x0e,0xb8,0xac,0xfb,0xe2,0xa2,0xdf,0x51, |
| 0x17,0x17,0x12,0xcd,0x5f,0x73,0x4e,0xd6,0x5a,0x5c,0x69,0x6c,0xb2,0x72,0x6b,0xaa, |
| 0x5c,0xa9,0xcf,0xcf,0xcc,0x55,0x57,0x2b,0xf5,0xb5,0xea,0xd2,0x6c,0x6d,0xa1,0x52, |
| 0x6d,0xac,0x2c,0xaf,0xae,0x89,0xef,0x41,0x97,0xf6,0x31,0xb7,0x0b,0xa5,0x42,0x7f, |
| 0x7d,0x6d,0xae,0xff,0xf2,0x95,0x01,0xcd,0x75,0xc4,0x25,0x7c,0x4e,0x5d,0x6b,0x75, |
| 0x19,0x97,0x94,0x59,0xc7,0xe2,0x4c,0x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0xc0,0x83, |
| 0x86,0x8f,0xb0,0xe0,0xa7,0x1a,0x42,0xae,0xa6,0xd1,0xb0,0x8b,0x4f,0x83,0x98,0x75, |
| 0xa3,0xe1,0x1d,0x1a,0x86,0x8c,0x86,0x4d,0x78,0xd0,0xb0,0x05,0x0b,0x1a,0x76,0x8c, |
| 0x86,0x2d,0x7f,0x3f,0x9c,0x67,0x5a,0x77,0xdb,0xbf,0x8b,0xa8,0xee,0x7b,0x6a,0xef, |
| 0x9a,0xb7,0xa4,0x7b,0x0c,0xbe,0x3b,0x66,0x8f,0x9f,0xf1,0x6b,0x12,0xb7,0xcd,0x7e, |
| 0x46,0xfc,0xbd,0x8d,0xde,0x9a,0xda,0xfa,0xae,0xca,0xbc,0xa9,0x49,0xd9,0xdf,0x84, |
| 0x9f,0x23,0x9f,0xb2,0xb9,0x97,0xf7,0xd1,0x35,0x65,0xee,0xe5,0x03,0x78,0xb8,0xcf, |
| 0xd3,0xd4,0x55,0x7e,0x4f,0x98,0xbe,0xbf,0x47,0xe4,0x9b,0xa6,0x17,0x7a,0x1e,0x8f, |
| 0xe1,0xce,0x9f,0x5d,0xf4,0x6e,0x2b,0xf0,0x21,0x39,0x8f,0x02,0xf6,0x5f,0x51,0x79, |
| 0x4d,0xc6,0x3f,0xb4,0x82,0xd4,0xb9,0x94,0x07,0x00,0x00 |
| }; |
| |
| // Generated from: |
| // |
| // #version 450 core |
| // |
| // #extension GL_GOOGLE_include_directive : require |
| // |
| // #extension GL_ARB_shader_stencil_export : require |
| // |
| // layout(set = 0, binding = 1)uniform utexture2D stencil; |
| // |
| // 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 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_FragStencilRefARB = int(texture(usampler2D(stencil, blitSampler), srcImageCoords * params . invSrcExtent). x); |
| // |
| // } |