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/BlitResolveStencilNoExport.comp.00000000.inc: 9// Pre-generated shader for the ANGLE Vulkan back-end. 10 11#pragma once 12constexpr uint8_t kBlitResolveStencilNoExport_comp_00000000[] = { 13 0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x6d,0x96,0x6d,0x4c,0x95,0x65, 14 0x18,0xc7,0x9f,0x73,0x0e,0x9c,0x83,0x47,0x01,0x49,0x50,0x5e,0x7c,0x89,0x70,0x5a, 15 0x1d,0x66,0xb6,0x25,0xd9,0x94,0x44,0x97,0xa6,0xe0,0x32,0x35,0x58,0xcd,0x0a,0x6a, 16 0x7d,0x81,0x2d,0x65,0xcb,0x0f,0x02,0x4e,0xe3,0x6d,0xab,0x2c,0x58,0xc1,0x66,0x51, 17 0xc9,0x4c,0x0d,0x2d,0xd3,0x2c,0x5b,0xcc,0x0f,0x30,0x97,0x99,0x5b,0x5b,0x12,0x9b, 18 0x65,0x5b,0xcb,0x97,0xbe,0xb5,0xf5,0xcd,0x22,0x94,0x5e,0xae,0xeb,0x7e,0x7e,0xb7, 19 0xbb,0x76,0xd6,0xd9,0xee,0x3d,0xcf,0xfd,0xbf,0x5e,0xff,0xd7,0x7d,0xdd,0xd7,0x79, 20 0x62,0xd1,0xb2,0x44,0x10,0x44,0x82,0x64,0x90,0x15,0x14,0x47,0x02,0xf7,0xcb,0x0b, 21 0xa2,0x81,0xbe,0x4e,0x0f,0xe2,0xee,0xf9,0xe8,0xc6,0xad,0x1b,0x97,0xbc,0xb4,0xf3, 22 0x85,0x25,0x0f,0x2c,0x5b,0xaa,0xf2,0x9c,0x20,0xe6,0xf4,0x54,0x96,0x2b,0x3a,0x99, 23 0xf2,0xcc,0x90,0xf5,0xe2,0x73,0x8d,0xdb,0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eb,0x73,0xb5,0x68,0xe5,0x32,0x0b,0xb3,0xb9,0x47,0x95,0xc4,0xcd, 51 0x03,0xef,0x12,0x9d,0xa4,0xbb,0xdf,0x21,0xa6,0x77,0x69,0x37,0xb9,0xe7,0x83,0x7b, 52 0x3f,0xb3,0xf1,0x53,0x60,0xfc,0xcc,0x01,0xf7,0x36,0x85,0x60,0x8f,0x8b,0x4d,0x82, 53 0xd9,0x91,0x0f,0xae,0x7e,0x4a,0x99,0x39,0x0b,0xb8,0x17,0x95,0xdc,0xc3,0x32,0xf0, 54 0x4d,0x62,0x95,0x60,0xde,0x96,0xb1,0xa2,0xf0,0xfe,0x5c,0xec,0x17,0x33,0x77,0x17, 55 0xe2,0x7b,0x40,0xec,0xf5,0xde,0xdc,0x03,0xae,0x35,0x49,0x51,0x93,0x9b,0x22,0x53, 56 0xfc,0x5e,0x57,0xef,0xb0,0x2e,0xfa,0x3e,0x29,0xcf,0xeb,0xec,0x53,0x26,0xe6,0x7d, 57 0x26,0xa6,0xef,0xc3,0x97,0xe1,0x71,0x3f,0xf1,0x54,0x67,0x07,0xb3,0x64,0x19,0xb8, 58 0xf2,0xd2,0xfb,0xb9,0x1c,0x5e,0x15,0xf0,0x52,0x9d,0x87,0xc0,0xbb,0xb9,0xa3,0x2b, 59 0xb0,0x53,0xbc,0x1d,0x6c,0x15,0x78,0xa5,0xf1,0xb5,0x1a,0x5f,0x55,0xc6,0xd7,0x1a, 60 0xf0,0x4e,0xec,0x1e,0xc1,0x76,0x0d,0x76,0xeb,0xdc,0xdc,0x0e,0xed,0xd6,0x9a,0x33, 61 0x5a,0x0f,0xfe,0xb1,0xe8,0x68,0xad,0x36,0x80,0xe5,0x50,0xaf,0x1a,0x53,0x2f,0x95, 62 0x55,0xcb,0xaa,0xa1,0x3e,0xd5,0x6e,0x26,0x64,0xba,0xbb,0xfd,0x18,0x31,0xf5,0xb7, 63 0x97,0xfb,0xbe,0x09,0x7c,0x8b,0x9c,0xbe,0xe6,0xf4,0x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,0x45,0xfb,0xfd,0x33,0xe4,0xfa,0xfb,0x06,0xec,0x0b,0xf0, 91 0xd3,0xfc,0xc7,0x6b,0x7d,0xbf,0xa4,0xbf,0x75,0x26,0x9d,0x43,0x6f,0x18,0x5d,0x95, 92 0x7d,0x0d,0x76,0x86,0x3b,0x34,0x4c,0xed,0x3c,0xf7,0x41,0x73,0xc7,0xf4,0x5e,0xdd, 93 0xa2,0x4f,0xce,0x50,0x23,0xad,0xdd,0x68,0xda,0x5c,0x19,0x91,0x75,0x1e,0xfb,0x11, 94 0x73,0xb6,0x67,0x99,0x05,0xbe,0xb7,0xbe,0x32,0xbd,0xd5,0x0e,0x76,0x0e,0xfc,0xac, 95 0x99,0xcd,0x37,0xc0,0xa7,0xcc,0x6c,0x1e,0xc5,0xff,0x79,0xe3,0xff,0x02,0xf3,0xc4, 96 0xfb,0xfa,0x96,0xfb,0x71,0xc1,0xf8,0x9a,0x00,0x9f,0x32,0x33,0xd4,0xfb,0x1a,0x35, 97 0xb3,0x46,0xe7,0xcb,0x0d,0xb8,0x4c,0xc0,0x47,0x75,0xdb,0xd0,0x6d,0xe3,0x3b,0x21, 98 0xce,0x4c,0xb9,0x69,0x66,0xa0,0x9f,0x5d,0xad,0xa6,0xf7,0x7f,0xa0,0x07,0x2e,0x99, 99 0xde,0xff,0x11,0x7c,0x37,0xff,0x15,0x97,0xc1,0xfc,0xf7,0xd9,0x4f,0x7c,0x57,0x5d, 100 0x26,0x96,0x62,0x3f,0x83,0xe7,0x39,0xdf,0x71,0xf7,0x7d,0x79,0x85,0x6f,0xd0,0x2a, 101 0xe4,0x0f,0xcb,0x99,0x5c,0xe1,0x3c,0xed,0x77,0x8f,0x3e,0xff,0x96,0x0a,0x2e,0x97, 102 0xf5,0x1f,0x73,0x58,0x0a,0xd2,0xe4,0x0f,0x00,0x00 103}; 104 105// Generated from: 106// 107// #version 450 core 108// 109// layout(local_size_x = 8, local_size_y = 8, local_size_z = 1)in; 110// 111// layout(push_constant)uniform PushConstants { 112// 113// vec2 offset; 114// vec2 stretch; 115// vec2 invSrcExtent; 116// int srcLayer; 117// int srcWidth; 118// int srcHeight; 119// 120// bool flipX; 121// bool flipY; 122// bool rotateXY; 123// 124// ivec4 blitArea; 125// int destPitch; 126// } params; 127// 128// layout(set = 0, binding = 0)buffer dst 129// { 130// 131// uint destData[]; 132// }; 133// 134// layout(set = 0, binding = 1)uniform utexture2D stencil; 135// 136// layout(set = 0, binding = 2)uniform sampler blitSampler; 137// 138// void main() 139// { 140// ivec2 destSubImageCoords = ivec2(gl_GlobalInvocationID . x * 4, gl_GlobalInvocationID . y); 141// if(any(lessThanEqual(params . blitArea . zw, destSubImageCoords))) 142// { 143// return; 144// } 145// 146// destSubImageCoords += params . blitArea . xy; 147// vec2 srcImageCoords = vec2(destSubImageCoords); 148// 149// srcImageCoords *= params . stretch; 150// srcImageCoords += vec2(0.5); 151// 152// srcImageCoords -= params . offset; 153// 154// if(params . flipX) 155// srcImageCoords . x = - srcImageCoords . x; 156// if(params . flipY) 157// srcImageCoords . y = - srcImageCoords . y; 158// if(params . rotateXY) 159// srcImageCoords . xy = srcImageCoords . yx; 160// 161// int xDir = 0, yDir = 0; 162// if(params . rotateXY) 163// { 164// yDir = params . flipY ? - 1 : 1; 165// } 166// else 167// { 168// xDir = params . flipX ? - 1 : 1; 169// } 170// 171// uint outStencils = 0; 172// 173// for(int i = 0;i < 4;++ i) 174// { 175// 176// if((srcImageCoords . x >= 0 && srcImageCoords . x < params . srcWidth)&& 177// (srcImageCoords . y >= 0 && srcImageCoords . y < params . srcHeight)) 178// { 179// 180// uint stencilValue = texture(usampler2D(stencil, blitSampler), srcImageCoords * params . invSrcExtent). x; 181// 182// outStencils |=(stencilValue & 0xFF)<<(i * 8); 183// 184// } 185// 186// if(params . rotateXY) 187// { 188// srcImageCoords . y += yDir; 189// } 190// else 191// { 192// srcImageCoords . x += xDir; 193// } 194// } 195// 196// destData[gl_GlobalInvocationID . y * params . destPitch + gl_GlobalInvocationID . x]= outStencils; 197// } 198