Class VFakeInstances
java.lang.Object
com.io7m.jcoronado.fake.VFakeInstances
- All Implemented Interfaces:
VulkanInstanceProviderType
A fake instance provider.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateInstance(VulkanInstanceCreateInfo info, Optional<VulkanHostAllocatorType> allocator) Create a new instance.layers()voidsetExtensions(Map<String, VulkanExtensionProperties> newExtensions) Set the extensions.voidsetLayers(Map<String, VulkanLayerProperties> newLayers) Set the layers.voidsetNextInstance(VFakeInstance setNextInstance) Set the next instance that will be returned.voidsetProviderName(String newName) Set the provider name.voidsetProviderVersion(String newVersion) Set the provider version.voidsetVulkanVersion(VulkanVersion newVulkanVersion) Set the Vulkan version.
-
Constructor Details
-
VFakeInstances
public VFakeInstances()A fake instance provider.
-
-
Method Details
-
setExtensions
Set the extensions.- Parameters:
newExtensions- The new extensions
-
setLayers
Set the layers.- Parameters:
newLayers- The new layers
-
getNextInstance
- Returns:
- The next instance that will be returned
-
setNextInstance
Set the next instance that will be returned.- Parameters:
setNextInstance- The next instance
-
setProviderName
-
setProviderVersion
Set the provider version.- Parameters:
newVersion- The version
-
setVulkanVersion
Set the Vulkan version.- Parameters:
newVulkanVersion- The version
-
minimumRequiredVersion
- Specified by:
minimumRequiredVersionin interfaceVulkanInstanceProviderType- Returns:
- The minimum version required by the instance provider
-
providerName
- Specified by:
providerNamein interfaceVulkanInstanceProviderType- Returns:
- The name of the (software) provider
-
providerVersion
- Specified by:
providerVersionin interfaceVulkanInstanceProviderType- Returns:
- The version of the (software) provider
-
findSupportedInstanceVersion
- Specified by:
findSupportedInstanceVersionin interfaceVulkanInstanceProviderType- Returns:
- The supported instance version
-
extensions
- Specified by:
extensionsin interfaceVulkanInstanceProviderType- Returns:
- The available instance extensions
-
layers
- Specified by:
layersin interfaceVulkanInstanceProviderType- Returns:
- The available layers
-
createInstance
public VulkanInstanceType createInstance(VulkanInstanceCreateInfo info, Optional<VulkanHostAllocatorType> allocator) Description copied from interface:VulkanInstanceProviderTypeCreate a new instance.- Specified by:
createInstancein interfaceVulkanInstanceProviderType- Parameters:
info- The creation infoallocator- The optional host allocator- Returns:
- A new instance
-
configuration
- Specified by:
configurationin interfaceVulkanInstanceProviderType- Returns:
- The instance provider configuration
-