Top Description Fields Constructors Methods
org.lwjgl.vulkan

public Class VkDevice

extends DispatchableHandleDevice
Class Inheritance
Imports
org.lwjgl.system.*

Wraps a Vulkan device dispatchable handle.

Field Summary

Modifier and TypeField and Description
private final VkPhysicalDevice

Constructor Summary

AccessConstructor and Description
public
VkDevice(long
the native VkDevice handle
handle
,
VkPhysicalDevice
the physical device used to create the VkDevice
physicalDevice
,
VkDeviceCreateInfo
the VkDeviceCreateInfo structure used to create the VkDevice
ci
)

Creates a VkDevice instance for the specified native handle.

public
VkDevice(long
the native VkDevice handle
handle
,
VkPhysicalDevice
the physical device used to create the VkDevice
physicalDevice
,
VkDeviceCreateInfo
the VkDeviceCreateInfo structure used to create the VkDevice
ci
,
int
if not 0, overrides the API version supported by the device.
apiVersion
)

Creates a VkDevice instance for the specified native handle.

Method Summary

Modifier and TypeMethod and Description
public VKCapabilitiesInstance
getCapabilitiesInstance()

Implements abstract org.lwjgl.vulkan.DispatchableHandleDevice.getCapabilitiesInstance.

Returns the VKCapabilitiesInstance instance associated with this dispatchable handle.
private static VKCapabilitiesDevice
getDeviceCapabilities(long handle, VkPhysicalDevice physicalDevice, VkDeviceCreateInfo ci, int apiVersion)

public VkPhysicalDevice
getPhysicalDevice()

Returns the physical device used to create this VkDevice.

Inherited from org.lwjgl.vulkan.DispatchableHandleDevice:
getCapabilities

Field Detail

physicalDeviceback to summary
private final VkPhysicalDevice physicalDevice

Constructor Detail

VkDeviceback to summary
public VkDevice(long handle, VkPhysicalDevice physicalDevice, VkDeviceCreateInfo ci)

Creates a VkDevice instance for the specified native handle.

The Vulkan version supported by the VkDevice will be determined by querying the VkPhysicalDeviceProperties of the specified physical device.

Parameters
handle:long

the native VkDevice handle

physicalDevice:VkPhysicalDevice

the physical device used to create the VkDevice

ci:VkDeviceCreateInfo

the VkDeviceCreateInfo structure used to create the VkDevice

VkDeviceback to summary
public VkDevice(long handle, VkPhysicalDevice physicalDevice, VkDeviceCreateInfo ci, int apiVersion)

Creates a VkDevice instance for the specified native handle.

If apiVersion is 0, the Vulkan version supported by the VkDevice will be determined by querying the VkPhysicalDeviceProperties of the specified physical device. Otherwise, the specified apiVersion will be used.

Parameters
handle:long

the native VkDevice handle

physicalDevice:VkPhysicalDevice

the physical device used to create the VkDevice

ci:VkDeviceCreateInfo

the VkDeviceCreateInfo structure used to create the VkDevice

apiVersion:int

if not 0, overrides the API version supported by the device.

Method Detail

getCapabilitiesInstanceback to summary
public VKCapabilitiesInstance getCapabilitiesInstance()

Implements abstract org.lwjgl.vulkan.DispatchableHandleDevice.getCapabilitiesInstance.

Doc from org.lwjgl.vulkan.DispatchableHandleDevice.getCapabilitiesInstance.

Returns the VKCapabilitiesInstance instance associated with this dispatchable handle.

Annotations
@Override
getDeviceCapabilitiesback to summary
private static VKCapabilitiesDevice getDeviceCapabilities(long handle, VkPhysicalDevice physicalDevice, VkDeviceCreateInfo ci, int apiVersion)
getPhysicalDeviceback to summary
public VkPhysicalDevice getPhysicalDevice()

Returns the physical device used to create this VkDevice.