Class VulkanConfig
java.lang.Object
dev.engine.graphics.GraphicsConfig
dev.engine.graphics.vulkan.VulkanConfig
Vulkan graphics configuration with backend-specific settings.
var gfx = VulkanConfig.builder(toolkit, vkBindings, surfaceCreator)
.presentMode(PresentMode.MAILBOX)
.validation(true)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumPreferred swapchain surface format. -
Method Summary
Modifier and TypeMethodDescriptionbindings()static VulkanConfig.Builderbuilder(WindowToolkit toolkit, VkBindings vk, VulkanBackend.SurfaceCreator surfaceCreator) protected RenderDevicecreateDevice(WindowHandle window) Creates the backend-specific render device for the given window.Methods inherited from class GraphicsConfig
create, headless, headless, maxAnisotropy, maxAnisotropy, msaaSamples, msaaSamples, presentMode, presentMode, srgb, srgb, toolkit, validation, validation
-
Method Details
-
surfaceFormat
-
bindings
-
createDevice
Description copied from class:GraphicsConfigCreates the backend-specific render device for the given window. Implemented by each backend config.- Specified by:
createDevicein classGraphicsConfig
-
builder
public static VulkanConfig.Builder builder(WindowToolkit toolkit, VkBindings vk, VulkanBackend.SurfaceCreator surfaceCreator)
-