Allow custom input descriptors

This commit is contained in:
2023-09-01 14:59:11 +02:00
parent df4194be51
commit be7a48dc09
7 changed files with 40 additions and 21 deletions

View File

@@ -15,6 +15,9 @@ namespace openVulkanoCpp::Scene
{
class Camera : public Node
{
public:
ICloseable* renderCamera = nullptr;
protected:
Math::Matrix4f m_viewProjection{1}, m_view{1}, m_projection{1};
Math::Vector4f m_camPosition{};
@@ -35,8 +38,6 @@ namespace openVulkanoCpp::Scene
public:
static constexpr size_t SIZE = sizeof(Math::Matrix4f) * 3 + sizeof(Math::Vector4f) + sizeof(float) * 8;
ICloseable* renderCamera = nullptr;
void* GetData() { return &m_viewProjection; }
void Init(float width, float height, float nearPlane, float farPlane)