Blender  V3.3
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 
22 #include "gpu_shader_interface.hh"
23 
24 namespace blender::gpu {
25 
26 class GLVaoCache;
27 
32  private:
35 
36  public:
38  GLShaderInterface(GLuint program);
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
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...