Class VFakePhysicalDevice
java.lang.Object
com.io7m.jcoronado.fake.VFakePhysicalDevice
- All Implemented Interfaces:
VulkanHandleDispatchableType, VulkanHandleType, VulkanPhysicalDeviceType, com.io7m.jmulticlose.core.CloseableType, AutoCloseable
The default fake physical device.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Destroy the object.Create a new logical device from this physical device.Retrieve the device driver properties.extensions(Optional<String> layer) features()formatProperties(VulkanFormat format) Retrieve the device ID properties.imageFormatProperties(VulkanFormat format, VulkanImageKind type, VulkanImageTiling tiling, Set<VulkanImageUsageFlag> usage, Set<VulkanImageCreateFlag> flags) instance()booleanisClosed()layers()limits()memory()voidsetExtensions(Map<String, VulkanExtensionProperties> inExtensions) Set the extensions.voidsetFeatures(VulkanPhysicalDeviceFeatures newFeatures) Set the features.voidsetFormatProperties(VulkanFormat format, VulkanFormatProperties newProperties) Set properties for the format.voidsetImageFormatProperties(VulkanImageFormatProperties newImageFormatProperties) Set the image format properties that will be reported for all formats.voidsetLimits(VulkanPhysicalDeviceLimits newLimits) Set the limits.voidsetMemory(VulkanPhysicalDeviceMemoryProperties newMemory) Set the memory properties.voidsetNextDevice(VFakeLogicalDevice inNextDevice) Set the next device.voidsetProperties(VulkanPhysicalDeviceProperties newProperties) Set the properties.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface VulkanPhysicalDeviceType
queueFamilyFindWithFlags, queueFamilyFindWithFlags
-
Constructor Details
-
VFakePhysicalDevice
Construct a device.- Parameters:
newInstance- The owning instance
-
-
Method Details
-
getExtensions
- Returns:
- The extensions
-
setExtensions
Set the extensions.- Parameters:
inExtensions- The extensions
-
getQueueFamilies
- Returns:
- A mutable view of the queue families
-
setFeatures
Set the features.- Parameters:
newFeatures- The features
-
setLimits
Set the limits.- Parameters:
newLimits- The limits
-
setMemory
Set the memory properties.- Parameters:
newMemory- The memory properties
-
setImageFormatProperties
Set the image format properties that will be reported for all formats.- Parameters:
newImageFormatProperties- The image format properties
-
getImageFormatProperties
- Returns:
- The image format properties that will be reported for all formats
-
setProperties
Set the properties.- Parameters:
newProperties- The properties
-
instance
- Specified by:
instancein interfaceVulkanPhysicalDeviceType- Returns:
- The instance to which the physical device belongs
-
extensions
- Specified by:
extensionsin interfaceVulkanPhysicalDeviceType- Parameters:
layer- The layer that will be inspected for extensions- Returns:
- The available device extensions
-
layers
- Specified by:
layersin interfaceVulkanPhysicalDeviceType- Returns:
- The available layers
-
properties
- Specified by:
propertiesin interfaceVulkanPhysicalDeviceType- Returns:
- The basic properties of the device
-
limits
- Specified by:
limitsin interfaceVulkanPhysicalDeviceType- Returns:
- The limits of the device
-
features
- Specified by:
featuresin interfaceVulkanPhysicalDeviceType- Returns:
- The features of the device
-
formatProperties
- Specified by:
formatPropertiesin interfaceVulkanPhysicalDeviceType- Parameters:
format- The format- Returns:
- The properties of the given format
-
setFormatProperties
Set properties for the format.- Parameters:
format- The formatnewProperties- The properties
-
imageFormatProperties
public VulkanImageFormatProperties imageFormatProperties(VulkanFormat format, VulkanImageKind type, VulkanImageTiling tiling, Set<VulkanImageUsageFlag> usage, Set<VulkanImageCreateFlag> flags) - Specified by:
imageFormatPropertiesin interfaceVulkanPhysicalDeviceType- Parameters:
format- The formattype- The image kindtiling- The image tiling modeusage- The usage flagsflags- The creation flags- Returns:
- The properties of the given image format
-
memory
- Specified by:
memoryin interfaceVulkanPhysicalDeviceType- Returns:
- The memory properties of the device
-
queueFamilies
- Specified by:
queueFamiliesin interfaceVulkanPhysicalDeviceType- Returns:
- A read-only list of the available queue families
-
setNextDevice
Set the next device.- Parameters:
inNextDevice- The next device
-
createLogicalDevice
Description copied from interface:VulkanPhysicalDeviceTypeCreate a new logical device from this physical device.- Specified by:
createLogicalDevicein interfaceVulkanPhysicalDeviceType- Parameters:
info- The creation info- Returns:
- A new logical device
-
driverProperties
Description copied from interface:VulkanPhysicalDeviceTypeRetrieve the device driver properties.- Specified by:
driverPropertiesin interfaceVulkanPhysicalDeviceType- Returns:
- The device driver properties, if available
-
idProperties
Description copied from interface:VulkanPhysicalDeviceTypeRetrieve the device ID properties.- Specified by:
idPropertiesin interfaceVulkanPhysicalDeviceType- Returns:
- The device ID properties, if available
-
close
public void close()Description copied from interface:VulkanHandleTypeDestroy the object.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceVulkanHandleType
-
isClosed
public boolean isClosed()- Specified by:
isClosedin interfacecom.io7m.jmulticlose.core.CloseableType
-