Skip to content

KDGpu::AdapterOptions

Module: Public API

Configuration options for device creation from an adapter. More...

#include <KDGpu/adapter.h>

Public Attributes

Name
std::vector< std::string > layers
Device-level validation/debug layers.
std::vector< std::string > extensions
Device extensions (e.g., "VK_KHR_swapchain", "VK_KHR_ray_tracing_pipeline")

Detailed Description

1
struct KDGpu::AdapterOptions;

Configuration options for device creation from an adapter.

See: Adapter::createDevice(), DeviceOptions

Specifies device-level Vulkan layers and extensions to enable when creating a device. Most applications use default options; advanced use cases may enable extensions like ray tracing, mesh shaders, or debugging layers.

Usage example:

This struct is typically used when creating a device. See Adapter::createDevice() for usage examples.

Public Attributes Documentation

variable layers

1
std::vector< std::string > layers;

Device-level validation/debug layers.

variable extensions

1
std::vector< std::string > extensions;

Device extensions (e.g., "VK_KHR_swapchain", "VK_KHR_ray_tracing_pipeline")


Updated on 2026-03-31 at 00:02:07 +0000