Blender
V3.3
source
blender
gpu
opengl
gl_shader_interface.hh
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-or-later
2
* Copyright 2020 Blender Foundation. All rights reserved. */
3
13
#pragma once
14
15
#include "
MEM_guardedalloc.h
"
16
17
#include "
BLI_vector.hh
"
18
19
#include "
glew-mx.h
"
20
21
#include "
gpu_shader_create_info.hh
"
22
#include "
gpu_shader_interface.hh
"
23
24
namespace
blender::gpu
{
25
26
class
GLVaoCache;
27
31
class
GLShaderInterface
:
public
ShaderInterface
{
32
private
:
34
Vector<GLVaoCache *>
refs_;
35
36
public
:
37
GLShaderInterface
(GLuint
program
,
const
shader::ShaderCreateInfo
&info);
38
GLShaderInterface
(GLuint
program
);
39
~GLShaderInterface
();
40
41
void
ref_add
(
GLVaoCache
*ref);
42
void
ref_remove
(
GLVaoCache
*ref);
43
44
MEM_CXX_CLASS_ALLOC_FUNCS
(
"GLShaderInterface"
);
45
};
46
47
}
// namespace blender::gpu
BLI_vector.hh
MEM_guardedalloc.h
Read Guarded memory(de)allocation.
blender::Vector
Definition:
BLI_vector.hh:64
blender::gpu::GLShaderInterface
Definition:
gl_shader_interface.hh:31
blender::gpu::GLShaderInterface::~GLShaderInterface
~GLShaderInterface()
Definition:
gl_shader_interface.cc:489
blender::gpu::GLShaderInterface::ref_add
void ref_add(GLVaoCache *ref)
Definition:
gl_shader_interface.cc:504
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:333
blender::gpu::GLShaderInterface::ref_remove
void ref_remove(GLVaoCache *ref)
Definition:
gl_shader_interface.cc:515
blender::gpu::GLVaoCache
Definition:
gl_batch.hh:35
blender::gpu::ShaderInterface
Definition:
gpu_shader_interface.hh:37
glew-mx.h
gpu_shader_create_info.hh
gpu_shader_interface.hh
blender::compositor::program
cl_program program
Definition:
COM_WorkScheduler.cc:74
blender::gpu
Definition:
gpu_backend.hh:15
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:276
Generated on Sat Jul 27 2024 14:57:55 for Blender by
doxygen
1.9.1