This has been completely replaced by SSBOs overtime. This reduces API size and avoid untested/legacy path in drivers that are known to break (see #134509). Pull Request: https://projects.blender.org/blender/blender/pulls/145242
36 lines
749 B
C++
36 lines
749 B
C++
/* SPDX-FileCopyrightText: 2020 Blender Authors
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
/** \file
|
|
* \ingroup gpu
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "GPU_batch.hh"
|
|
#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 Batch *batch, const ShaderInterface *interface);
|
|
|
|
/**
|
|
* 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
|