36 const auto expectedSize =
static_cast<size_t>(
numIndices()) * indexElementSize(
format());
37 if (data.size() != expectedSize) {
Abstract GPU interface for resource creation, state management, and draw submission.
IndexFormat format() const
IndexBuffer(GraphicsDevice *graphicsDevice, IndexFormat format, int numIndices)
std::vector< uint8_t > _storage