aboutsummaryrefslogtreecommitdiff
path: root/src/platform/vulkan/vulkan_index_buffer.h
blob: a0734a800b03f6ab7f469a60f8cdbe37bc078d10 (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 auto bind() const -> void override;
		virtual auto unbind() const -> void override;

		virtual auto get_count() const -> uint32_t override{ return m_count; }
	private:
		uint32_t m_renderer_id;
		uint32_t m_count;
	};
};