Photon Editor Library 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
IndexStorage.h
Go to the documentation of this file.
1#pragma once
2
4
5#include <cstddef>
6
7namespace ph::editor::ghi
8{
9
10class IndexStorage : public Storage
11{
12public:
14 ~IndexStorage() override;
15
16 virtual std::size_t numIndices() const = 0;
17
18 void upload(
19 const std::byte* rawVertexData,
20 std::size_t numBytes) override = 0;
21
23
24protected:
25 bool isIntegerIndexType() const;
26
27private:
28 EStorageElement m_indexType;
29};
30
32{
33 return m_indexType;
34}
35
36}// end namespace ph::editor::ghi
Definition IndexStorage.h:11
EStorageElement getIndexType() const
Definition IndexStorage.h:31
void upload(const std::byte *rawVertexData, std::size_t numBytes) override=0
virtual std::size_t numIndices() const =0
IndexStorage(EStorageElement indexType, EStorageUsage usage)
Definition IndexStorage.cpp:6
bool isIntegerIndexType() const
Definition IndexStorage.cpp:13
Definition Storage.h:14
Definition PlatformDisplay.h:13
EStorageElement
Definition ghi_enums.h:70
EStorageUsage
Definition ghi_enums.h:86