| // 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.00000007.inc: |
| // Pre-generated shader for the ANGLE Vulkan back-end. |
| |
| #pragma once |
| constexpr uint8_t kBlitResolve_frag_00000007[] = { |
| 0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x5d,0x95,0x4d,0x6c,0x55,0x65, |
| 0x10,0x86,0xcf,0xb9,0xf7,0xf6,0xde,0xd2,0x6b,0xb5,0x40,0x69,0x69,0x6e,0xa1,0x85, |
| 0x52,0xfc,0x23,0x84,0x04,0x34,0x26,0x46,0xa2,0x2b,0xc5,0xd0,0xa8,0x65,0xc1,0xa6, |
| 0x89,0x35,0xb1,0x0b,0x17,0xc5,0x10,0x4d,0x17,0x2c,0x2c,0x91,0x4d,0x17,0xc4,0xa4, |
| 0x1b,0x03,0x2c,0x50,0x10,0xe3,0x4f,0x09,0x51,0x23,0x2a,0xb2,0x43,0xc5,0x3f,0xa2, |
| 0xa9,0xda,0x68,0xaa,0x36,0x36,0xf1,0x87,0x34,0x51,0xd2,0xc4,0x62,0xfd,0x69,0xea, |
| 0xbc,0xe7,0x3c,0x03,0x93,0x7b,0x93,0xe9,0x77,0xe6,0x7d,0xe7,0x9b,0xf7,0x9b,0x39, |
| 0xf3,0x9d,0x16,0x0b,0x3d,0x95,0x24,0x49,0x93,0xa6,0xa4,0x31,0xb9,0x39,0x4d,0xb2, |
| 0xdf,0xca,0xa4,0x90,0xe8,0xb1,0x9a,0x94,0xb3,0xf5,0xfe,0xdd,0x7b,0x76,0x6f,0x7d, |
| 0xea,0xe9,0xc7,0xb7,0xee,0xb8,0x63,0x9b,0xf8,0x1b,0x93,0x62,0x16,0x27,0xee,0x26, |
| 0xf3,0x4a,0xb6,0xca,0x86,0x1f,0x7b,0x62,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74, |
| 0x16,0xc0,0x5d,0x67,0x31,0xe8,0x2c,0x64,0xf3,0x98,0x64,0x98,0x72,0x5d,0x45,0x67, |
| 0x28,0xe8,0x38,0xb7,0x18,0x74,0xfe,0x45,0xa7,0x37,0xe8,0xfc,0x07,0xee,0x3a,0xcb, |
| 0x41,0x47,0xdc,0x92,0xd9,0x32,0xb9,0x96,0xd0,0x19,0x0e,0x3a,0xce,0x2d,0x07,0x9d, |
| 0x42,0x9a,0xeb,0xec,0x0f,0x3a,0xc5,0x34,0xc7,0x5d,0xa7,0x9c,0x5e,0xd7,0x11,0x57, |
| 0x32,0x13,0xa6,0x5c,0x7a,0x96,0xce,0x48,0xd0,0x71,0x4e,0xab,0xeb,0xac,0x40,0xe7, |
| 0x40,0xd0,0x69,0x4a,0x73,0xdc,0x75,0x9a,0x83,0x8e,0xb8,0xaa,0x59,0x33,0xb9,0xaa, |
| 0xe8,0x8c,0x06,0x1d,0xe7,0x9a,0x83,0x4e,0x0b,0x3a,0x87,0x82,0xce,0xca,0x34,0xc7, |
| 0x5d,0xa7,0x35,0xe8,0x88,0x5b,0x65,0xd6,0x4a,0xae,0x55,0xe8,0x8c,0x05,0x1d,0xe7, |
| 0x5a,0x83,0x4e,0x3b,0x3a,0x87,0x83,0xce,0xda,0x34,0xc7,0x5d,0xa7,0x16,0x74,0xc4, |
| 0x75,0x98,0xd5,0xc8,0xd5,0x81,0xce,0x78,0xd0,0x71,0x4e,0xeb,0x92,0xdd,0xbe,0xbb, |
| 0xcc,0xfe,0x07,0x45,0x1b,0x13,0x71,0x50,0x0d,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 itexture2DMSArray 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 srcMip; |
| // 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, ivec3(srcImageCoords, params . srcLayer), i); |
| // } |
| // |
| // colorValue = ivec4(round(colorValue * params . invSamples)); |
| // |
| // broadcastColor(colorValue); |
| // |
| // } |