Struct asche::DeviceConfiguration[][src]

pub struct DeviceConfiguration<'a> {
    pub device_type: PhysicalDeviceType,
    pub swapchain_format: Format,
    pub swapchain_color_space: ColorSpaceKHR,
    pub presentation_mode: PresentModeKHR,
    pub queue_configuration: QueueConfiguration,
    pub extensions: Vec<*const c_char>,
    pub features_v1_0: Option<PhysicalDeviceFeaturesBuilder<'a>>,
    pub features_v1_1: Option<PhysicalDeviceVulkan11FeaturesBuilder<'a>>,
    pub features_v1_2: Option<PhysicalDeviceVulkan12FeaturesBuilder<'a>>,
    pub features_robustness2: Option<PhysicalDeviceRobustness2FeaturesEXTBuilder<'a>>,
    pub features_raytracing: Option<PhysicalDeviceRayTracingPipelineFeaturesKHRBuilder<'a>>,
    pub features_acceleration_structure: Option<PhysicalDeviceAccelerationStructureFeaturesKHRBuilder<'a>>,
}
Expand description

Describes how the device should be configured.

Fields

device_type: PhysicalDeviceType

The device type that is requested.

swapchain_format: Format

The image format of the swapchain.

swapchain_color_space: ColorSpaceKHR

The color space of the swapchain.

presentation_mode: PresentModeKHR

The presentation mode of the swap chain.

queue_configuration: QueueConfiguration

The configuration of the queues.

extensions: Vec<*const c_char>

Device extensions to load.

features_v1_0: Option<PhysicalDeviceFeaturesBuilder<'a>>

Vulkan 1.0 features.

features_v1_1: Option<PhysicalDeviceVulkan11FeaturesBuilder<'a>>

Vulkan 1.1 features.

features_v1_2: Option<PhysicalDeviceVulkan12FeaturesBuilder<'a>>

Vulkan 1.2 features

features_robustness2: Option<PhysicalDeviceRobustness2FeaturesEXTBuilder<'a>>

VK_EXT_robustness2 features

features_raytracing: Option<PhysicalDeviceRayTracingPipelineFeaturesKHRBuilder<'a>>

VK_KHR_ray_tracing_pipeline features

features_acceleration_structure: Option<PhysicalDeviceAccelerationStructureFeaturesKHRBuilder<'a>>

VK_KHR_acceleration_structure features

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.