Rename RenderDriver::create_device to RenderDriver::select_device

This commit is contained in:
2025-04-08 18:43:06 +10:00
parent 608af1b866
commit 9ab1b306b3
3 changed files with 3 additions and 3 deletions

View File

@@ -27,6 +27,6 @@ namespace Nova {
[[nodiscard]] virtual u32 get_device_count() const = 0; [[nodiscard]] virtual u32 get_device_count() const = 0;
[[nodiscard]] virtual const RenderDevice& get_device(u32 index) const = 0; [[nodiscard]] virtual const RenderDevice& get_device(u32 index) const = 0;
virtual void create_device(u32 index) = 0; virtual void select_device(u32 index) = 0;
}; };
} // namespace Nova } // namespace Nova

View File

@@ -72,7 +72,7 @@ const RenderDevice& VulkanRenderDriver::get_device(const u32 index) const {
return m_devices[index]; return m_devices[index];
} }
void VulkanRenderDriver::create_device(u32 index) { void VulkanRenderDriver::select_device(u32 index) {
NOVA_AUTO_TRACE(); NOVA_AUTO_TRACE();
NOVA_ASSERT(!m_device); NOVA_ASSERT(!m_device);

View File

@@ -26,7 +26,7 @@ namespace Nova {
[[nodiscard]] u32 get_device_count() const override; [[nodiscard]] u32 get_device_count() const override;
[[nodiscard]] const RenderDevice& get_device(u32 index) const override; [[nodiscard]] const RenderDevice& get_device(u32 index) const override;
void create_device(u32 index) override; void select_device(u32 index) override;
private: private:
WindowDriver* m_window_driver = nullptr; WindowDriver* m_window_driver = nullptr;