blob: 9a192b767657f2626c613e971236b0c70b20e32e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#pragma once
#include "rendering/index_buffer.h"
namespace Donut
{
class VulkanIndexBuffer
: public IndexBuffer
{
public:
VulkanIndexBuffer(uint32_t* indices, uint32_t count);
virtual ~VulkanIndexBuffer();
virtual void bind() const override;
virtual void unbind() const override;
virtual uint32_t get_count() const override { return m_count; }
private:
uint32_t m_renderer_id;
uint32_t m_count;
};
};
|