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.0000000A.inc: 9// Pre-generated shader for the ANGLE Vulkan back-end. 10 11#pragma once 12constexpr uint8_t kBlitResolve_frag_0000000A[] = { 13 0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x5d,0x95,0x4b,0x68,0x5d,0x55, 14 0x14,0x86,0xf7,0xb9,0xf7,0xe6,0x24,0xed,0x4d,0x34,0xad,0xb7,0x4d,0xac,0x37,0x4d, 15 0xb4,0x56,0x7c,0x94,0x52,0x88,0x8a,0x20,0x96,0x3a,0xd2,0x4a,0x83,0x98,0x0e,0x3a, 16 0x09,0x18,0xc1,0x0c,0x1c,0xa4,0x58,0x94,0x0c,0x3a,0x30,0xc5,0x4e,0x32,0x28,0x42, 17 0x26,0xd2,0x76,0xa0,0xad,0x15,0x8a,0x88,0x7d,0xcf,0xaa,0x16,0x1f,0xa5,0x12,0x6b, 18 0x50,0xa2,0x06,0x03,0x3e,0x4a,0x40,0x4b,0x40,0x4b,0xc0,0xd4,0xf8,0x08,0x71,0xfd, 19 0xfb,0x7c,0x3b,0x5d,0xdc,0xc0,0xca,0x3e,0xeb,0xff,0xd7,0x5e,0xff,0x5a,0xeb,0xec, 20 0x7d,0x6e,0xb9,0xb4,0xa9,0x39,0x84,0x2c,0xac,0x0e,0x2d,0xa1,0x27,0x0b,0xf1,0x6f, 21 0x4d,0x28,0x05,0x3d,0x56,0x43,0x1e,0xd7,0xa7,0x76,0xed,0xde,0xb5,0xf5,0x95,0x57, 22 0x5f,0xdc,0xfa,0xf0,0x23,0xdb,0xc4,0xdf,0x16,0xca,0x31,0x4e,0xdc,0xed,0xe6,0x55, 23 0x6c,0x95,0x0d,0xbf,0xf0,0xd2,0x5e,0xe1,0x1d,0x66,0xbb,0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b2,0xd3,0x11,0xb7, 77 0x64,0xb6,0x4c,0xae,0x25,0x74,0x46,0x9c,0x4e,0xe2,0x96,0x9d,0x4e,0x29,0x2b,0x74, 78 0xf6,0x3b,0x9d,0x72,0x56,0xe0,0x49,0x27,0xcf,0x6e,0xe9,0x88,0xab,0x98,0x09,0x53, 79 0x2e,0x3d,0x4b,0x67,0xd4,0xe9,0x24,0x4e,0x6b,0xd2,0x59,0x85,0xce,0x41,0xa7,0xb3, 80 0x3a,0x2b,0xf0,0xa4,0xd3,0xe6,0x74,0xc4,0x55,0xcd,0xda,0xc8,0x55,0x45,0x67,0xcc, 81 0xe9,0x24,0xae,0xcd,0xe9,0xb4,0xa3,0x73,0xc8,0xe9,0xac,0xc9,0x0a,0x3c,0xe9,0xd4, 82 0x9c,0x8e,0xb8,0xb5,0x66,0x35,0x72,0xad,0x45,0x67,0xdc,0xe9,0x24,0x4e,0xeb,0x92, 83 0xdd,0xbe,0xc7,0xcc,0xfe,0x07,0x7d,0xe5,0xad,0x67,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 utexture2DMS color; 95// 96// layout(location = 0)out uvec4 colorOut0; 97// layout(location = 1)out uvec4 colorOut1; 98// layout(location = 2)out uvec4 colorOut2; 99// layout(location = 3)out uvec4 colorOut3; 100// layout(location = 4)out uvec4 colorOut4; 101// layout(location = 5)out uvec4 colorOut5; 102// layout(location = 6)out uvec4 colorOut6; 103// layout(location = 7)out uvec4 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(uvec4 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// uvec4 colorValue = uvec4(0, 0, 0, 0); 184// for(int i = 0;i < params . samples;++ i) 185// { 186// colorValue += texelFetch(color, srcImageCoords, i); 187// } 188// 189// colorValue = uvec4(round(colorValue * params . invSamples)); 190// 191// broadcastColor(colorValue); 192// 193// } 194