62 virtual void compute_dispatch(
int groups_x_len,
int groups_y_len,
int groups_z_len) = 0;
88 virtual void render_step(
bool force_resource_release =
false) = 0;
96 if (name ==
"EEVEE") {
99 if (name ==
"External") {
102 if (name ==
"GpencilMode") {
105 if (name ==
"UV/Image") {
108 if (name ==
"Overlay") {
111 if (name ==
"Workbench") {
114 if (name ==
"Cycles") {
117 if (name ==
"BackBuffer.Blit") {
120 if (name ==
"Compositor") {
virtual void init_resources()=0
virtual void render_end()=0
virtual Batch * batch_alloc()=0
virtual void render_step(bool force_resource_release=false)=0
virtual void compute_dispatch_indirect(StorageBuf *indirect_buf)=0
virtual void compute_dispatch(int groups_x_len, int groups_y_len, int groups_z_len)=0
ShaderCompiler * compiler_
virtual void delete_resources()=0
virtual void render_begin()=0
virtual TexturePool * texturepool_alloc()=0
ShaderCompiler * get_compiler()
virtual PixelBuffer * pixelbuf_alloc(size_t size)=0
virtual QueryPool * querypool_alloc()=0
virtual Texture * texture_alloc(const char *name)=0
virtual FrameBuffer * framebuffer_alloc(const char *name)=0
virtual UniformBuf * uniformbuf_alloc(size_t size, const char *name)=0
virtual IndexBuf * indexbuf_alloc()=0
virtual StorageBuf * storagebuf_alloc(size_t size, GPUUsageType usage, const char *name)=0
virtual BottomLevelAS * blas_alloc(const char *name)=0
virtual void shader_cache_dir_clear_old()=0
virtual Context * context_alloc(GHOST_IWindow *ghost_window, GHOST_IContext *ghost_context)=0
virtual ~GPUBackend()=default
static GPUBackend * get()
virtual Fence * fence_alloc()=0
virtual WorkInFlight * work_in_flight_alloc(unsigned int max_in_flight)=0
virtual VertBuf * vertbuf_alloc()=0
virtual TopLevelAS * tlas_alloc(const char *name)=0
virtual Shader * shader_alloc(const char *name)=0
static ColorTheme4f get_debug_group_color(StringRefNull name)
static ColorTheme4f GPU_DEBUG_GROUP_COLOR_DEFAULT
ColorTheme4< float > ColorTheme4f