Vulkan: Initial Draw List

Dummy implementation of the VKDrawList that isn't caching the draw calls
but just execute them when they are appended to the list.

Pull Request: https://projects.blender.org/blender/blender/pulls/107873
This commit is contained in:
Jeroen Bakker
2023-05-12 12:09:41 +02:00
parent 149d364307
commit f9d094ba9e
2 changed files with 7 additions and 2 deletions

View File

@@ -5,11 +5,16 @@
* \ingroup gpu
*/
#include "GPU_batch.h"
#include "vk_drawlist.hh"
namespace blender::gpu {
void VKDrawList::append(GPUBatch * /*batch*/, int /*i_first*/, int /*i_count*/) {}
void VKDrawList::append(GPUBatch *batch, int instance_first, int instance_count)
{
GPU_batch_draw_advanced(batch, 0, 0, instance_first, instance_count);
}
void VKDrawList::submit() {}

View File

@@ -13,7 +13,7 @@ namespace blender::gpu {
class VKDrawList : public DrawList {
public:
void append(GPUBatch *batch, int i_first, int i_count) override;
void append(GPUBatch *batch, int instance_first, int instance_count) override;
void submit() override;
};