VisuTwin Canvas
C++ 3D Engine — Metal Backend
Loading...
Searching...
No Matches
metalIndexBuffer.h
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
2// Copyright 2025-2026 Arnis Lektauers
3//
4// Created by Arnis Lektauers on 22.11.2025.
5//
6#pragma once
7
8#include <vector>
9
10#include "metalBuffer.h"
12
13namespace visutwin::canvas
14{
16 {
17 public:
19
20 bool setData(const std::vector<uint8_t>& data) override;
21
22 [[nodiscard]] MTL::Buffer* raw() const { return gpu::MetalBuffer::raw(); }
23
24 void* nativeBuffer() const override { return raw(); }
25
26 };
27}
Abstract GPU interface for resource creation, state management, and draw submission.
IndexFormat format() const
Definition indexBuffer.h:33
IndexBuffer(GraphicsDevice *graphicsDevice, IndexFormat format, int numIndices)
MetalIndexBuffer(GraphicsDevice *graphicsDevice, IndexFormat format, int numIndices)
void * nativeBuffer() const override
bool setData(const std::vector< uint8_t > &data) override