Hash :
038adcae
Author :
Date :
2022-02-08T16:46:40
Vulkan: Render the overlay in the graphics pipeline Bug: angleproject:6976 Change-Id: I388d429f0726b4d6a1c4ecd446ead93579a14a1b Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3448643 Reviewed-by: Jamie Madill <jmadill@chromium.org> Reviewed-by: Yuxin Hu <yuxinhu@google.com> Commit-Queue: Shahbaz Youssefi <syoussefi@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 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145
// 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/OverlayDraw.vert.00000000.inc:
// Pre-generated shader for the ANGLE Vulkan back-end.
#pragma once
constexpr uint8_t kOverlayDraw_vert_00000000[] = {
0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x6d,0x95,0xeb,0x4e,0x93,0x41,
0x10,0x86,0xb7,0x5f,0x6b,0x29,0x54,0x51,0x40,0xf0,0x04,0x28,0x54,0x90,0x5a,0x2d,
0xad,0x80,0x9a,0x08,0x82,0x68,0xa2,0x01,0x44,0xd1,0x00,0xd1,0xc4,0x78,0x22,0xa8,
0x31,0x54,0xe3,0x09,0xcf,0x22,0xfc,0xf1,0x8f,0x28,0x7a,0x17,0x7a,0x21,0x5e,0x91,
0xf1,0x90,0x98,0x38,0xb3,0xdf,0x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0x8d,0x2b,0xd4,0x48,0x50,0x63,0x0e,0xce,
0x55,0xc3,0xb9,0x06,0x27,0x59,0xc5,0x99,0x33,0x3a,0x36,0xc8,0x35,0x0b,0x5f,0xe3,
0x2f,0x4a,0xbc,0xfe,0x46,0xae,0xa3,0x73,0xc3,0xcc,0xe4,0x0d,0x66,0x72,0xdc,0xdc,
0xff,0x4d,0xf0,0x30,0x93,0xb7,0xc0,0xc2,0x4c,0x2e,0x98,0x9e,0xd4,0x77,0x5b,0xd6,
0x02,0x5a,0xf4,0xfb,0x82,0x68,0xd1,0x7a,0x8b,0xd4,0xbc,0x4e,0x5f,0xce,0xd7,0x4d,
0xfb,0xba,0x77,0xa8,0x9b,0x27,0x6f,0xa8,0x7d,0x17,0xdf,0x2a,0x3d,0xdf,0x07,0x53,
0xcd,0x97,0x04,0xd1,0xbc,0x1f,0xc1,0x17,0xcd,0xbd,0x85,0xfa,0x0b,0x9c,0x85,0xf2,
0xbe,0x50,0x7b,0x8e,0x98,0xdb,0xfe,0x3d,0x89,0xdf,0x91,0xc7,0xf8,0xf5,0x1c,0xf4,
0x1d,0x79,0x6a,0xf4,0x8c,0xf0,0x37,0xe9,0x19,0x78,0x88,0x59,0x06,0xfb,0xc0,0x5b,
0xf1,0x9c,0x3c,0xcb,0xfe,0xdd,0x88,0xb1,0x97,0xe0,0xfa,0x0e,0xad,0x81,0xbd,0x01,
0x5f,0xe7,0x2e,0xf5,0x1d,0x7a,0x07,0xee,0x0c,0xb6,0x02,0x96,0xf0,0x77,0x56,0xe7,
0xdf,0xa5,0xf7,0x70,0x57,0x78,0xbb,0x5e,0xa1,0x79,0xd5,0xe7,0x8f,0xdf,0xc7,0x3c,
0xef,0xcd,0x1a,0xfc,0x7f,0x92,0xe1,0xb8,0xac,0xff,0xb4,0x0b,0x50,0xe7,0x84,0x0a,
0x00,0x00
};
// Generated from:
//
// #version 450 core
//
// #extension GL_GOOGLE_include_directive : require
//
// #line 1 "shaders/src/OverlayDraw.inc"
//
// #extension GL_EXT_samplerless_texture_functions : require
//
// struct TextWidgetData
// {
// uvec4 coordinates;
// vec4 color;
// uvec4 fontSize;
// uvec4 text[256 / 16];
// };
//
// struct GraphWidgetData
// {
// uvec4 coordinates;
// vec4 color;
// uvec4 valueWidth;
// uvec4 values[256 / 4];
// };
//
// layout(set = 0, binding = 0)uniform TextWidgets
// {
// TextWidgetData textWidgetsData[32];
// };
//
// layout(set = 0, binding = 1)uniform GraphWidgets
// {
// GraphWidgetData graphWidgetsData[32];
// };
//
// layout(set = 0, binding = 2)uniform texture2DArray font;
//
// layout(push_constant)uniform PushConstants
// {
// uvec2 viewportSize;
//
// bool isText;
//
// bool rotateXY;
// } params;
// #line 17 "shaders/src/OverlayDraw.vert"
//
// layout(location = 0)flat out uint widgetIndex;
//
// void main()
// {
// widgetIndex = gl_InstanceIndex;
// const uvec4 widgetCoords = params . isText
// ? textWidgetsData[widgetIndex]. coordinates
// : graphWidgetsData[widgetIndex]. coordinates;
//
// bool isLeft =(gl_VertexIndex & 1)== 0;
// bool isBottom =(gl_VertexIndex & 2)== 0;
//
// uvec2 position = uvec2(isLeft ? widgetCoords . x : widgetCoords . z,
// isBottom ? widgetCoords . y : widgetCoords . w);
//
// if(params . rotateXY)
// {
//
// position = position . yx;
// position . x = params . viewportSize . x - position . x;
// }
//
// gl_Position = vec4((vec2(position)/ vec2(params . viewportSize))* 2. - 1., 0, 1);
// }