Blender V5.0
dummy_vertex_buffer.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
11#include "BLI_sys_types.h"
12
13#include "GPU_vertex_buffer.hh"
14
15namespace blender::gpu {
16
17class DummyVertexBuffer : public VertBuf {
18
19 public:
20 void bind_as_ssbo(uint /*binding*/) override {}
21 void bind_as_texture(uint /*binding*/) override {}
22 void wrap_handle(uint64_t /*handle*/) override {}
23
24 void update_sub(uint /*start*/, uint /*len*/, const void * /*data*/) override {}
25 void read(void * /*data*/) const override {}
26
27 protected:
28 void acquire_data() override
29 {
32 }
33 void resize_data() override {}
34 void release_data() override
35 {
37 }
38 void upload_data() override {}
39};
40
41} // namespace blender::gpu
unsigned int uint
#define MEM_SAFE_FREE(v)
unsigned long long int uint64_t
void read(void *) const override
void update_sub(uint, uint, const void *) override
void wrap_handle(uint64_t) override
void * MEM_malloc_arrayN(size_t len, size_t size, const char *str)
Definition mallocn.cc:133