| // GENERATED FILE - DO NOT EDIT. |
| // Generated by gen_vk_internal_shaders.py. |
| // |
| // Copyright 2020 The ANGLE Project Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| // |
| // shaders/gen/OverlayCull.comp.00000001.inc: |
| // Pre-generated shader for the ANGLE Vulkan back-end. |
| |
| #pragma once |
| constexpr uint8_t kOverlayCull_comp_00000001[] = { |
| 0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x5d,0x92,0x5b,0x6b,0x53,0x51, |
| 0x10,0x85,0xe7,0x9c,0xdc,0xaa,0x82,0xd6,0x44,0x09,0xb6,0x69,0xa3,0x06,0xfa,0x62, |
| 0x29,0x82,0x17,0x04,0x09,0xda,0x97,0x44,0x68,0x8a,0x4a,0x1f,0x6c,0x6b,0xc5,0x6a, |
| 0x2f,0x20,0x58,0xb1,0x54,0x0d,0x6a,0x2c,0xd5,0x14,0xfd,0x11,0xfe,0x03,0x1f,0xc4, |
| 0x3f,0x27,0x5e,0x40,0x70,0xd6,0xce,0x77,0xe2,0x36,0x07,0x86,0x39,0xb3,0x66,0xf6, |
| 0xda,0x6b,0x66,0x76,0x2e,0x6d,0x94,0x2c,0x97,0xd8,0x51,0x1b,0xb3,0x4f,0x36,0xf8, |
| 0x4e,0x5a,0x6a,0x09,0xbe,0x89,0xbf,0xe9,0xfe,0x98,0x15,0x03,0xde,0xee,0x2c,0x75, |
| 0xe6,0xf6,0x5e,0x6c,0xce,0x5d,0xbe,0x72,0x51,0xf5,0xc7,0x2d,0x17,0xce,0x29,0x77, |
| 0xc2,0x4a,0x56,0x70,0x9f,0x77,0xdb,0x79,0xf4,0xe4,0x99,0xf0,0xb2,0x5b,0xcb,0x6d, |
| 0xdc,0xcf,0xe7,0x03,0x9f,0x05,0xbe,0x04,0x6b,0x3b,0x5a,0x0e,0xfc,0x66,0x93,0xc4, |
| 0xf2,0xc5,0x70,0xc6,0xec,0x96,0x33,0xd6,0x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9,0xdd,0x40,0x43,0x25,0xfc, |
| 0xe7,0x03,0xff,0x3a,0x79,0xf5,0x9a,0x69,0x90,0xff,0xe3,0x0c,0xd7,0xdc,0xfe,0x02, |
| 0xd4,0xf4,0x04,0xb7,0x08,0x06,0x00,0x00 |
| }; |
| |
| // Generated from: |
| // |
| // #version 450 core |
| // |
| // #extension GL_EXT_samplerless_texture_functions : require |
| // |
| // #extension GL_KHR_shader_subgroup_ballot : require |
| // |
| // layout(local_size_x = 64, local_size_y = 1, local_size_z = 1)in; |
| // |
| // layout(set = 0, binding = 0, rgba32ui)uniform writeonly uimage2D culledWidgetsOut; |
| // |
| // layout(set = 0, binding = 1)uniform WidgetCoordinates |
| // { |
| // uvec4 coordinates[32 + 32]; |
| // }; |
| // |
| // uvec2 cullWidgets(const uint offset, const uvec2 blockCoordLow, const uvec2 blockCoordHigh) |
| // { |
| // const uint localId = gl_LocalInvocationID . x; |
| // const uvec4 widgetCoords = coordinates[offset + localId]; |
| // |
| // const bool intersects = widgetCoords . x < widgetCoords . z && |
| // all(lessThan(widgetCoords . xy, blockCoordHigh))&& |
| // all(greaterThanEqual(widgetCoords . zw, blockCoordLow)); |
| // |
| // return subgroupBallot(intersects). xy; |
| // |
| // } |
| // |
| // void main() |
| // { |
| // |
| // const uvec2 outCoord = gl_WorkGroupID . xy; |
| // const uvec2 blockCoordLow = outCoord * uvec2(8, 8); |
| // const uvec2 blockCoordHigh = blockCoordLow + uvec2(8, 8); |
| // |
| // uvec2 culledWidgets; |
| // |
| // culledWidgets = cullWidgets(0, blockCoordLow, blockCoordHigh); |
| // |
| // if(gl_LocalInvocationID . x == 0) |
| // { |
| // imageStore(culledWidgetsOut, ivec2(outCoord), uvec4(culledWidgets, 0, 0)); |
| // } |
| // } |