extend api for draw phase

This commit is contained in:
ohyzha
2024-07-31 12:51:55 +03:00
parent 0373039386
commit 51608425c1

View File

@@ -32,7 +32,7 @@ namespace OpenVulkano::Scene
Scene* m_scene = nullptr;
Shader* m_shader = nullptr;
const DrawEncoder m_encoder;
const DrawPhase m_drawPhase;
DrawPhase m_drawPhase;
public:
explicit Drawable(const DrawEncoder& encoder,
@@ -45,6 +45,8 @@ namespace OpenVulkano::Scene
void SetShader(Shader* shader) { m_shader = shader; }
void SetDrawPhase(DrawPhase phase) { m_drawPhase = phase; }
[[nodiscard]] Scene* GetScene() const { return m_scene; }
[[nodiscard]] const auto& GetNodes() const { return m_nodes; }