Hash :
46a955f8
Author :
Date :
2021-02-25T16:06:05
gen_vk_internal_shaders: Don't include full path on Python 3.4+. Since Python 3.4 `__file__` represents an absolute file path: https://docs.python.org/3.4/whatsnew/3.4.html#other-language-changes We only want the basename in the generated scripts. Bug: angleproject:5516 Change-Id: Ia4009419ef627aa1ce12f9a944539c054edc3a6b Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2720260 Reviewed-by: Cody Northrop <cnorthrop@google.com> Reviewed-by: Shahbaz Youssefi <syoussefi@chromium.org> Reviewed-by: Jamie Madill <jmadill@chromium.org> Commit-Queue: Jamie Madill <jmadill@chromium.org>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108
// GENERATED FILE - DO NOT EDIT.
// Generated by gen_vk_internal_shaders.py.
//
// Copyright 2018 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.00000000.inc:
// Pre-generated shader for the ANGLE Vulkan back-end.
#pragma once
constexpr uint8_t kOverlayCull_comp_00000000[] = {
0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x6d,0x94,0xdd,0x4b,0xd3,0x61,
0x14,0xc7,0xcf,0x7e,0x9b,0x9b,0x15,0x94,0x6d,0x85,0x98,0x6f,0x95,0xe0,0x8d,0x22,
0x41,0x2f,0x04,0x21,0xe5,0x8d,0x0b,0x5a,0x96,0x08,0xd1,0x85,0x5e,0xf8,0xd2,0x42,
0x21,0xbd,0xa8,0x84,0x44,0x72,0x54,0x26,0xd5,0xa4,0x6b,0x93,0xb0,0x51,0xad,0x51,
0x4d,0xec,0x8f,0x8b,0x5e,0x20,0xe8,0x9c,0x67,0x9f,0x9f,0x9e,0xa4,0xc1,0xc3,0xb3,
0xf3,0x3d,0xe7,0xf9,0x3e,0xdf,0xef,0x39,0xcf,0x96,0x8c,0x7a,0x32,0x92,0x4c,0xc8,
0x41,0x69,0x96,0x6f,0xd2,0xf8,0x1c,0x95,0x48,0x12,0xec,0x83,0xec,0x57,0x74,0x3f,
0x24,0xe9,0x80,0xe7,0x0b,0x63,0x85,0x81,0xfb,0x0f,0x66,0x06,0xce,0x9d,0x3f,0x63,
0xf5,0x87,0x25,0x19,0xce,0x59,0xee,0x88,0x64,0xa4,0x49,0xf7,0x94,0xae,0x7b,0x93,
0xb3,0xf3,0x86,0x67,0x75,0x0d,0xeb,0x6a,0xd1,0xf3,0xa9,0xc0,0x27,0x72,0x92,0xfa,
0xc0,0xa7,0x68,0x36,0xf0,0x8b,0xb4,0x13,0xdb,0x9e,0x0e,0x67,0x44,0xae,0x2a,0x63,
0x07,0xda,0x7a,0xd8,0xf3,0x7a,0xa7,0x61,0x11,0xf5,0x5d,0xba,0x9f,0xde,0xcd,0x35,
0xe2,0x53,0x8e,0x7f,0x18,0xfe,0x13,0xc4,0xc5,0x7d,0xf5,0x45,0xea,0x63,0x6e,0x8b,
0xdb,0xc8,0x2d,0x70,0xd6,0xe2,0x9c,0xde,0x18,0x85,0xda,0x64,0x70,0x6d,0xdf,0x8f,
0x6b,0x4d,0x1a,0x4f,0xf6,0x69,0xd5,0x38,0x83,0xfe,0x88,0xb8,0x85,0x38,0x19,0xea,
0x52,0xa1,0x07,0x09,0xfc,0x5d,0x22,0xce,0x82,0xf5,0xc1,0x97,0x83,0xcf,0xea,0x8f,
0x91,0x4b,0xc3,0xd7,0xca,0xf7,0x94,0xab,0x37,0x6f,0x36,0xa7,0x0e,0xfa,0xd7,0x0a,
0xd6,0x45,0xaf,0xda,0xe1,0xea,0x44,0x57,0x07,0x77,0x77,0x86,0x9a,0x3d,0x2f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,0xe7,0x02,0x4f,0x2a,0x9c,0x9b,0x23,0x6f,0xbe,0x62,0x6e,0xdb,0xff,0xe8,0x84,
0x2e,0xea,0xfa,0x0b,0x66,0xb8,0xa3,0xd3,0xd4,0x07,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 = 32, 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, 4);
// const uvec2 blockCoordHigh = blockCoordLow + uvec2(8, 4);
//
// uvec2 culledWidgets;
//
// culledWidgets . x = cullWidgets(0, blockCoordLow, blockCoordHigh). x;
// culledWidgets . y = cullWidgets(32, blockCoordLow, blockCoordHigh). x;
//
// if(gl_LocalInvocationID . x == 0)
// {
// imageStore(culledWidgetsOut, ivec2(outCoord), uvec4(culledWidgets, 0, 0));
// }
// }