Blender V5.3
dummy_framebuffer.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
13namespace blender::gpu {
14
16 public:
17 DummyFrameBuffer(const char *name) : FrameBuffer(name) {}
18 void bind(bool /*enabled_srgb*/) override {}
19 bool check(char /*err_out*/[256]) override
20 {
21 return true;
22 }
23 void clear(GPUFrameBufferBits /*buffers*/,
24 const double4 /*clear_color*/,
25 float /*clear_depth*/,
26 uint /*clear_stencil*/) override
27 {
28 }
29 void clear_multi(Span<double4> /*clear_cols*/) override {}
30 void clear_attachment(GPUAttachmentType /*type*/, const double4 /*clear_value*/) override {}
31
33
34 void subpass_transition_impl(const GPUAttachmentState /*depth_attachment_state*/,
35 Span<GPUAttachmentState> /*color_attachment_states*/) override {};
36
37 void read(GPUFrameBufferBits /*planes*/,
38 eGPUDataFormat /*format*/,
39 const int /*area*/[4],
40 int /*channel_len*/,
41 int /*slot*/,
42 void * /*r_data*/) override
43 {
44 }
45
46 void blit_to(GPUFrameBufferBits /*planes*/,
47 int /*src_slot*/,
48 FrameBuffer * /*dst*/,
49 int /*dst_slot*/,
50 int /*dst_offset_x*/,
51 int /*dst_offset_y*/) override
52 {
53 }
54};
55
56} // namespace blender::gpu
void subpass_transition_impl(const GPUAttachmentState, Span< GPUAttachmentState >) override
void attachment_set_loadstore_op(GPUAttachmentType, GPULoadStore) override
void read(GPUFrameBufferBits, eGPUDataFormat, const int[4], int, int, void *) override
void blit_to(GPUFrameBufferBits, int, FrameBuffer *, int, int, int) override
void clear_attachment(GPUAttachmentType, const double4) override
bool check(char[256]) override
void clear(GPUFrameBufferBits, const double4, float, uint) override
void clear_multi(Span< double4 >) override
FrameBuffer(const char *name)
unsigned int uint
Definition BKE_text.h:55
VecBase< double, 4 > double4