VisuTwin Canvas
C++ 3D Engine — Metal Backend
Loading...
Searching...
No Matches
bindGroupFormat.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 09.11.2025.
5//
6#pragma once
7
8#include <string>
9#include <vector>
10
11namespace visutwin::canvas
12{
13 class GraphicsDevice;
14
19 public:
20 BindBaseFormat(const std::string& name, uint32_t visibility): _name(name), _visibility(visibility) {}
21
22 protected:
23 std::string _name;
24 uint32_t _visibility;
25 };
26
33 public:
34 BindGroupFormat(GraphicsDevice* graphicsDevice, const std::vector<BindBaseFormat*>& formats);
35
36 uint32_t key() const { return _id; }
37
38 private:
39 uint32_t _id;
40
41 GraphicsDevice* _device;
42 };
43}
BindBaseFormat(const std::string &name, uint32_t visibility)
BindGroupFormat(GraphicsDevice *graphicsDevice, const std::vector< BindBaseFormat * > &formats)
Abstract GPU interface for resource creation, state management, and draw submission.