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/OverlayCull.comp.00000005.inc: 9// Pre-generated shader for the ANGLE Vulkan back-end. 10 11#pragma once 12constexpr uint8_t kOverlayCull_comp_00000005[] = { 13 0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x6d,0x97,0xff,0x4f,0xd5,0x65, 14 0x14,0xc7,0x9f,0xe7,0x02,0x57,0x90,0x51,0x0a,0x16,0x09,0x58,0xe4,0x35,0x97,0x13, 15 0xaf,0xe5,0x84,0x30,0xc7,0xb7,0x75,0x8d,0x72,0xa8,0xc0,0x45,0xc5,0x89,0x02,0x86, 16 0x4b,0x72,0x32,0xbe,0xdc,0x1f,0x9a,0xa1,0xb8,0x56,0xfd,0x54,0x7f,0x41,0x7f,0x41, 17 0xd8,0xca,0xcd,0x1f,0xc5,0x70,0x95,0x5f,0x7e,0xcc,0x2d,0xd7,0x8a,0x55,0xc8,0x2c, 18 0x5c,0x6d,0x4d,0x7f,0x10,0x8d,0xc6,0xe8,0x9c,0xcf,0xf3,0x3e,0xf8,0xe6,0x16,0xdb, 19 0xb3,0xcf,0xe7,0xbc,0xcf,0xf3,0x9c,0xf3,0x7a,0x9e,0xf3,0xf9,0x1c,0x3e,0x37,0x27, 20 0x96,0x58,0xe1,0x9c,0x77,0x2b,0x5d,0xbe,0xfb,0xc4,0xbb,0xe8,0x6f,0xb5,0x8b,0x39, 21 0xbd,0x2d,0x74,0xf1,0xe8,0xda,0xdc,0x92,0x6e,0x49,0x8e,0x64,0xfa,0x92,0xdb,0xab, 22 0x5f,0x52,0xff,0x13,0x2e,0x27,0x9a,0xa7,0xbe,0x27,0xdd,0x0a,0x97,0x27,0xd7,0x5c, 23 0x19,0xa7,0x7a,0xfb,0x07,0x54,0x4f,0xcb,0x18,0x97,0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x7e,0x85,0xfe,0xb7,0xc4,0xb1,0x78,0x7a,0x7d,0x20,0xf1,0xd4, 51 0x7f,0x1b,0x2c,0x79,0x98,0x3b,0x05,0x9e,0x59,0xe2,0xd1,0x39,0x33,0x32,0x66,0xb1, 52 0x7e,0x86,0x78,0xee,0x10,0x4f,0x0c,0x35,0xfb,0x02,0x3c,0xbf,0xc1,0x7f,0x81,0x78, 53 0x7e,0x87,0xae,0x3c,0x16,0x6f,0x96,0x78,0xee,0x82,0x69,0x1a,0x73,0x67,0xe8,0xcc, 54 0xfe,0xc0,0xd9,0x97,0x82,0x31,0xee,0x1f,0x33,0xaa,0xef,0x4f,0x19,0xff,0x20,0xa6, 55 0xde,0x7f,0x26,0xa7,0xaf,0xe7,0xff,0x17,0xe2,0xa6,0x50,0xe3,0x6f,0x51,0x97,0x7b, 56 0xf0,0xdd,0xc4,0xb3,0xa0,0xbd,0xea,0x3e,0xfa,0x97,0x6a,0xf5,0x92,0xe3,0x3e,0xe6, 57 0x19,0xc3,0x2a,0x1f,0x7c,0xc5,0x60,0x68,0x22,0x06,0xf5,0xad,0x96,0xa1,0x9a,0x32, 58 0xe8,0xfd,0x39,0xe4,0x2a,0xa6,0x75,0x96,0xab,0xc4,0x87,0x5c,0xea,0xb3,0xe7,0x6e, 59 0x8d,0x0f,0xba,0xd9,0x4f,0xfb,0xc0,0x74,0x15,0x71,0x4a,0x7d,0xd0,0x74,0x9e,0xf1, 60 0xa9,0x66,0x7c,0x6b,0x91,0x27,0x01,0xbe,0x46,0xe2,0x53,0x5f,0x99,0x8c,0x46,0xf0, 61 0x95,0x11,0x5f,0x39,0xad,0x33,0xbe,0x0a,0xf0,0x95,0x13,0xcf,0x3a,0x1f,0x74,0xb3, 62 0x9f,0xcb,0xe2,0xab,0xf4,0x41,0x5b,0x47,0x7c,0x95,0xc4,0xb7,0x1e,0x79,0x92,0xe0, 63 0x6b,0x20,0x3e,0xf5,0x25,0x64,0x34,0x80,0x2f,0x41,0x7c,0x1b,0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,0xe2,0x1b,0x40,0xff,0xb0,0xbc,0x83,0xb0,0xed,0x9c,0x86, 91 0x60,0x5b,0x5d,0x87,0x61,0xdb,0x73,0x38,0x02,0xdb,0xde,0x9b,0x8c,0x5f,0xfe,0x7e, 92 0xeb,0xd5,0x7a,0xc1,0x87,0x3e,0xf4,0x83,0x79,0xf4,0x8d,0x0c,0xf5,0xaa,0x7c,0xbf, 93 0xbc,0x57,0x15,0xd1,0xd9,0xa8,0xaf,0x40,0x46,0x11,0x62,0x16,0xd0,0x39,0xac,0xf4, 94 0xff,0xed,0x55,0x85,0x3e,0xe8,0xd6,0xab,0x4e,0xfb,0xa0,0x69,0x7e,0x8f,0xfe,0x63, 95 0xb1,0x8a,0x88,0xef,0x63,0xcc,0x51,0xe6,0xd3,0xc8,0xa9,0x2c,0x13,0x6e,0x39,0xcb, 96 0x25,0xb9,0x9f,0x40,0xaf,0xbb,0x84,0xbc,0xfa,0x5b,0xe0,0x0a,0x7e,0x07,0x8c,0xe2, 97 0x37,0xc0,0x37,0xf8,0x86,0xb6,0x6f,0xd9,0xab,0xc8,0xc1,0xdf,0xb7,0xd7,0xa0,0xa9, 98 0xdc,0x2a,0x1c,0xfa,0x5d,0x7c,0x1d,0x73,0xaf,0xd1,0xef,0x97,0xb7,0x24,0xe6,0x15, 99 0xc4,0xbc,0x8e,0x3d,0x18,0xc3,0x44,0xd4,0xf3,0xbc,0xab,0x95,0xf1,0x2f,0x51,0xce, 100 0x09,0xfc,0xe4,0x0f,0x00,0x00 101}; 102 103// Generated from: 104// 105// #version 450 core 106// 107// #extension GL_EXT_samplerless_texture_functions : require 108// 109// layout(local_size_x = 64, local_size_y = 1, local_size_z = 1)in; 110// 111// layout(set = 0, binding = 0, rgba32ui)uniform writeonly uimage2D culledWidgetsOut; 112// 113// layout(set = 0, binding = 1)uniform WidgetCoordinates 114// { 115// uvec4 coordinates[32 + 32]; 116// }; 117// 118// shared uint intersectingWidgets[32]; 119// 120// void accumulateWidgets(const uint localId) 121// { 122// 123// if(localId < 16) 124// { 125// intersectingWidgets[localId]|= intersectingWidgets[localId + 16]; 126// if(localId < 8) 127// { 128// intersectingWidgets[localId]|= intersectingWidgets[localId + 8]; 129// if(localId < 4) 130// { 131// intersectingWidgets[localId]|= intersectingWidgets[localId + 4]; 132// if(localId < 2) 133// { 134// intersectingWidgets[localId]|= intersectingWidgets[localId + 2]; 135// if(localId < 1) 136// { 137// intersectingWidgets[localId]|= intersectingWidgets[localId + 1]; 138// } 139// } 140// } 141// } 142// } 143// } 144// 145// uvec2 cullWidgets(const uint offset, const uvec2 blockCoordLow, const uvec2 blockCoordHigh) 146// { 147// const uint localId = gl_LocalInvocationID . x; 148// const uvec4 widgetCoords = coordinates[offset + localId]; 149// 150// const bool intersects = widgetCoords . x < widgetCoords . z && 151// all(lessThan(widgetCoords . xy, blockCoordHigh))&& 152// all(greaterThanEqual(widgetCoords . zw, blockCoordLow)); 153// 154// uvec2 ballot = uvec2(0, 0); 155// 156// if(localId < 32) 157// { 158// intersectingWidgets[localId]= uint(intersects)<< localId; 159// accumulateWidgets(localId); 160// if(localId == 0) 161// { 162// ballot . x = intersectingWidgets[0]; 163// } 164// } 165// else 166// { 167// const uint graphLocalId = localId - 32; 168// intersectingWidgets[graphLocalId]= uint(intersects)<< graphLocalId; 169// accumulateWidgets(graphLocalId); 170// } 171// if(localId == 0) 172// { 173// ballot . y = intersectingWidgets[0]; 174// } 175// 176// return ballot; 177// 178// } 179// 180// void main() 181// { 182// 183// const uvec2 outCoord = gl_WorkGroupID . xy; 184// const uvec2 blockCoordLow = outCoord * uvec2(8, 8); 185// const uvec2 blockCoordHigh = blockCoordLow + uvec2(8, 8); 186// 187// uvec2 culledWidgets; 188// 189// culledWidgets = cullWidgets(0, blockCoordLow, blockCoordHigh); 190// 191// if(gl_LocalInvocationID . x == 0) 192// { 193// imageStore(culledWidgetsOut, ivec2(outCoord), uvec4(culledWidgets, 0, 0)); 194// } 195// } 196