1// GENERATED FILE - DO NOT EDIT. 2// Generated by gen_vk_internal_shaders.py. 3// 4// Copyright 2018 The ANGLE Project Authors. All rights reserved. 5// Use of this source code is governed by a BSD-style license that can be 6// found in the LICENSE file. 7// 8// shaders/gen/BlitResolve.frag.00000006.inc: 9// Pre-generated shader for the ANGLE Vulkan back-end. 10 11#pragma once 12constexpr uint8_t kBlitResolve_frag_00000006[] = { 13 0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x5d,0x95,0x4b,0x68,0x5d,0x65, 14 0x14,0x85,0xcf,0xb9,0xe7,0xe6,0xde,0xb4,0xb7,0xb1,0x69,0x93,0x26,0x6a,0x6e,0x9a, 15 0x68,0xad,0xf8,0x28,0xa5,0x10,0x15,0x41,0x2c,0x75,0xa4,0x95,0x06,0x31,0x1d,0x74, 16 0x12,0x30,0x82,0x19,0x38,0x48,0xa5,0x28,0x19,0x74,0x60,0x8a,0x9d,0x64,0x50,0x84, 17 0x4c,0xa4,0xed,0x40,0x5b,0x2b,0x14,0x11,0xab,0xd6,0xce,0xaa,0x16,0x1f,0xa5,0x12, 18 0x6b,0x50,0xa2,0x0d,0x06,0x7c,0x94,0x80,0x96,0x80,0x96,0x80,0xa9,0xf1,0x11,0xe2, 19 0x5e,0xe7,0x7c,0x3b,0xdd,0xdc,0xc0,0xee,0x39,0x7b,0xad,0xfd,0xef,0xb5,0xd7,0x7f, 20 0xfe,0xff,0x36,0x2b,0x6d,0xa9,0x26,0x49,0x9a,0xac,0x4d,0x9a,0x93,0xde,0x34,0xc9, 21 0xff,0x36,0x24,0xa5,0x44,0xaf,0xb5,0xa4,0x92,0x3f,0x1f,0xdf,0xb3,0x77,0xcf,0xf6, 22 0x17,0x5f,0x7a,0x6e,0xfb,0x03,0x0f,0xee,0x10,0x7f,0x4b,0x92,0xe5,0x75,0xe2,0xd6, 23 0x5b,0x56,0xb6,0xa7,0x62,0xe4,0xd9,0xe7,0xf7,0x0b,0xef,0xb0,0xd8,0x6b,0x31,0x68, 24 0x31,0x2c,0xdc,0x62,0xd4,0x62,0xcc,0x62,0xdc,0x62,0xc2,0xa2,0xd5,0x7a,0x68,0x4d, 25 0x55,0xfd,0xed,0xad,0x23,0xd7,0x53,0xbf,0x24,0x79,0x22,0x69,0x4a,0xea,0xc5,0x28, 26 0xc9,0x16,0x9e,0x8e,0xa5,0x60,0xcd,0x01,0x2b,0x81,0xb5,0x06,0x2c,0x03,0xbb,0x35, 27 0x60,0x65,0xb0,0x7a,0xc0,0x9a,0xc0,0x7a,0x03,0x56,0x01,0xbb,0x2b,0x60,0x55,0xb0, 28 0x7b,0x02,0xd6,0x0c,0xb6,0x2d,0x60,0x6b,0xc0,0x76,0xe4,0xbe,0xb2,0xd5,0xf9,0xe4, 29 0x51,0x7b,0xb2,0x19,0x3f,0xca,0x07,0xc9,0x53,0xf2,0x61,0x72,0xaf,0x1f,0x21,0xcf, 30 0xc8,0x47,0xc9,0xcb,0xe4,0x63,0xe4,0x4d,0xe4,0xe3,0xe4,0x15,0xf2,0x09,0x72,0xdf, 31 0xe3,0x53,0xf6,0xbc,0x33,0xe8,0x2b,0xbf,0x83,0xbc,0xcd,0x54,0x4b,0x79,0x9e,0xe5, 32 0x7a,0x7a,0xdf,0x64,0x35,0x15,0xf6,0x46,0x33,0x76,0x5a,0x5e,0xa5,0x7f,0x89,0xbc, 33 0x46,0x5e,0xce,0xbf,0x7b,0x66,0x7d,0x8a,0x7a,0x71,0xed,0x79,0xdf,0x82,0xeb,0xb5, 34 0x7f,0x37,0xd1,0x47,0xf8,0x23,0xe4,0x1d,0xa1,0x77,0x27,0xf5,0xae,0xdd,0x45,0xaf, 35 0x24,0xf7,0xb1,0x6e,0xf5,0x3b,0x74,0x12,0x15,0xa2,0x8d,0x67,0x57,0x08,0xe9,0x75, 36 0xf3,0x3d,0xea,0xe8,0x75,0xb3,0x1f,0xc2,0xee,0xc7,0x5b,0x0f,0xfd,0x55,0xdf,0x0b, 37 0x57,0x0d,0xfc,0x56,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a5,0xbb,0xf9,0x16,0xf7, 64 0xf2,0x19,0xe6,0x3c,0x0d,0x26,0x6f,0xbb,0xe8,0x7b,0xc8,0x74,0x6a,0xcc,0x2d,0x1f, 65 0xa7,0x93,0x02,0xab,0x30,0xaf,0x6a,0xfa,0x1b,0xbc,0x4b,0xeb,0x05,0xee,0xea,0xbb, 66 0xac,0x93,0x27,0xdd,0xf3,0xf7,0xf1,0x74,0x86,0x39,0xda,0x72,0x2f,0x05,0xfe,0xaa, 67 0xd5,0x68,0xcd,0x59,0xd6,0x09,0x5f,0x67,0x4a,0xc2,0x3e,0x0c,0xbf,0x33,0x67,0xb9, 68 0xdf,0x9a,0xeb,0x1c,0x9c,0xef,0xd9,0x8f,0xf4,0xdf,0x1d,0xf6,0xec,0x27,0xf0,0x4b, 69 0xcc,0xfd,0x33,0x58,0x7f,0x38,0x33,0xbf,0x80,0xf7,0x70,0x66,0xe6,0xc2,0x1e,0x8a, 70 0xbb,0x6a,0x31,0x87,0xbf,0xab,0xf9,0xf9,0xcb,0xf2,0xff,0x03,0xce,0xe1,0xdd,0xb9, 71 0xb9,0xa0,0xf3,0x2b,0x3a,0xfb,0x82,0xce,0x6f,0xe0,0xae,0x33,0x1f,0x74,0xc4,0x5d, 72 0xb3,0x98,0xa7,0xd7,0x35,0x74,0x06,0x83,0x8e,0x73,0xf3,0x41,0xe7,0x77,0x74,0x86, 73 0x82,0xce,0x1f,0xe0,0xae,0xb3,0x10,0x74,0xc4,0x5d,0xb7,0x58,0xa0,0xd7,0x75,0x74, 74 0x86,0x83,0x8e,0x73,0x0b,0x41,0xe7,0x4f,0x74,0xfa,0x82,0xce,0x22,0xb8,0xeb,0x2c, 75 0x05,0x9d,0xc5,0xfc,0x4c,0x26,0x39,0xa6,0x5e,0x37,0xd0,0x19,0x09,0x3a,0xce,0x2d, 76 0x05,0x9d,0x7f,0xd1,0x39,0x10,0x74,0xfe,0x03,0x77,0x9d,0x95,0xa0,0x23,0x6e,0xd9, 77 0x62,0x85,0x5e,0xcb,0xe8,0x8c,0x06,0x1d,0xe7,0x56,0x82,0x4e,0x29,0x2d,0x74,0x0e, 78 0x06,0x9d,0x2c,0x2d,0x70,0xd7,0xa9,0xa4,0x37,0x75,0xc4,0x95,0x2d,0x84,0xa9,0x97, 79 0xde,0xa5,0x33,0x16,0x74,0x9c,0xd3,0xd3,0x75,0xd6,0xa0,0x73,0x38,0xe8,0xac,0x4d, 80 0x0b,0xdc,0x75,0x5a,0x82,0x8e,0xb8,0x9a,0x45,0x0b,0xbd,0x6a,0xe8,0x8c,0x07,0x1d, 81 0xe7,0x5a,0x82,0x4e,0x2b,0x3a,0x47,0x82,0xce,0x86,0xb4,0xc0,0x5d,0xa7,0x3d,0xe8, 82 0x88,0xdb,0x68,0xd1,0x4e,0xaf,0x8d,0xe8,0x4c,0x04,0x1d,0xe7,0xf4,0x5c,0xb6,0xdb, 83 0xf7,0xb0,0xc5,0xff,0x7c,0x50,0x47,0x18,0xb4,0x0c,0x00,0x00 84}; 85 86// Generated from: 87// 88// #version 450 core 89// 90// #extension GL_GOOGLE_include_directive : require 91// 92// #extension GL_EXT_samplerless_texture_functions : require 93// 94// layout(set = 0, binding = 0)uniform itexture2DMS color; 95// 96// layout(location = 0)out ivec4 colorOut0; 97// layout(location = 1)out ivec4 colorOut1; 98// layout(location = 2)out ivec4 colorOut2; 99// layout(location = 3)out ivec4 colorOut3; 100// layout(location = 4)out ivec4 colorOut4; 101// layout(location = 5)out ivec4 colorOut5; 102// layout(location = 6)out ivec4 colorOut6; 103// layout(location = 7)out ivec4 colorOut7; 104// 105// #line 1 "shaders/src/BlitResolve.inc" 106// 107// layout(push_constant)uniform PushConstants { 108// 109// ivec2 offset; 110// vec2 stretch; 111// vec2 invSrcExtent; 112// int srcLayer; 113// int samples; 114// float invSamples; 115// 116// int outputMask; 117// 118// bool flipX; 119// bool flipY; 120// bool rotateXY; 121// } params; 122// 123// ivec2 getSrcImageCoords() 124// { 125// 126// ivec2 srcImageCoords = ivec2(gl_FragCoord . xy); 127// 128// srcImageCoords -= params . offset; 129// 130// if(params . flipX) 131// srcImageCoords . x = - srcImageCoords . x; 132// if(params . flipY) 133// srcImageCoords . y = - srcImageCoords . y; 134// if(params . rotateXY) 135// srcImageCoords . xy = srcImageCoords . yx; 136// 137// return srcImageCoords; 138// } 139// 140// void broadcastColor(ivec4 colorValue) 141// { 142// 143// if((params . outputMask &(1 << 0))!= 0) 144// { 145// colorOut0 = colorValue; 146// } 147// if((params . outputMask &(1 << 1))!= 0) 148// { 149// colorOut1 = colorValue; 150// } 151// if((params . outputMask &(1 << 2))!= 0) 152// { 153// colorOut2 = colorValue; 154// } 155// if((params . outputMask &(1 << 3))!= 0) 156// { 157// colorOut3 = colorValue; 158// } 159// if((params . outputMask &(1 << 4))!= 0) 160// { 161// colorOut4 = colorValue; 162// } 163// if((params . outputMask &(1 << 5))!= 0) 164// { 165// colorOut5 = colorValue; 166// } 167// if((params . outputMask &(1 << 6))!= 0) 168// { 169// colorOut6 = colorValue; 170// } 171// if((params . outputMask &(1 << 7))!= 0) 172// { 173// colorOut7 = colorValue; 174// } 175// } 176// 177// #line 123 "shaders/src/BlitResolve.frag" 178// 179// void main() 180// { 181// ivec2 srcImageCoords = getSrcImageCoords(); 182// 183// ivec4 colorValue = ivec4(0, 0, 0, 0); 184// for(int i = 0;i < params . samples;++ i) 185// { 186// colorValue += texelFetch(color, srcImageCoords, i); 187// } 188// 189// colorValue = ivec4(round(colorValue * params . invSamples)); 190// 191// broadcastColor(colorValue); 192// 193// } 194