#pragma once #include "Bindable.h" 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; };