Blender V4.3
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
22
23namespace blender::gpu {
24
25class GLVaoCache;
26
31 private:
34
35 public:
36 GLShaderInterface(GLuint program, const shader::ShaderCreateInfo &info);
37 GLShaderInterface(GLuint program);
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
Read Guarded memory(de)allocation.
MEM_CXX_CLASS_ALLOC_FUNCS("GLShaderInterface")
GLShaderInterface(GLuint program, const shader::ShaderCreateInfo &info)
Describe inputs & outputs, stage interfaces, resources and sources of a shader. If all data is correc...