Blender
V4.3
source
blender
gpu
opengl
gl_shader_interface.hh
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2020 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
14
#pragma once
15
16
#include "
MEM_guardedalloc.h
"
17
18
#include "
BLI_vector.hh
"
19
20
#include "
gpu_shader_create_info.hh
"
21
#include "
gpu_shader_interface.hh
"
22
23
namespace
blender::gpu
{
24
25
class
GLVaoCache;
26
30
class
GLShaderInterface
:
public
ShaderInterface
{
31
private
:
33
Vector<GLVaoCache *>
refs_;
34
35
public
:
36
GLShaderInterface
(GLuint program,
const
shader::ShaderCreateInfo
&info);
37
GLShaderInterface
(GLuint program);
38
~GLShaderInterface
();
39
40
void
ref_add
(
GLVaoCache
*ref);
41
void
ref_remove
(
GLVaoCache
*ref);
42
43
MEM_CXX_CLASS_ALLOC_FUNCS
(
"GLShaderInterface"
);
44
};
45
46
}
// namespace blender::gpu
BLI_vector.hh
MEM_guardedalloc.h
Read Guarded memory(de)allocation.
blender::Vector
Definition
BLI_vector.hh:65
blender::gpu::GLShaderInterface
Definition
gl_shader_interface.hh:30
blender::gpu::GLShaderInterface::~GLShaderInterface
~GLShaderInterface()
Definition
gl_shader_interface.cc:569
blender::gpu::GLShaderInterface::ref_add
void ref_add(GLVaoCache *ref)
Definition
gl_shader_interface.cc:584
blender::gpu::GLShaderInterface::MEM_CXX_CLASS_ALLOC_FUNCS
MEM_CXX_CLASS_ALLOC_FUNCS("GLShaderInterface")
blender::gpu::GLShaderInterface::GLShaderInterface
GLShaderInterface(GLuint program, const shader::ShaderCreateInfo &info)
Definition
gl_shader_interface.cc:387
blender::gpu::GLShaderInterface::ref_remove
void ref_remove(GLVaoCache *ref)
Definition
gl_shader_interface.cc:595
blender::gpu::GLVaoCache
Definition
gl_batch.hh:34
blender::gpu::ShaderInterface
Definition
gpu_shader_interface.hh:47
gpu_shader_create_info.hh
gpu_shader_interface.hh
blender::gpu
Definition
blf_internal_types.hh:23
blender::gpu::shader::ShaderCreateInfo
Describe inputs & outputs, stage interfaces, resources and sources of a shader. If all data is correc...
Definition
gpu_shader_create_info.hh:362
Generated on Thu Feb 6 2025 07:36:39 for Blender by
doxygen
1.11.0