This is the first step into merging DRW_gpu_wrapper.hh into the GPU module. This is very similar to #119825. Pull Request: https://projects.blender.org/blender/blender/pulls/144329
33 lines
727 B
C++
33 lines
727 B
C++
/* SPDX-FileCopyrightText: 2023 Blender Authors
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
/** \file
|
|
* \ingroup gpu
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "GPU_batch.hh"
|
|
|
|
namespace blender::gpu {
|
|
|
|
class DummyBatch : public Batch {
|
|
public:
|
|
void draw(int /*vertex_first*/,
|
|
int /*vertex_count*/,
|
|
int /*instance_first*/,
|
|
int /*instance_count*/) override
|
|
{
|
|
}
|
|
void draw_indirect(StorageBuf * /*indirect_buf*/, intptr_t /*offset*/) override {}
|
|
void multi_draw_indirect(StorageBuf * /*indirect_buf*/,
|
|
int /*count*/,
|
|
intptr_t /*offset*/,
|
|
intptr_t /*stride*/) override
|
|
{
|
|
}
|
|
};
|
|
|
|
} // namespace blender::gpu
|