Add helper methods

This commit is contained in:
2023-09-11 14:00:00 +02:00
parent 4572cfbf53
commit 7dadd440d0
2 changed files with 7 additions and 0 deletions

View File

@@ -34,6 +34,11 @@ namespace openVulkanoCpp
old.m_size = 0;
}
void Clear()
{
m_chunks.clear();
}
template<typename ...ARGS>
T& EmplaceBack(ARGS&&... args)
{

View File

@@ -133,6 +133,8 @@ namespace openVulkanoCpp::Scene
* @return reference to the custom data array
*/
[[nodiscard]] std::array<uint8_t, 16>& GetUserData() { return m_userData; }
[[nodiscard]] float GetPixelScaleFactor() const { return m_perPixelScaleFactor; }
};
class PerspectiveCamera : public Camera