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.00000001.inc: 9// Pre-generated shader for the ANGLE Vulkan back-end. 10 11#pragma once 12constexpr uint8_t kBlitResolve_frag_00000001[] = { 13 0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x65,0x94,0x4b,0x6c,0x95,0x65, 14 0x10,0x86,0xbf,0xef,0xdc,0xb5,0x40,0x41,0x8e,0x55,0x7a,0x57,0x6c,0x62,0xc0,0x54, 15 0x16,0x6a,0x9a,0x18,0x0d,0x84,0x05,0x2c,0x08,0xd7,0xa4,0x5d,0x74,0x53,0x93,0x6e, 16 0xce,0x42,0x48,0xa3,0xdd,0x74,0x01,0x26,0x27,0x86,0x4d,0x17,0x6c,0xba,0x41,0xc4, 17 0x22,0x01,0x51,0x14,0xdc,0x19,0x05,0xa2,0x44,0xa1,0x81,0x14,0x68,0x34,0x05,0x1a, 18 0x9a,0xa8,0x98,0x26,0x4a,0x9a,0x28,0x69,0xb4,0xb5,0x09,0xc2,0xcc,0xff,0x3f,0x43, 19 0x27,0xc7,0x26,0xd3,0xef,0x9f,0xf7,0x9d,0x99,0x77,0xe6,0xbb,0x9c,0x6c,0x66,0x6d, 20 0x31,0x84,0x18,0x9e,0x0c,0xa5,0xd0,0x1e,0x43,0xf2,0xb7,0x2a,0x64,0x82,0x7e,0xd6, 21 0x85,0x42,0xb2,0x6e,0xd9,0xb6,0x67,0x5b,0xe7,0x3b,0xef,0xf6,0x77,0xbe,0xf2,0xea, 22 0x06,0xe5,0x57,0x84,0x6c,0x12,0xa7,0x5c,0xbd,0x78,0x39,0x59,0xd5,0xde,0x7e,0xab, 23 0xb2,0x57,0xf1,0xb2,0x58,0x8f,0x58,0x9f,0x58,0x45,0x6c,0x40,0x6c,0x48,0xac,0x2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0x3a,0x9d,0x65,0x31,0xc5,0x4d,0xa7,0xde,0xe9,0x28,0xb7, 78 0x5c,0xac,0x9e,0x5a,0xcb,0xd1,0x19,0x76,0x3a,0xc6,0xd5,0x3b,0x9d,0xa7,0xd0,0x39, 79 0xe4,0x74,0x56,0xc7,0x14,0x37,0x9d,0x06,0xa7,0xa3,0x5c,0x59,0xac,0x81,0x5a,0x65, 80 0x74,0x46,0x9c,0x8e,0x71,0xba,0x3e,0x90,0x57,0xd9,0x25,0xf6,0x08,0x97,0x53,0x2f, 81 0x72,0x8c,0x0c,0x00,0x00 82}; 83 84// Generated from: 85// 86// #version 450 core 87// 88// #extension GL_GOOGLE_include_directive : require 89// 90// layout(set = 0, binding = 0)uniform texture2DArray color; 91// 92// layout(location = 0)out vec4 colorOut0; 93// layout(location = 1)out vec4 colorOut1; 94// layout(location = 2)out vec4 colorOut2; 95// layout(location = 3)out vec4 colorOut3; 96// layout(location = 4)out vec4 colorOut4; 97// layout(location = 5)out vec4 colorOut5; 98// layout(location = 6)out vec4 colorOut6; 99// layout(location = 7)out vec4 colorOut7; 100// 101// layout(set = 0, binding = 2)uniform sampler blitSampler; 102// 103// #line 1 "shaders/src/BlitResolve.inc" 104// 105// layout(push_constant)uniform PushConstants { 106// 107// vec2 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// vec2 getSrcImageCoords() 122// { 123// 124// vec2 srcImageCoords = vec2(gl_FragCoord . xy); 125// 126// srcImageCoords *= params . stretch; 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(vec4 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// vec2 srcImageCoords = getSrcImageCoords(); 182// 183// vec4 colorValue = texture(sampler2DArray(color, blitSampler), vec3(srcImageCoords * params . invSrcExtent, params . srcLayer)); 184// 185// broadcastColor(colorValue); 186// 187// } 188