Package org.lwjgl.vulkan
Class VkDevice
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.vulkan.VkDevice
- All Implemented Interfaces:
Pointer
Wraps a Vulkan device dispatchable handle.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionVkDevice
(long handle, VkPhysicalDevice physicalDevice, VkDeviceCreateInfo ci) Creates aVkDevice
instance for the specified native handle.VkDevice
(long handle, VkPhysicalDevice physicalDevice, VkDeviceCreateInfo ci, int apiVersion) Creates aVkDevice
instance for the specified native handle. -
Method Summary
Modifier and TypeMethodDescriptionReturns theVKCapabilitiesDevice
instance associated with this dispatchable handle.Returns theVKCapabilitiesInstance
instance associated with this dispatchable handle.Returns the physical device used to create thisVkDevice
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Constructor Details
-
VkDevice
Creates aVkDevice
instance for the specified native handle.The Vulkan version supported by the
VkDevice
will be determined by querying theVkPhysicalDeviceProperties
of the specified physical device.- Parameters:
handle
- the nativeVkDevice
handlephysicalDevice
- the physical device used to create theVkDevice
ci
- theVkDeviceCreateInfo
structure used to create theVkDevice
-
VkDevice
public VkDevice(long handle, VkPhysicalDevice physicalDevice, VkDeviceCreateInfo ci, int apiVersion) Creates aVkDevice
instance for the specified native handle.If
apiVersion
is 0, the Vulkan version supported by theVkDevice
will be determined by querying theVkPhysicalDeviceProperties
of the specified physical device. Otherwise, the specifiedapiVersion
will be used.- Parameters:
handle
- the nativeVkDevice
handlephysicalDevice
- the physical device used to create theVkDevice
ci
- theVkDeviceCreateInfo
structure used to create theVkDevice
apiVersion
- if not 0, overrides the API version supported by the device.
-
-
Method Details
-
getPhysicalDevice
Returns the physical device used to create thisVkDevice
. -
getCapabilitiesInstance
Returns theVKCapabilitiesInstance
instance associated with this dispatchable handle. -
getCapabilities
Returns theVKCapabilitiesDevice
instance associated with this dispatchable handle.
-