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.00000002.inc: 9// Pre-generated shader for the ANGLE Vulkan back-end. 10 11#pragma once 12constexpr uint8_t kBlitResolve_frag_00000002[] = { 13 0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x5d,0x94,0x4d,0x68,0x5d,0x55, 14 0x14,0x85,0xcf,0x79,0xff,0x26,0xb1,0x69,0x30,0x49,0x9b,0x9f,0xc6,0x6a,0x23,0x54, 15 0x2c,0xa5,0x04,0x15,0x41,0x2a,0x75,0x64,0x84,0x07,0x92,0x08,0x9d,0x64,0x10,0x84, 16 0x37,0x29,0xc4,0x52,0xd0,0x0c,0x3a,0x09,0x9a,0x49,0x06,0x05,0xc9,0x44,0x69,0x33, 17 0xd0,0xd6,0x0a,0x45,0x5a,0x2d,0x9d,0x55,0x2d,0xfe,0x14,0x25,0x6a,0x50,0xa2,0x06, 18 0x03,0xfe,0x94,0x80,0x96,0x80,0x96,0x80,0x96,0x68,0x53,0x2a,0x75,0xaf,0x7b,0xbf, 19 0x93,0x6c,0xde,0x83,0xcd,0xbd,0x7b,0xad,0x7d,0xf6,0xda,0xeb,0x9c,0x73,0x5f,0xb1, 20 0xb0,0xa7,0x1a,0x42,0x0c,0x2d,0xa1,0x16,0x76,0xc5,0x90,0xfd,0x3a,0x42,0x21,0xe8, 21 0xb5,0x35,0x54,0xb2,0xe7,0x33,0xf5,0xe7,0xeb,0xfb,0x5f,0x7a,0xb9,0xb1,0xff,0xd1, 22 0xc7,0x0e,0x88,0xdf,0x16,0x8a,0x59,0x9d,0xb8,0x76,0xcb,0x4a,0xf6,0x54,0xbc,0xf8, 23 0xc2,0x91,0xa3,0xc2,0xbb,0x2c,0x46,0x2d,0xc6,0x2c,0x1a,0x16,0x13,0x16,0x93,0x16, 24 0x53,0x16,0x33,0x16,0xb3,0x16,0xdb,0xad,0x87,0xd6,0x54,0xd5,0xdf,0xde,0xba,0x32, 25 0x3d,0xf5,0x0b,0x61,0x38,0x94,0x43,0x5f,0x3e,0x4a,0xd8,0xc3,0x33,0x61,0x11,0xac, 26 0xe6,0xb0,0x02,0xd8,0x76,0x87,0x15,0xc1,0x76,0x3a,0xac,0x04,0xd6,0xef,0xb0,0x32, 27 0xd8,0x6e,0x87,0x55,0xc0,0x06,0x1d,0x56,0x05,0xdb,0xeb,0xb0,0x1a,0xd8,0x3e,0x87, 28 0xdd,0x03,0x76,0x20,0xf3,0x55,0xdc,0x9c,0x4f,0x1e,0xb5,0x27,0x03,0xf8,0x51,0x3e, 29 0x46,0x1e,0xc9,0x1b,0xe4,0xa9,0x7e,0x82,0xbc,0x48,0x3e,0x49,0x5e,0x22,0x9f,0x22, 30 0x2f,0x93,0xcf,0x90,0x57,0xc8,0x67,0xc9,0xd3,0x1e,0x9f,0xb5,0xe7,0x83,0x4e,0x5f, 31 0xf9,0x03,0xe4,0xf7,0x99,0x6a,0x21,0xcb,0x8b,0x99,0x5e,0x21,0x3b,0xc7,0x52,0xd6, 32 0x6b,0x37,0x33,0xee,0xb0,0xbc,0x4a,0x7f,0xf1,0xdd,0x56,0xd9,0x0a,0x2f,0xae,0x8d, 33 0x33,0x2c,0x65,0x58,0x29,0x74,0xb2,0x4e,0xf8,0x93,0xe4,0x5d,0xae,0x57,0x37,0xf5, 34 0x49,0xab,0x97,0x5e,0x21,0x9b,0xbb,0x6d,0x73,0xdf,0xbb,0x89,0x0a,0xd1,0xca,0xb3, 35 0xd7,0x85,0xf4,0xfa,0xd9,0xff,0x3e,0xf4,0x94,0xef,0x02,0x7b,0x04,0x2f,0x69,0xff, 36 0x55,0x7f,0x3f,0x5c,0xd5,0xf1,0x83,0xe4,0xe2,0x1f,0x82,0x57,0xff,0x4e,0x9b,0x72, 37 0x2f,0x75,0xca,0x1f,0xa6,0x4f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,0x97,0xce,0x94,0xd3,0x49,0x5c,0x31,0x6e,0xe9,0x54,0x62,0xae,0x33,0xed,0x74, 78 0xaa,0x31,0xc7,0x93,0x4e,0x8b,0xd3,0x11,0x57,0xb3,0x68,0xa1,0x57,0x0d,0x9d,0x19, 79 0xa7,0x93,0xb8,0x16,0xa7,0x73,0x2f,0x3a,0x27,0x9c,0xce,0xb6,0x98,0xe3,0x49,0xa7, 80 0xc3,0xe9,0x88,0x6b,0xb7,0xe8,0xa0,0x57,0x3b,0x3a,0xb3,0x4e,0x27,0x71,0x7a,0xfe, 81 0x67,0x1b,0xf0,0x84,0xc5,0xff,0xae,0xde,0xc7,0xe7,0x7c,0x0c,0x00,0x00 82}; 83 84// Generated from: 85// 86// #version 450 core 87// 88// #extension GL_GOOGLE_include_directive : require 89// 90// #extension GL_EXT_samplerless_texture_functions : require 91// 92// layout(set = 0, binding = 0)uniform texture2DMS color; 93// 94// layout(location = 0)out vec4 colorOut0; 95// layout(location = 1)out vec4 colorOut1; 96// layout(location = 2)out vec4 colorOut2; 97// layout(location = 3)out vec4 colorOut3; 98// layout(location = 4)out vec4 colorOut4; 99// layout(location = 5)out vec4 colorOut5; 100// layout(location = 6)out vec4 colorOut6; 101// layout(location = 7)out vec4 colorOut7; 102// 103// #line 1 "shaders/src/BlitResolve.inc" 104// 105// layout(push_constant)uniform PushConstants { 106// 107// ivec2 offset; 108// vec2 stretch; 109// vec2 invSrcExtent; 110// int srcLayer; 111// int samples; 112// float invSamples; 113// 114// int outputMask; 115// 116// bool flipX; 117// bool flipY; 118// bool rotateXY; 119// } params; 120// 121// ivec2 getSrcImageCoords() 122// { 123// 124// ivec2 srcImageCoords = ivec2(gl_FragCoord . xy); 125// 126// srcImageCoords -= params . offset; 127// 128// if(params . flipX) 129// srcImageCoords . x = - srcImageCoords . x; 130// if(params . flipY) 131// srcImageCoords . y = - srcImageCoords . y; 132// if(params . rotateXY) 133// srcImageCoords . xy = srcImageCoords . yx; 134// 135// return srcImageCoords; 136// } 137// 138// void broadcastColor(vec4 colorValue) 139// { 140// 141// if((params . outputMask &(1 << 0))!= 0) 142// { 143// colorOut0 = colorValue; 144// } 145// if((params . outputMask &(1 << 1))!= 0) 146// { 147// colorOut1 = colorValue; 148// } 149// if((params . outputMask &(1 << 2))!= 0) 150// { 151// colorOut2 = colorValue; 152// } 153// if((params . outputMask &(1 << 3))!= 0) 154// { 155// colorOut3 = colorValue; 156// } 157// if((params . outputMask &(1 << 4))!= 0) 158// { 159// colorOut4 = colorValue; 160// } 161// if((params . outputMask &(1 << 5))!= 0) 162// { 163// colorOut5 = colorValue; 164// } 165// if((params . outputMask &(1 << 6))!= 0) 166// { 167// colorOut6 = colorValue; 168// } 169// if((params . outputMask &(1 << 7))!= 0) 170// { 171// colorOut7 = colorValue; 172// } 173// } 174// 175// #line 123 "shaders/src/BlitResolve.frag" 176// 177// void main() 178// { 179// ivec2 srcImageCoords = getSrcImageCoords(); 180// 181// vec4 colorValue = vec4(0, 0, 0, 0); 182// for(int i = 0;i < params . samples;++ i) 183// { 184// colorValue += texelFetch(color, srcImageCoords, i); 185// } 186// 187// colorValue *= params . invSamples; 188// 189// broadcastColor(colorValue); 190// 191// } 192