VulkanEngine 0.1
Graphics engine using Vulkan
Loading...
Searching...
No Matches
IndexAttribute.h
1// Copyright (c) 2024 Michael Carlie. All Rights Reserved.
2//
3// This software is released under the MIT License.
4// https://opensource.org/licenses/MIT
5
6#ifndef INCLUDE_VULKANENGINE_INDEXATTRIBUTE_H_
7#define INCLUDE_VULKANENGINE_INDEXATTRIBUTE_H_
8
9#include <VulkanEngine/Attribute.h>
10
11#include <vulkan/vulkan.hpp>
12
13namespace VulkanEngine {
14
17template <typename T>
18class IndexAttribute : public Attribute {
19 public:
23 IndexAttribute(const T* data, size_t num_elements);
24
26 virtual ~IndexAttribute();
27};
28
29} // namespace VulkanEngine
30
31#include <IndexAttribute.cpp> // NOLINT(build/include)
32
33#endif // INCLUDE_VULKANENGINE_INDEXATTRIBUTE_H_
Abstract base class for shader attributes.
Definition: Attribute.h:16
size_t num_elements
The number of elements in this attribute.
Definition: Attribute.h:33
Definition: IndexAttribute.h:18
virtual ~IndexAttribute()
Destructor.
Definition: IndexAttribute.cpp:35
TODO development of this class is in progress.
Definition: Attribute.h:13