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
ConstructorsConstructorDescriptionVkDevice(long handle, VkPhysicalDevice physicalDevice, VkDeviceCreateInfo ci) Creates aVkDeviceinstance for the specified native handle.VkDevice(long handle, VkPhysicalDevice physicalDevice, VkDeviceCreateInfo ci, int apiVersion) Creates aVkDeviceinstance for the specified native handle. -
Method Summary
Modifier and TypeMethodDescriptionReturns theVKCapabilitiesDeviceinstance associated with this dispatchable handle.Returns theVKCapabilitiesInstanceinstance 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 aVkDeviceinstance for the specified native handle.The Vulkan version supported by the
VkDevicewill be determined by querying theVkPhysicalDevicePropertiesof the specified physical device.- Parameters:
handle- the nativeVkDevicehandlephysicalDevice- the physical device used to create theVkDeviceci- theVkDeviceCreateInfostructure used to create theVkDevice
-
VkDevice
public VkDevice(long handle, VkPhysicalDevice physicalDevice, VkDeviceCreateInfo ci, int apiVersion) Creates aVkDeviceinstance for the specified native handle.If
apiVersionis 0, the Vulkan version supported by theVkDevicewill be determined by querying theVkPhysicalDevicePropertiesof the specified physical device. Otherwise, the specifiedapiVersionwill be used.- Parameters:
handle- the nativeVkDevicehandlephysicalDevice- the physical device used to create theVkDeviceci- theVkDeviceCreateInfostructure used to create theVkDeviceapiVersion- if not 0, overrides the API version supported by the device.
-
-
Method Details
-
getPhysicalDevice
Returns the physical device used to create thisVkDevice. -
getCapabilitiesInstance
Returns theVKCapabilitiesInstanceinstance associated with this dispatchable handle. -
getCapabilities
Returns theVKCapabilitiesDeviceinstance associated with this dispatchable handle.
-