Blender V5.3
blender::gpu::GLBackend Class Reference

#include <gl_backend.hh>

Inherits blender::gpu::GPUBackend.

Public Member Functions

 GLBackend ()
 ~GLBackend ()
void init_resources () override
void delete_resources () override
Context * context_alloc (GHOST_IWindow *ghost_window, GHOST_IContext *ghost_context) override
void add_context_id (int context_id)
void remove_context_id (int context_id)
bool is_valid_context_id (int context_id)
Batch * batch_alloc () override
Fence * fence_alloc () override
WorkInFlight * work_in_flight_alloc (unsigned int max_in_flight) override
FrameBuffer * framebuffer_alloc (const char *name) override
IndexBuf * indexbuf_alloc () override
PixelBuffer * pixelbuf_alloc (size_t size) override
QueryPool * querypool_alloc () override
Shader * shader_alloc (const char *name) override
Texture * texture_alloc (const char *name) override
UniformBuf * uniformbuf_alloc (size_t size, const char *name) override
StorageBuf * storagebuf_alloc (size_t size, GPUUsageType usage, const char *name) override
VertBuf * vertbuf_alloc () override
TopLevelAS * tlas_alloc (const char *) override
BottomLevelAS * blas_alloc (const char *) override
GLSharedOrphanLists & shared_orphan_list_get ()
void compute_dispatch (int groups_x_len, int groups_y_len, int groups_z_len) override
void compute_dispatch_indirect (StorageBuf *indirect_buf) override
void shader_cache_dir_clear_old () override
void render_begin () override
void render_end () override
void render_step (bool) override
Debug Groups

Useful for debugging through render-doc. This makes all the API calls grouped into "passes".

bool debug_capture_begin (const char *title)
void debug_capture_end ()
Public Member Functions inherited from blender::gpu::GPUBackend
virtual ~GPUBackend ()=default
ShaderCompiler * get_compiler ()

Static Public Member Functions

static GLBackend * get ()
Static Public Member Functions inherited from blender::gpu::GPUBackend
static GPUBackend * get ()

Platform

TexturePool * texturepool_alloc () override

Additional Inherited Members

Protected Attributes inherited from blender::gpu::GPUBackend
ShaderCompiler * compiler_

Detailed Description

Definition at line 43 of file gl_backend.hh.

Constructor & Destructor Documentation

◆ GLBackend()

blender::gpu::GLBackend::GLBackend ( )
inline

Definition at line 54 of file gl_backend.hh.

References blender::gpu::GLTexture::samplers_init().

Referenced by get().

◆ ~GLBackend()

blender::gpu::GLBackend::~GLBackend ( )
inline

Definition at line 64 of file gl_backend.hh.

Member Function Documentation

◆ add_context_id()

void blender::gpu::GLBackend::add_context_id ( int context_id)
inline

Definition at line 96 of file gl_backend.hh.

References lock.

Referenced by blender::gpu::GLContext::GLContext().

◆ batch_alloc()

Batch * blender::gpu::GLBackend::batch_alloc ( )
inlineoverridevirtual

Implements blender::gpu::GPUBackend.

Definition at line 114 of file gl_backend.hh.

◆ blas_alloc()

BottomLevelAS * blender::gpu::GLBackend::blas_alloc ( const char * )
inlineoverridevirtual

Implements blender::gpu::GPUBackend.

Definition at line 182 of file gl_backend.hh.

References BLI_assert_unreachable.

◆ compute_dispatch()

void blender::gpu::GLBackend::compute_dispatch ( int groups_x_len,
int groups_y_len,
int groups_z_len )
inlineoverridevirtual

◆ compute_dispatch_indirect()

void blender::gpu::GLBackend::compute_dispatch_indirect ( StorageBuf * indirect_buf)
inlineoverridevirtual

◆ context_alloc()

Context * blender::gpu::GLBackend::context_alloc ( GHOST_IWindow * ghost_window,
GHOST_IContext * ghost_context )
inlineoverridevirtual

Implements blender::gpu::GPUBackend.

Definition at line 91 of file gl_backend.hh.

References blender::gpu::GLContext::GLContext().

◆ debug_capture_begin()

bool blender::gpu::GLBackend::debug_capture_begin ( const char * title)

◆ debug_capture_end()

void blender::gpu::GLBackend::debug_capture_end ( )

◆ delete_resources()

void blender::gpu::GLBackend::delete_resources ( )
inlineoverridevirtual

◆ fence_alloc()

Fence * blender::gpu::GLBackend::fence_alloc ( )
inlineoverridevirtual

Implements blender::gpu::GPUBackend.

Definition at line 119 of file gl_backend.hh.

References blender::gpu::GLFence::GLFence().

◆ framebuffer_alloc()

FrameBuffer * blender::gpu::GLBackend::framebuffer_alloc ( const char * name)
inlineoverridevirtual

Implements blender::gpu::GPUBackend.

Definition at line 129 of file gl_backend.hh.

References blender::gpu::GLFrameBuffer::GLFrameBuffer().

◆ get()

◆ indexbuf_alloc()

IndexBuf * blender::gpu::GLBackend::indexbuf_alloc ( )
inlineoverridevirtual

Implements blender::gpu::GPUBackend.

Definition at line 134 of file gl_backend.hh.

◆ init_resources()

void blender::gpu::GLBackend::init_resources ( )
inlineoverridevirtual

◆ is_valid_context_id()

bool blender::gpu::GLBackend::is_valid_context_id ( int context_id)
inline

Definition at line 108 of file gl_backend.hh.

References lock.

◆ pixelbuf_alloc()

PixelBuffer * blender::gpu::GLBackend::pixelbuf_alloc ( size_t size)
inlineoverridevirtual

Implements blender::gpu::GPUBackend.

Definition at line 139 of file gl_backend.hh.

References blender::gpu::GLPixelBuffer::GLPixelBuffer().

◆ querypool_alloc()

QueryPool * blender::gpu::GLBackend::querypool_alloc ( )
inlineoverridevirtual

Implements blender::gpu::GPUBackend.

Definition at line 144 of file gl_backend.hh.

◆ remove_context_id()

void blender::gpu::GLBackend::remove_context_id ( int context_id)
inline

Definition at line 102 of file gl_backend.hh.

References lock.

Referenced by blender::gpu::GLContext::~GLContext().

◆ render_begin()

void blender::gpu::GLBackend::render_begin ( )
inlineoverridevirtual

Implements blender::gpu::GPUBackend.

Definition at line 221 of file gl_backend.hh.

◆ render_end()

void blender::gpu::GLBackend::render_end ( )
inlineoverridevirtual

Implements blender::gpu::GPUBackend.

Definition at line 222 of file gl_backend.hh.

◆ render_step()

void blender::gpu::GLBackend::render_step ( bool )
inlineoverridevirtual

Implements blender::gpu::GPUBackend.

Definition at line 223 of file gl_backend.hh.

◆ shader_alloc()

Shader * blender::gpu::GLBackend::shader_alloc ( const char * name)
inlineoverridevirtual

Implements blender::gpu::GPUBackend.

Definition at line 149 of file gl_backend.hh.

References blender::gpu::GLShader::GLShader().

◆ shader_cache_dir_clear_old()

void blender::gpu::GLBackend::shader_cache_dir_clear_old ( )
inlineoverridevirtual

Implements blender::gpu::GPUBackend.

Definition at line 213 of file gl_backend.hh.

◆ shared_orphan_list_get()

◆ storagebuf_alloc()

StorageBuf * blender::gpu::GLBackend::storagebuf_alloc ( size_t size,
GPUUsageType usage,
const char * name )
inlineoverridevirtual

Implements blender::gpu::GPUBackend.

Definition at line 166 of file gl_backend.hh.

References blender::gpu::GLStorageBuf::GLStorageBuf().

◆ texture_alloc()

Texture * blender::gpu::GLBackend::texture_alloc ( const char * name)
inlineoverridevirtual

Implements blender::gpu::GPUBackend.

Definition at line 154 of file gl_backend.hh.

References blender::gpu::GLTexture::GLTexture().

◆ texturepool_alloc()

TexturePool * blender::gpu::GLBackend::texturepool_alloc ( )
overridevirtual

◆ tlas_alloc()

TopLevelAS * blender::gpu::GLBackend::tlas_alloc ( const char * )
inlineoverridevirtual

Implements blender::gpu::GPUBackend.

Definition at line 176 of file gl_backend.hh.

References BLI_assert_unreachable.

◆ uniformbuf_alloc()

UniformBuf * blender::gpu::GLBackend::uniformbuf_alloc ( size_t size,
const char * name )
inlineoverridevirtual

Implements blender::gpu::GPUBackend.

Definition at line 161 of file gl_backend.hh.

References blender::gpu::GLUniformBuf::GLUniformBuf().

◆ vertbuf_alloc()

VertBuf * blender::gpu::GLBackend::vertbuf_alloc ( )
inlineoverridevirtual

Implements blender::gpu::GPUBackend.

Definition at line 171 of file gl_backend.hh.

◆ work_in_flight_alloc()

WorkInFlight * blender::gpu::GLBackend::work_in_flight_alloc ( unsigned int max_in_flight)
inlineoverridevirtual

The documentation for this class was generated from the following files: