Package org.lwjgl.vulkan
Class VkDevice
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.vulkan.VkDevice
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class VkDevice extends org.lwjgl.system.Pointer.Default
Wraps a Vulkan device dispatchable handle.
-
-
Constructor Summary
Constructors Constructor Description VkDevice(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VKCapabilitiesDevice
getCapabilities()
Returns theVKCapabilitiesInstance
instance associated with this dispatchable handle.VkPhysicalDevice
getPhysicalDevice()
Returns the physical device used to create thisVkDevice
.
-
-
-
Constructor Detail
-
VkDevice
public VkDevice(long handle, VkPhysicalDevice physicalDevice, VkDeviceCreateInfo ci)
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 Detail
-
getPhysicalDevice
public VkPhysicalDevice getPhysicalDevice()
Returns the physical device used to create thisVkDevice
.
-
getCapabilities
public VKCapabilitiesDevice getCapabilities()
Returns theVKCapabilitiesInstance
instance associated with this dispatchable handle.
-
-