Class VFakeInstance
java.lang.Object
com.io7m.jcoronado.fake.VFakeInstance
- All Implemented Interfaces:
VulkanHandleDispatchableType, VulkanHandleType, VulkanInstanceType, com.io7m.jmulticlose.core.CloseableType, AutoCloseable
A fake instance.
-
Constructor Summary
ConstructorsConstructorDescriptionVFakeInstance(VFakeInstances inOwner, Map<String, VulkanExtensionType> startExtensions) A fake instance. -
Method Summary
Modifier and TypeMethodDescriptionFind the maximum API version supported.Return the API version that this instance will support.voidclose()Destroy the object.booleanisClosed()metrics()provider()voidsetExtensions(Map<String, VulkanExtensionType> newExtensions) Set the extensions used.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface VulkanInstanceType
findEnabledExtension, physicalDevices
-
Constructor Details
-
VFakeInstance
A fake instance.- Parameters:
inOwner- The ownerstartExtensions- The initial extensions enabled
-
-
Method Details
-
getPhysicalDevices
- Returns:
- A mutable list of the current physical devices
-
setExtensions
Set the extensions used.- Parameters:
newExtensions- The extensions
-
close
public void close()Description copied from interface:VulkanHandleTypeDestroy the object.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceVulkanHandleType- Specified by:
closein interfaceVulkanInstanceType
-
isClosed
public boolean isClosed()- Specified by:
isClosedin interfacecom.io7m.jmulticlose.core.CloseableType
-
enumeratePhysicalDevices
- Specified by:
enumeratePhysicalDevicesin interfaceVulkanInstanceType- Returns:
- The available physical devices
-
apiVersionMaximumSupported
Description copied from interface:VulkanInstanceTypeFind the maximum API version supported. This is essentially the same asVulkanInstanceProviderType.findSupportedInstanceVersion(), and does not indicate that this particular instance will allow function calls that require that version.- Specified by:
apiVersionMaximumSupportedin interfaceVulkanInstanceType- Returns:
- The maximum API version supported
- See Also:
-
apiVersionUsed
Description copied from interface:VulkanInstanceTypeReturn the API version that this instance will support. This is the version that the user actually requested, and therefore defines the upper bound for the Vulkan API version that can be used with this instance.- Specified by:
apiVersionUsedin interfaceVulkanInstanceType- Returns:
- The API version that this instance is configured to use
-
enabledExtensions
- Specified by:
enabledExtensionsin interfaceVulkanInstanceType- Returns:
- The enabled extensions for the instance
-
provider
- Specified by:
providerin interfaceVulkanInstanceType- Returns:
- The instance provider used to create the instance
-
metrics
- Specified by:
metricsin interfaceVulkanInstanceType- Returns:
- The metrics for the instance
-