Vulkan: Initial Draw List #107873
|
@ -5,11 +5,16 @@
|
||||||
* \ingroup gpu
|
* \ingroup gpu
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "GPU_batch.h"
|
||||||
|
|
||||||
#include "vk_drawlist.hh"
|
#include "vk_drawlist.hh"
|
||||||
|
|
||||||
namespace blender::gpu {
|
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() {}
|
void VKDrawList::submit() {}
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ namespace blender::gpu {
|
||||||
|
|
||||||
class VKDrawList : public DrawList {
|
class VKDrawList : public DrawList {
|
||||||
public:
|
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;
|
void submit() override;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue