qxLib
ubo.inl
Go to the documentation of this file.
1 /**
2 
3  @file ubo.inl
4  @author Khrapov
5  @date 9.01.2020
6  @copyright © Nick Khrapov, 2021. All right reserved.
7 
8 **/
9 
10 namespace qx
11 {
12 
13 inline GLint base_ubo::GetMaxSize() const
14 {
15  GLint ret;
16  glGetIntegerv(GL_MAX_UNIFORM_BLOCK_SIZE, &ret);
17  return ret;
18 }
19 
20 inline GLenum base_ubo::GetBufferType() const
21 {
22  return GL_UNIFORM_BUFFER;
23 }
24 
25 inline GLbitfield base_ubo::GetBarrierBit() const
26 {
27  return GL_UNIFORM_BARRIER_BIT;
28 }
29 
30 } // namespace qx
GLint GetMaxSize() const
Get max UBO size.
Definition: ubo.inl:13
virtual GLenum GetBufferType() const =0
Get buffer type.
virtual GLbitfield GetBarrierBit() const =0
Get buffer type barrier bit.