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.DefaultWraps a Vulkan device dispatchable handle.
-
-
Constructor Summary
Constructors Constructor Description VkDevice(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VKCapabilitiesDevicegetCapabilities()Returns theVKCapabilitiesInstanceinstance associated with this dispatchable handle.VkPhysicalDevicegetPhysicalDevice()Returns the physical device used to create thisVkDevice.
-
-
-
Constructor Detail
-
VkDevice
public VkDevice(long handle, VkPhysicalDevice physicalDevice, VkDeviceCreateInfo ci)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 Detail
-
getPhysicalDevice
public VkPhysicalDevice getPhysicalDevice()
Returns the physical device used to create thisVkDevice.
-
getCapabilities
public VKCapabilitiesDevice getCapabilities()
Returns theVKCapabilitiesInstanceinstance associated with this dispatchable handle.
-
-