blob: d1d6c5604b52edebc83df7289f3ee501bd68a82f (
plain)
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
|
/* SPDX-License-Identifier: GPL-2.0-or-later
* Copyright 2020 Blender Foundation. All rights reserved. */
/** \file
* \ingroup gpu
*/
#pragma once
#include "glew-mx.h"
#include "GPU_batch.h"
#include "gl_shader_interface.hh"
namespace blender {
namespace gpu {
namespace GLVertArray {
/**
* Update the Attribute Binding of the currently bound VAO.
*/
void update_bindings(const GLuint vao,
const GPUBatch *batch,
const ShaderInterface *interface,
int base_instance);
/**
* Another version of update_bindings for Immediate mode.
*/
void update_bindings(const GLuint vao,
uint v_first,
const GPUVertFormat *format,
const ShaderInterface *interface);
} // namespace GLVertArray
} // namespace gpu
} // namespace blender
|