Blender
V3.3
|
#include <gpu_backend.hh>
Public Member Functions | |
virtual | ~GPUBackend ()=default |
virtual void | delete_resources ()=0 |
virtual void | samplers_update ()=0 |
virtual void | compute_dispatch (int groups_x_len, int groups_y_len, int groups_z_len)=0 |
virtual void | compute_dispatch_indirect (StorageBuf *indirect_buf)=0 |
virtual Context * | context_alloc (void *ghost_window)=0 |
virtual Batch * | batch_alloc ()=0 |
virtual DrawList * | drawlist_alloc (int list_length)=0 |
virtual FrameBuffer * | framebuffer_alloc (const char *name)=0 |
virtual IndexBuf * | indexbuf_alloc ()=0 |
virtual QueryPool * | querypool_alloc ()=0 |
virtual Shader * | shader_alloc (const char *name)=0 |
virtual Texture * | texture_alloc (const char *name)=0 |
virtual UniformBuf * | uniformbuf_alloc (int size, const char *name)=0 |
virtual StorageBuf * | storagebuf_alloc (int size, GPUUsageType usage, const char *name)=0 |
virtual VertBuf * | vertbuf_alloc ()=0 |
virtual void | render_begin ()=0 |
virtual void | render_end ()=0 |
virtual void | render_step ()=0 |
Static Public Member Functions | |
Backend selection | |
static GPUBackend * | get () |
Definition at line 30 of file gpu_backend.hh.
|
virtualdefault |
|
pure virtual |
Implemented in blender::gpu::GLBackend, and blender::gpu::MTLBackend.
Referenced by GPU_batch_calloc().
|
pure virtual |
Implemented in blender::gpu::GLBackend, and blender::gpu::MTLBackend.
Referenced by GPU_compute_dispatch().
|
pure virtual |
Implemented in blender::gpu::GLBackend, and blender::gpu::MTLBackend.
Referenced by GPU_compute_dispatch_indirect().
Implemented in blender::gpu::GLBackend, and blender::gpu::MTLBackend.
|
pure virtual |
Implemented in blender::gpu::GLBackend, and blender::gpu::MTLBackend.
Referenced by gpu_backend_delete_resources().
|
pure virtual |
Implemented in blender::gpu::GLBackend, and blender::gpu::MTLBackend.
Referenced by GPU_draw_list_create().
|
pure virtual |
Implemented in blender::gpu::GLBackend, and blender::gpu::MTLBackend.
|
static |
Definition at line 292 of file gpu_context.cc.
References g_backend.
Referenced by blender::gpu::VertBuf::duplicate(), blender::gpu::MTLBackend::get(), blender::gpu::GLBackend::get(), GPU_batch_calloc(), GPU_compute_dispatch(), GPU_compute_dispatch_indirect(), GPU_draw_list_create(), GPU_framebuffer_create(), GPU_samplers_update(), gpu_select_query_begin(), GPU_shader_create_ex(), GPU_shader_create_from_info(), GPU_storagebuf_create_ex(), gpu_texture_create(), GPU_texture_create_compressed_2d(), GPU_texture_create_from_vertbuf(), GPU_texture_create_view(), GPU_uniformbuf_create_ex(), GPU_uniformbuf_create_from_list(), and GPU_vertbuf_calloc().
|
pure virtual |
Implemented in blender::gpu::GLBackend, and blender::gpu::MTLBackend.
|
pure virtual |
Implemented in blender::gpu::GLBackend, and blender::gpu::MTLBackend.
Referenced by gpu_select_query_begin().
|
pure virtual |
Implemented in blender::gpu::GLBackend, and blender::gpu::MTLBackend.
Referenced by GPU_render_begin().
|
pure virtual |
Implemented in blender::gpu::GLBackend, and blender::gpu::MTLBackend.
Referenced by GPU_render_end().
|
pure virtual |
Implemented in blender::gpu::GLBackend, and blender::gpu::MTLBackend.
Referenced by GPU_render_step().
|
pure virtual |
Implemented in blender::gpu::GLBackend, and blender::gpu::MTLBackend.
Referenced by GPU_samplers_update().
|
pure virtual |
Implemented in blender::gpu::GLBackend, and blender::gpu::MTLBackend.
Referenced by GPU_shader_create_ex(), and GPU_shader_create_from_info().
|
pure virtual |
Implemented in blender::gpu::GLBackend, and blender::gpu::MTLBackend.
Referenced by GPU_storagebuf_create_ex().
|
pure virtual |
Implemented in blender::gpu::GLBackend, and blender::gpu::MTLBackend.
Referenced by gpu_texture_create(), GPU_texture_create_compressed_2d(), GPU_texture_create_from_vertbuf(), and GPU_texture_create_view().
|
pure virtual |
Implemented in blender::gpu::GLBackend, and blender::gpu::MTLBackend.
Referenced by GPU_uniformbuf_create_ex(), and GPU_uniformbuf_create_from_list().
|
pure virtual |
Implemented in blender::gpu::GLBackend, and blender::gpu::MTLBackend.
Referenced by blender::gpu::VertBuf::duplicate().