Blender V5.3
draw_view.bsl.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2018-2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include "draw_shader_shared.hh"
12
13namespace draw {
14
15struct View {
17
18 /* `view_id` should be the result of `draw::ID::view_id()` or manually indexed view. */
19 ViewMatrices get(uint view_id) const
20 {
21 return view_buf[view_id];
22 }
23};
24
25} // namespace draw
#define DRW_VIEW_UBO_SLOT
#define uniform(slot)
const ViewMatrices(& view_buf)[64]
ViewMatrices get(uint view_id) const