- java.lang.Object
-
- com.io7m.jcoronado.lwjgl.VulkanLWJGLInstance
-
- All Implemented Interfaces:
VulkanHandleDispatchableType
,VulkanHandleType
,VulkanInstanceType
,java.lang.AutoCloseable
public final class VulkanLWJGLInstance extends java.lang.Object implements VulkanInstanceType
LWJGLVkInstance
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
checkNotClosed()
void
close()
Destroy the object.protected void
closeActual()
java.util.Map<java.lang.String,VulkanExtensionType>
enabledExtensions()
java.util.stream.Stream<VulkanPhysicalDeviceType>
enumeratePhysicalDevices()
boolean
equals(java.lang.Object o)
int
hashCode()
protected VulkanLWJGLHostAllocatorProxy
hostAllocatorProxy()
boolean
isClosed()
protected org.slf4j.Logger
logger()
java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.io7m.jcoronado.api.VulkanHandleType
isClosed
-
Methods inherited from interface com.io7m.jcoronado.api.VulkanInstanceType
close, findEnabledExtension, physicalDevices
-
-
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
logger
protected org.slf4j.Logger logger()
-
closeActual
protected void closeActual()
-
enumeratePhysicalDevices
public java.util.stream.Stream<VulkanPhysicalDeviceType> enumeratePhysicalDevices() throws VulkanException
- Specified by:
enumeratePhysicalDevices
in interfaceVulkanInstanceType
- Returns:
- The available physical devices
- Throws:
VulkanException
- On errors
-
enabledExtensions
public java.util.Map<java.lang.String,VulkanExtensionType> enabledExtensions()
- Specified by:
enabledExtensions
in interfaceVulkanInstanceType
- Returns:
- The enabled extensions for the instance
-
hostAllocatorProxy
protected final VulkanLWJGLHostAllocatorProxy hostAllocatorProxy()
-
isClosed
public final boolean isClosed()
- Specified by:
isClosed
in interfaceVulkanHandleType
- Returns:
true
iff the handle has been destroyed withVulkanHandleType.close()
- See Also:
VulkanHandleType.close()
-
close
public final void close()
Description copied from interface:VulkanHandleType
Destroy the object.- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfaceVulkanHandleType
-
checkNotClosed
protected final void checkNotClosed() throws VulkanDestroyedException
- Throws:
VulkanDestroyedException
-
-