Fix some compilation errors

This commit is contained in:
Jérôme Leclercq
2020-08-27 20:02:20 +02:00
parent 91291fd91c
commit df51526841
6 changed files with 26 additions and 24 deletions

View File

@@ -26,7 +26,7 @@ namespace Nz
bool Initialize(UInt64 size, BufferUsageFlags usage) override;
const UInt8* GetData() const;
UInt64 GetSize() const;
UInt64 GetSize() const override;
DataStorage GetStorage() const override;
void* Map(BufferAccess access, UInt64 offset = 0, UInt64 size = 0) override;

View File

@@ -35,7 +35,7 @@ namespace Nz
VertexDeclaration(VertexInputRate inputRate, std::initializer_list<ComponentEntry> components);
VertexDeclaration(const VertexDeclaration&) = delete;
VertexDeclaration(VertexDeclaration&&) noexcept = default;
VertexDeclaration(VertexDeclaration&&) = default;
~VertexDeclaration() = default;
inline const Component* FindComponent(VertexComponent vertexComponent, std::size_t componentIndex) const;
@@ -51,7 +51,7 @@ namespace Nz
template<typename T> bool HasComponentOfType(VertexComponent vertexComponent, std::size_t componentIndex = 0) const;
VertexDeclaration& operator=(const VertexDeclaration&) = delete;
VertexDeclaration& operator=(VertexDeclaration&&) noexcept = default;
VertexDeclaration& operator=(VertexDeclaration&&) = default;
static inline const VertexDeclarationRef& Get(VertexLayout layout);
static bool IsTypeSupported(ComponentType type);