Berserk
Macros
GLCommandList.cpp File Reference
#include <core/Engine.hpp>
#include <rhi/opengl/GLBuffer.hpp>
#include <rhi/opengl/GLCommandList.hpp>
#include <rhi/opengl/GLDevice.hpp>
#include <rhi/opengl/GLTexture.hpp>
#include <cassert>
Include dependency graph for GLCommandList.cpp:

Macros

#define BRK_GL_UPDATE_BUFFER(gl_type)
 
#define BRK_GL_TEXTURE_SETUP
 
#define BRK_GL_TEXTURE_UPDATE_SETUP
 

Macro Definition Documentation

◆ BRK_GL_TEXTURE_SETUP

#define BRK_GL_TEXTURE_SETUP
Value:
assert(!mInRenderPass); \
assert(texture.IsNotNull()); \
auto native = (GLTexture *) texture.Get();
GL texture resource implementation.
Definition: GLTexture.hpp:46

◆ BRK_GL_TEXTURE_UPDATE_SETUP

#define BRK_GL_TEXTURE_UPDATE_SETUP
Value:
assert(data.IsNotNull()); \
BRK_GL_TEXTURE_SETUP

◆ BRK_GL_UPDATE_BUFFER

#define BRK_GL_UPDATE_BUFFER (   gl_type)
Value:
assert(!mInRenderPass); \
assert(buffer.IsNotNull()); \
assert(data.IsNotNull()); \
auto native = (gl_type *) buffer.Get(); \
native->Update(byteOffset, byteSize, data->GetData());