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)
Undocumented in source.
open
Device open(QueueRequest[] queues)

Open a logical device with the specified queues.

supportsSurface
bool supportsSurface(uint queueFamilyIndex, Surface surface)
Undocumented in source.
surfaceCaps
SurfaceCaps surfaceCaps(Surface surface)
Undocumented in source.
surfaceFormats
Format[] surfaceFormats(Surface surface)
Undocumented in source.
surfacePresentModes
PresentMode[] surfacePresentModes(Surface surface)
Undocumented in source.

Properties

apiVersion
uint apiVersion [@property getter]
Undocumented in source.
deviceId
uint deviceId [@property getter]
Undocumented in source.
driverVersion
uint driverVersion [@property getter]
Undocumented in source.
features
DeviceFeatures features [@property getter]
Undocumented in source.
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]
Undocumented in source.
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.
vendorId
uint vendorId [@property getter]
Undocumented in source.

Inherited Members

From AtomicRefCounted

refCount
size_t refCount [@property getter]

Atomically load the number of active references.

retain
void retain()

Atomically increment the reference count.

release
void release()

Atomically decrement the reference count and dispose if it reaches zero. The object is locked using its own mutex when dispose is called.

rcLock
shared(AtomicRefCounted) rcLock()

Get a copy of this RefCounted instance if the refCount >= 1. This increases the refCount by 1. This should only be used to keep weak reference and ensures that the resource is not disposed. The operation is atomic.

Meta