#pragma once #include "Bindable.h" #include #include class IndexBuffer : public Bindable { public: IndexBuffer(Graphics& gfx, const std::vector& indices); void Bind(Graphics& gfx) noexcept override; UINT GetCount() const noexcept; protected: UINT count; Microsoft::WRL::ComPtr pIndexBuffer; };