Blender V4.3
dummy_context.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
9#pragma once
10
12
13#include "dummy_framebuffer.hh"
14
15namespace blender::gpu {
16
17class DummyContext : public Context {
18 public:
20 {
21 back_left = active_fb = new DummyFrameBuffer("DummyFramebuffer");
22 }
23 void activate() override {}
24 void deactivate() override {}
25 void begin_frame() override {}
26 void end_frame() override {}
27
28 void flush() override {}
29 void finish() override {}
30
31 void memory_statistics_get(int * /*r_total_mem*/, int * /*r_free_mem*/) override {}
32
33 void debug_group_begin(const char *, int) override {}
34 void debug_group_end() override {}
35 bool debug_capture_begin(const char * /*title*/) override
36 {
37 return false;
38 }
39 void debug_capture_end() override {}
40 void *debug_capture_scope_create(const char * /*name*/) override
41 {
42 return nullptr;
43 }
44 bool debug_capture_scope_begin(void * /*scope*/) override
45 {
46 return false;
47 }
48 void debug_capture_scope_end(void * /*scope*/) override {}
49
50 void debug_unbind_all_ubo() override {}
51 void debug_unbind_all_ssbo() override {}
52};
53
54} // namespace blender::gpu
bool debug_capture_begin(const char *) override
void debug_unbind_all_ssbo() override
void debug_unbind_all_ubo() override
void debug_group_begin(const char *, int) override
void memory_statistics_get(int *, int *) override
void debug_capture_scope_end(void *) override
void debug_capture_end() override
bool debug_capture_scope_begin(void *) override
void * debug_capture_scope_create(const char *) override
void debug_group_end() override