LiteFX::Rendering::Backends::VulkanDevice::create¶
Initializes the device instance.
Synopses¶
Declared in <litefx/backends/vulkan.hpp>
Initializes the device instance.
[[dllimport, dllexport]] static SharedPtr<VulkanDevice> create(
VulkanBackend const& backend,
VulkanGraphicsAdapter const& adapter,
UniquePtr<VulkanSurface>&& surface,
GraphicsDeviceFeatures features = { },
Span<String> extensions = { },
void* deviceExtensionObjects = nullptr,
size_t globalDescriptorHeapSize = DEFAULT_DESCRIPTOR_HEAP_SIZE);
Initializes the device instance.
[[dllimport, dllexport]] static SharedPtr<VulkanDevice> create(
VulkanBackend const& backend,
VulkanGraphicsAdapter const& adapter,
UniquePtr<VulkanSurface>&& surface,
Format format,
Size2d const& renderArea,
UInt32 backBuffers,
bool enableVsync = false,
GraphicsDeviceFeatures features = { },
Span<String> extensions = { },
void* deviceExtensionObjects = nullptr,
size_t globalDescriptorHeapSize = DEFAULT_DESCRIPTOR_HEAP_SIZE);
Return Value¶
A shared pointer to the new device instance.
Parameters¶
| Name | Description |
|---|---|
| backend | The backend from which the device is created. |
| adapter | The adapter the device uses for drawing. |
| surface | The surface, the device should draw to. |
| features | The features that should be supported by this device. |
| extensions | The required extensions the device gets initialized with. |
| deviceExtensionObjects | A pointer to additional extension objects (such as device features) that are stored in the devices's pNext chain during device creation. |
| globalDescriptorHeapSize | The size of the global descriptor heap in bytes. |
| format | The initial surface format, device uses for drawing. |
| renderArea | The initial size of the render area. |
| backBuffers | The initial number of back buffers. |
| enableVsync | The initial setting for vertical synchronization. |