PhysicalDevice

Represent a physical device. This interface is meant to describe a graphics device and open a logical device out of it.

Members

Functions

formatProperties
FormatProperties formatProperties(Format format)

Get the features supported for the given format

open
Device open(QueueRequest[] queues, DeviceFeatures features)

Open a logical device with the specified queues.

supportsSurface
bool supportsSurface(uint queueFamilyIndex, Surface surface)

Check whether the given queue family supports presentation on the give surface.

surfaceCaps
SurfaceCaps surfaceCaps(Surface surface)

Get the capabilities of surface on this device.

surfaceFormats
Format[] surfaceFormats(Surface surface)

Get the formats supported by the given surface.

surfacePresentModes
PresentMode[] surfacePresentModes(Surface surface)

Get the present mode supported by the given surface.

Properties

features
DeviceFeatures features [@property getter]
Undocumented in source.
instance
Instance instance [@property getter]

The instance this physical device is issued from

limits
DeviceLimits limits [@property getter]
Undocumented in source.
memoryProperties
MemoryProperties memoryProperties [@property getter]
Undocumented in source.
name
string name [@property getter]
Undocumented in source.
queueFamilies
QueueFamily[] queueFamilies [@property getter]

Get the queue families for the device

softwareRendering
bool softwareRendering [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
type
DeviceType type [@property getter]
Undocumented in source.

Meta