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
11
namespace
visutwin::canvas
12
{
13
class
GraphicsDevice
;
14
18
class
BindBaseFormat
{
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
32
class
BindGroupFormat
{
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
}
visutwin::canvas::BindBaseFormat::BindBaseFormat
BindBaseFormat(const std::string &name, uint32_t visibility)
Definition
bindGroupFormat.h:20
visutwin::canvas::BindBaseFormat::_name
std::string _name
Definition
bindGroupFormat.h:23
visutwin::canvas::BindBaseFormat::_visibility
uint32_t _visibility
Definition
bindGroupFormat.h:24
visutwin::canvas::BindGroupFormat::key
uint32_t key() const
Definition
bindGroupFormat.h:36
visutwin::canvas::BindGroupFormat::BindGroupFormat
BindGroupFormat(GraphicsDevice *graphicsDevice, const std::vector< BindBaseFormat * > &formats)
Definition
bindGroupFormat.cpp:12
visutwin::canvas::GraphicsDevice
Abstract GPU interface for resource creation, state management, and draw submission.
Definition
graphicsDevice.h:239
visutwin::canvas
Definition
eventHandler.cpp:9
platform
graphics
bindGroupFormat.h
Generated by
1.16.1