mirror of
https://github.com/johndoe6345789/SDL3CPlusPlus.git
synced 2026-05-05 10:59:45 +00:00
feat: Remove CreateSurface method from VulkanDeviceService to streamline instance creation
This commit is contained in:
@@ -109,14 +109,6 @@ void VulkanDeviceService::CreateInstance(const std::vector<const char*>& require
|
||||
}
|
||||
}
|
||||
|
||||
void VulkanDeviceService::CreateSurface(SDL_Window* window) {
|
||||
logging::TraceGuard trace;
|
||||
|
||||
if (!SDL_Vulkan_CreateSurface(window, instance_, nullptr, &surface_)) {
|
||||
throw std::runtime_error("Failed to create Vulkan surface");
|
||||
}
|
||||
}
|
||||
|
||||
void VulkanDeviceService::PickPhysicalDevice() {
|
||||
logging::TraceGuard trace;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user