| // 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.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,0xeb,0x4b,0x94,0x41, |
| 0x14,0x87,0x67,0x2f,0xee,0xaa,0x51,0x1a,0xb6,0x6a,0x1a,0x61,0x99,0xd1,0x0d,0x11, |
| 0xb4,0x08,0x22,0xa1,0x0f,0x51,0xe0,0x9a,0x97,0x55,0x31,0xb3,0x36,0x73,0xb7,0xb4, |
| 0x4c,0xc5,0x35,0x31,0xe9,0x22,0x89,0x95,0x14,0x5b,0x49,0x06,0x41,0xb7,0xef,0xfd, |
| 0x7d,0xd1,0x05,0x82,0xce,0x99,0xf7,0x99,0x38,0xac,0x30,0xbe,0xef,0x79,0xe6,0xdc, |
| 0x7e,0xef,0x99,0xd9,0x44,0xbc,0x3d,0xed,0x5c,0xcc,0xd5,0xba,0x6a,0xf7,0xcd,0x45, |
| 0x7f,0x7b,0x5d,0x5c,0x48,0xf4,0xdc,0x69,0x70,0xb2,0x57,0xe3,0x72,0x83,0x63,0xf9, |
| 0x8b,0xe3,0x23,0xf9,0xd2,0xcc,0x54,0xa1,0xb8,0x94,0x2f,0x2d,0x17,0xe7,0xa7,0x67, |
| 0xe7,0xf2,0xc5,0xd5,0xc5,0x85,0xa5,0x65,0xf1,0xdd,0xe5,0x52,0x3e,0xe6,0x52,0x36, |
| 0x97,0xed,0x2c,0x2d,0x17,0x3a,0x7b,0x4e,0x77,0x69,0xae,0x3d,0x2e,0xe1,0x73,0xea, |
| 0x5e,0x9d,0x4b,0xbb,0xa4,0x3c,0x75,0xdd,0x9f,0x9a,0x9d,0x77,0x9e,0x39,0x97,0x95, |
| 0x55,0x2f,0x7e,0xca,0xd3,0x9a,0x43,0xde,0xea,0x7c,0xce,0x68,0xff,0xb2,0xab,0x72, |
| 0x4d,0xf4,0xd6,0xce,0x33,0xb0,0x18,0xac,0xda,0xb0,0x38,0xac,0xde,0xb0,0x04,0xac, |
| 0xd9,0xb0,0x24,0xec,0x80,0x61,0x55,0xb0,0x36,0xc3,0x52,0xb0,0x23,0x86,0xa5,0x61, |
| 0xc7,0x0c,0xab,0x86,0x9d,0x32,0xac,0x06,0xd6,0x65,0x58,0x2d,0xac,0xc7,0x6b,0x4d, |
| 0xfc,0xef,0x59,0x75,0x67,0xd1,0xfd,0xa1,0x21,0xb2,0x07,0xe4,0xfd,0x30,0x9a,0x83, |
| 0x7d,0x08,0xdd,0x6a,0xe7,0x2a,0xf6,0x73,0xec,0x6b,0xbe,0x06,0xf9,0x1f,0xf7,0x76, |
| 0xc2,0xeb,0xd7,0xf7,0x46,0x79,0x4b,0xa1,0xaf,0x49,0xfc,0xd3,0xe8,0x8b,0x63,0xef, |
| 0xc6,0x4e,0x7a,0x9f,0xa4,0xcc,0x2f,0xaa,0xa5,0xfc,0x1c,0x76,0x1d,0x2c,0x23,0x76, |
| 0x86,0x5c,0xc1,0x6e,0xc4,0xd6,0xbf,0x83,0x12,0x15,0xbe,0x55,0x58,0x19,0xb3,0x52, |
| 0x3c,0x1b,0xcd,0xd2,0x9a,0xcd,0x7c,0xb7,0x26,0x6a,0xaa,0xbd,0x1f,0x76,0x92,0x9a, |
| 0x2d,0xd4,0x54,0xff,0x56,0xf6,0xd2,0x66,0x3f,0xf4,0x10,0xec,0x0e,0xe6,0xa3,0xfe, |
| 0x47,0xf1,0xd7,0x7a,0xfb,0x44,0xf9,0x71,0xfc,0xd4,0x3e,0x51,0x11,0xd7,0x5d,0x51, |
| 0xb7,0x97,0xf9,0x69,0x9e,0x3e,0xce,0x55,0x86,0x3e,0xfb,0x38,0xcb,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
| 0xf2,0x78,0x8d,0x50,0x9c,0x08,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 utexture2DArray 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 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_FragStencilRefARB = int(textureLod(usampler2DArray(stencil, blitSampler), vec3(srcImageCoords * params . invSrcExtent, params . srcLayer), params . srcMip). x); |
| // |
| // } |