Blender V5.0
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
8
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 ~DummyContext() override
24 {
26 }
27 void activate() override {}
28 void deactivate() override {}
29 void begin_frame() override {}
30 void end_frame() override {}
31
32 void flush() override {}
33 void finish() override {}
34
35 void memory_statistics_get(int * /*r_total_mem*/, int * /*r_free_mem*/) override {}
36
37 void debug_group_begin(const char * /*unused*/, int /*unused*/) override {}
38 void debug_group_end() override {}
39 bool debug_capture_begin(const char * /*title*/) override
40 {
41 return false;
42 }
43 void debug_capture_end() override {}
44 void *debug_capture_scope_create(const char * /*name*/) override
45 {
46 return nullptr;
47 }
48 bool debug_capture_scope_begin(void * /*scope*/) override
49 {
50 return false;
51 }
52 void debug_capture_scope_end(void * /*scope*/) override {}
53
54 void debug_unbind_all_ubo() override {}
55 void debug_unbind_all_ssbo() override {}
56};
57
58} // 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