Photon Editor Library 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
VertexStorage.h
Go to the documentation of this file.
1#pragma once
2
6
7#include <cstddef>
8
9namespace ph::editor::ghi
10{
11
12class VertexStorage : public Storage
13{
14public:
16 ~VertexStorage() override;
17
18 virtual std::size_t numVertices() const = 0;
19
20 void upload(
21 const std::byte* rawVertexData,
22 std::size_t numBytes) override = 0;
23
24 const VertexGroupFormatInfo& getFormat() const;
25
26private:
27 VertexGroupFormatInfo m_format;
28};
29
34
36{
37 return m_format;
38}
39
40}// end namespace ph::editor::ghi
Definition Storage.h:14
bool isEmpty() const
Definition VertexStorage.h:30
EStorageElement elementType
Definition ghi_infos.h:67
Definition VertexStorage.h:13
VertexStorage(const VertexGroupFormatInfo &format, EStorageUsage usage)
Definition VertexStorage.cpp:8
void upload(const std::byte *rawVertexData, std::size_t numBytes) override=0
const VertexGroupFormatInfo & getFormat() const
Definition VertexStorage.h:35
virtual std::size_t numVertices() const =0
Definition PlatformDisplay.h:13
EStorageUsage
Definition ghi_enums.h:86