org.lwjgl.vulkan.VkCommandBuffer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lwjgl-vulkan Show documentation
Show all versions of lwjgl-vulkan Show documentation
A new generation graphics and compute API that provides high-efficiency, cross-platform access to modern GPUs used in a wide variety of devices from PCs and consoles to mobile phones and embedded platforms.
/*
* Copyright LWJGL. All rights reserved.
* License terms: https://www.lwjgl.org/license
*/
package org.lwjgl.vulkan;
/** Wraps a Vulkan command buffer handle. */
public class VkCommandBuffer extends DispatchableHandleDevice {
private final VkDevice device;
/**
* Creates a {@code VkCommandBuffer} using the specified native handle and device.
*
* @param handle the native {@code VkCommandBuffer} handle
* @param device the device on which the command buffer was created
*/
public VkCommandBuffer(long handle, VkDevice device) {
super(handle, device.getCapabilities());
this.device = device;
}
/** Returns the device on which this {@code VkCommandBuffer} was created. */
public VkDevice getDevice() {
return device;
}
}