Rename RenderDriver::create_device to RenderDriver::select_device
This commit is contained in:
@@ -27,6 +27,6 @@ namespace Nova {
|
||||
|
||||
[[nodiscard]] virtual u32 get_device_count() 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
|
||||
|
||||
@@ -72,7 +72,7 @@ const RenderDevice& VulkanRenderDriver::get_device(const u32 index) const {
|
||||
return m_devices[index];
|
||||
}
|
||||
|
||||
void VulkanRenderDriver::create_device(u32 index) {
|
||||
void VulkanRenderDriver::select_device(u32 index) {
|
||||
NOVA_AUTO_TRACE();
|
||||
NOVA_ASSERT(!m_device);
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace Nova {
|
||||
|
||||
[[nodiscard]] u32 get_device_count() const override;
|
||||
[[nodiscard]] const RenderDevice& get_device(u32 index) const override;
|
||||
void create_device(u32 index) override;
|
||||
void select_device(u32 index) override;
|
||||
|
||||
private:
|
||||
WindowDriver* m_window_driver = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user