removing device builder

This commit is contained in:
2026-09-06 22:48:21 -07:00
parent 659d6010e3
commit db488a5981
2 changed files with 1 additions and 51 deletions
+1 -19
View File
@@ -32,13 +32,12 @@ struct SwapchainSupportDetails {
class Device {
public:
class Builder;
Device(const Device&) = delete;
Device& operator=(const Device&) = delete;
Device(Device&&) = delete;
Device& operator=(Device&&) = delete;
Device(Window* window);
~Device();
const vk::Device* get() const {
@@ -87,8 +86,6 @@ class Device {
vk::PhysicalDeviceProperties properties;
private:
Device(Window* window);
void setupDebugMessenger();
bool checkValidationLayerSupport();
@@ -130,19 +127,4 @@ class Device {
const std::vector<const char*> enabledExtensions;
};
class Device::Builder {
public:
Builder() = default;
Builder& withWindow(Window& window);
Builder& headless();
std::unique_ptr<Device> build() const;
private:
Window* window = nullptr;
bool headlessRequested = false;
bool modeSet = false;
};
} // namespace sophia