VV::V2::PhysicalDevice struct

Represents a physical device.

Base classes

struct VV::V1::PhysicalDevice
Represents a physical device.

Derived classes

class VV::V3::PhysicalDevice
Represents a physical device.

Public types

using Parent = V1::PhysicalDevice

Public static functions

static auto CheckExtensionSupport(Handle _handle, RoCStr _extensionSpecified) -> bool
Checks to see if the specified extensions are supported by the physical device.
static auto CheckExtensionSupport(Handle _handle, DynamicArray<RoCStr> _extensionsSpecified) -> bool
Checks to see if the specified extensions are supported by the physical device.
static auto FindSupportedFormat(Handle _handle, const DynamicArray<EFormat>& _canidates, EImageTiling _tiling, FormatFeatureFlags _features, EFormat& _format) -> EResult
Checks to see if the formats in _canidates are available for the specified physical device, if the format is found, it will be returned with the format container reference.
static auto FindMemoryType(Handle _handle, ui32 _typeFilter, Memory::PropertyFlags _properties) -> ui32
Finds the memory type index based on the type filter and properties desired. (Returns the max value of uint32 otherwise)
static auto GetAvailableLayerExtensions(Handle _handle, RoCStr _layerName, DynamicArray<ExtensionProperties>& _extensionListing) -> EResult
Provides the available layer extensions for the specified layer name into the _extensionListing container.
static auto GetAvailableLayersAndExtensions(Handle _handle, DynamicArray<LayerAndExtensionProperties>& _layersAndExtensions) -> EResult
Gets all extensions for the known layers that the physical device supports.
static auto GetAvailableQueueFamilies(Handle _handle) -> DynamicArray<QueueFamilyProperties>
Provides the queue families for the respective device.
static auto GetMaxSampleCount_ColorAndDepth(Handle _handle) -> ESampleCount
Gets the maximum sample count allowed for color and depth.

Function documentation

static EResult VV::V2::PhysicalDevice::GetAvailableLayersAndExtensions(Handle _handle, DynamicArray<LayerAndExtensionProperties>& _layersAndExtensions)

Gets all extensions for the known layers that the physical device supports.

Parameters
_handle
_layersAndExtensions

Note: The layers and extensions container must have the layer properties member of each element populated by the application instance.