| // 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.00000006.inc: |
| // Pre-generated shader for the ANGLE Vulkan back-end. |
| |
| #pragma once |
| constexpr uint8_t kBlitResolve_frag_00000006[] = { |
| 0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x5d,0x95,0x4b,0x68,0x5d,0x65, |
| 0x14,0x85,0xcf,0xb9,0xe7,0xe6,0xde,0xb4,0xb7,0xb1,0x69,0x93,0x26,0x6a,0x6e,0x9a, |
| 0x68,0xad,0xf8,0x28,0xa5,0x10,0x15,0x41,0x2c,0x75,0xa4,0x95,0x06,0x31,0x1d,0x74, |
| 0x12,0x30,0x82,0x19,0x38,0x48,0xa5,0x28,0x19,0x74,0x60,0x8a,0x9d,0x64,0x50,0x84, |
| 0x4c,0xa4,0xed,0x40,0x5b,0x2b,0x14,0x11,0xab,0xd6,0xce,0xaa,0x16,0x1f,0xa5,0x12, |
| 0x6b,0x50,0xa2,0x0d,0x06,0x7c,0x94,0x80,0x96,0x80,0x96,0x80,0xa9,0xf1,0x11,0xe2, |
| 0x5e,0xe7,0x7c,0x3b,0xdd,0xdc,0xc0,0xee,0x39,0x7b,0xad,0xfd,0xef,0xb5,0xd7,0x7f, |
| 0xfe,0xff,0x36,0x2b,0x6d,0xa9,0x26,0x49,0x9a,0xac,0x4d,0x9a,0x93,0xde,0x34,0xc9, |
| 0xff,0x36,0x24,0xa5,0x44,0xaf,0xb5,0xa4,0x92,0x3f,0x1f,0xdf,0xb3,0x77,0xcf,0xf6, |
| 0x17,0x5f,0x7a,0x6e,0xfb,0x03,0x0f,0xee,0x10,0x7f,0x4b,0x92,0xe5,0x75,0xe2,0xd6, |
| 0x5b,0x56,0xb6,0xa7,0x62,0xe4,0xd9,0xe7,0xf7,0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d,0x7f,0xd1,0x39,0x10,0x74,0xfe,0x03,0x77,0x9d,0x95,0xa0,0x23,0x6e,0xd9, |
| 0x62,0x85,0x5e,0xcb,0xe8,0x8c,0x06,0x1d,0xe7,0x56,0x82,0x4e,0x29,0x2d,0x74,0x0e, |
| 0x06,0x9d,0x2c,0x2d,0x70,0xd7,0xa9,0xa4,0x37,0x75,0xc4,0x95,0x2d,0x84,0xa9,0x97, |
| 0xde,0xa5,0x33,0x16,0x74,0x9c,0xd3,0xd3,0x75,0xd6,0xa0,0x73,0x38,0xe8,0xac,0x4d, |
| 0x0b,0xdc,0x75,0x5a,0x82,0x8e,0xb8,0x9a,0x45,0x0b,0xbd,0x6a,0xe8,0x8c,0x07,0x1d, |
| 0xe7,0x5a,0x82,0x4e,0x2b,0x3a,0x47,0x82,0xce,0x86,0xb4,0xc0,0x5d,0xa7,0x3d,0xe8, |
| 0x88,0xdb,0x68,0xd1,0x4e,0xaf,0x8d,0xe8,0x4c,0x04,0x1d,0xe7,0xf4,0x5c,0xb6,0xdb, |
| 0xf7,0xb0,0xc5,0xff,0x7c,0x50,0x47,0x18,0xb4,0x0c,0x00,0x00 |
| }; |
| |
| // Generated from: |
| // |
| // #version 450 core |
| // |
| // #extension GL_GOOGLE_include_directive : require |
| // |
| // #extension GL_EXT_samplerless_texture_functions : require |
| // |
| // layout(set = 0, binding = 0)uniform itexture2DMS 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; |
| // |
| // #line 1 "shaders/src/BlitResolve.inc" |
| // |
| // layout(push_constant)uniform PushConstants { |
| // |
| // ivec2 offset; |
| // vec2 stretch; |
| // vec2 invSrcExtent; |
| // int srcLayer; |
| // int samples; |
| // float invSamples; |
| // |
| // int outputMask; |
| // |
| // bool flipX; |
| // bool flipY; |
| // bool rotateXY; |
| // } params; |
| // |
| // ivec2 getSrcImageCoords() |
| // { |
| // |
| // ivec2 srcImageCoords = ivec2(gl_FragCoord . xy); |
| // |
| // 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() |
| // { |
| // ivec2 srcImageCoords = getSrcImageCoords(); |
| // |
| // ivec4 colorValue = ivec4(0, 0, 0, 0); |
| // for(int i = 0;i < params . samples;++ i) |
| // { |
| // colorValue += texelFetch(color, srcImageCoords, i); |
| // } |
| // |
| // colorValue = ivec4(round(colorValue * params . invSamples)); |
| // |
| // broadcastColor(colorValue); |
| // |
| // } |