| // 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.00000004.inc: |
| // Pre-generated shader for the ANGLE Vulkan back-end. |
| |
| #pragma once |
| constexpr uint8_t kBlitResolve_frag_00000004[] = { |
| 0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x5d,0x94,0x5f,0x68,0xd6,0x65, |
| 0x14,0xc7,0x9f,0xe7,0xfd,0xbd,0xef,0xde,0xb9,0xf7,0x2d,0x37,0xa6,0xf3,0xcf,0xde, |
| 0xd9,0xcc,0x18,0xc1,0xc4,0xbc,0xb0,0x50,0xc2,0x30,0x10,0xea,0x42,0xd0,0x0a,0x72, |
| 0x17,0xbb,0x79,0x41,0x2f,0x1a,0x54,0xb0,0xc2,0x9b,0x5d,0x28,0xb8,0xc0,0x9b,0x5d, |
| 0x78,0xb3,0x1b,0x35,0x9b,0x45,0x6a,0xda,0x5d,0xf4,0x47,0x4a,0xfa,0x33,0x92,0x55, |
| 0xa3,0x98,0x36,0x1a,0xd8,0x1f,0x06,0x25,0x03,0x93,0x41,0xca,0xca,0x74,0x78,0xce, |
| 0xf3,0xfb,0x9c,0xed,0xf0,0x0e,0xce,0x7e,0xef,0xf9,0x7e,0xcf,0x39,0xdf,0x73,0x9e, |
| 0xdf,0x79,0x7e,0x59,0x61,0x53,0x39,0x84,0x18,0x5a,0x42,0x73,0xe8,0x8a,0x21,0xfd, |
| 0xb5,0x85,0x42,0xd0,0x9f,0x95,0xd0,0x94,0x9e,0xcf,0xed,0x79,0x69,0xcf,0x96,0x37, |
| 0xde,0x3c,0xb0,0x65,0xdb,0x93,0x5b,0x95,0x7f,0x38,0x64,0x29,0x4e,0xb9,0x95,0xe2, |
| 0x15,0xe5,0xa9,0xf6,0x6a,0xfd,0x95,0xd7,0x14,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14,0xd3,0x5a,0xfa,0x5b,0x75,0x86,0x9d,0x8e,0x71,0xa5,0xb8,0xac, |
| 0xd3,0x8c,0xce,0x31,0xa7,0xb3,0x22,0xe6,0xb8,0xe9,0x54,0x9d,0x8e,0x72,0x2d,0x62, |
| 0x55,0x6a,0xb5,0xa0,0x33,0xe2,0x74,0x8c,0xab,0x3a,0x9d,0x95,0xe8,0x1c,0x77,0x3a, |
| 0xad,0x31,0xc7,0x4d,0xa7,0xdd,0xe9,0x28,0xd7,0x26,0xd6,0x4e,0xad,0x36,0x74,0x46, |
| 0x9d,0x8e,0x71,0xfa,0xbc,0x2f,0x5f,0x95,0xed,0x62,0x0f,0x00,0xb3,0x2b,0x01,0xe5, |
| 0x6c,0x0c,0x00,0x00 |
| }; |
| |
| // Generated from: |
| // |
| // #version 450 core |
| // |
| // #extension GL_GOOGLE_include_directive : require |
| // |
| // layout(set = 0, binding = 0)uniform itexture2D color; |
| // |
| // layout(location = 0)out ivec4 colorOut0; |
| // layout(location = 1)out ivec4 colorOut1; |
| // layout(location = 2)out ivec4 colorOut2; |
| // layout(location = 3)out ivec4 colorOut3; |
| // layout(location = 4)out ivec4 colorOut4; |
| // layout(location = 5)out ivec4 colorOut5; |
| // layout(location = 6)out ivec4 colorOut6; |
| // layout(location = 7)out ivec4 colorOut7; |
| // |
| // 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; |
| // } |
| // |
| // void broadcastColor(ivec4 colorValue) |
| // { |
| // |
| // if((params . outputMask &(1 << 0))!= 0) |
| // { |
| // colorOut0 = colorValue; |
| // } |
| // if((params . outputMask &(1 << 1))!= 0) |
| // { |
| // colorOut1 = colorValue; |
| // } |
| // if((params . outputMask &(1 << 2))!= 0) |
| // { |
| // colorOut2 = colorValue; |
| // } |
| // if((params . outputMask &(1 << 3))!= 0) |
| // { |
| // colorOut3 = colorValue; |
| // } |
| // if((params . outputMask &(1 << 4))!= 0) |
| // { |
| // colorOut4 = colorValue; |
| // } |
| // if((params . outputMask &(1 << 5))!= 0) |
| // { |
| // colorOut5 = colorValue; |
| // } |
| // if((params . outputMask &(1 << 6))!= 0) |
| // { |
| // colorOut6 = colorValue; |
| // } |
| // if((params . outputMask &(1 << 7))!= 0) |
| // { |
| // colorOut7 = colorValue; |
| // } |
| // } |
| // |
| // #line 123 "shaders/src/BlitResolve.frag" |
| // |
| // void main() |
| // { |
| // vec2 srcImageCoords = getSrcImageCoords(); |
| // |
| // ivec4 colorValue = textureLod(isampler2D(color, blitSampler), srcImageCoords * params . invSrcExtent, params . srcMip); |
| // |
| // broadcastColor(colorValue); |
| // |
| // } |