KDGpu::Queue
Module: Public API
Queue is used to submit commands for execution and optionally present content. More...
#include <KDGpu/queue.h>
Public Functions
Friends
Detailed Description
Queue is used to submit commands for execution and optionally present content.
See: Device::queues
1
2
3
4
5
6
7
8
9
10
11
12
13 | using namespace KDGpu;
Adapter *selectedAdapter = instance.selectAdapter(AdapterDeviceType::Default);
Device device = selectedAdapter->createDevice();
Queue queue = device.queues()[0];
CommandRecorder commandRecorder = device.createCommandRecorder();
...
const CommandBuffer commands = commandRecorder.finish();
queue.submit(SubmitOptions{
.commandBuffers = { commands },
});
|
Public Functions Documentation
function Queue
function ~Queue
function handle
| inline const Handle< Queue_t > & handle() const
|
Returns the handle used to retrieve the underlying API specific Queue.
See: ResourceManager
function isValid
| inline bool isValid() const
|
Convenience function to check whether the Queue is actually referencing a valid API specific resource.
function operator Handle< Queue_t >
| inline operator Handle< Queue_t >() const
|
function flags
| inline QueueFlags flags() const
|
function timestampValidBits
| inline uint32_t timestampValidBits() const
|
function minImageTransferGranularity
| inline Extent3D minImageTransferGranularity() const
|
function queueTypeIndex
| inline uint32_t queueTypeIndex() const
|
function waitUntilIdle
Forces a CPU side blocking wait until all pending commands on the queue have completed their execution.
function submit
| void submit(
const SubmitOptions & options
)
|
Submit commands for execution based on the SubmitOptionsoptions provided.
function present
| PresentResult present(
const PresentOptions & options
)
|
Request the Queue present content to the swapchains referenced in the PresentOptionsoptions.
function lastPerSwapchainPresentResults
| std::vector< PresentResult > lastPerSwapchainPresentResults() const
|
function waitForUploadBufferData
| void waitForUploadBufferData(
const WaitForBufferUploadOptions & options
)
|
function uploadBufferData
| UploadStagingBuffer uploadBufferData(
const BufferUploadOptions & options
)
|
function waitForUploadTextureData
| void waitForUploadTextureData(
const WaitForTextureUploadOptions & options
)
|
function uploadTextureData
| UploadStagingBuffer uploadTextureData(
const TextureUploadOptions & options
)
|
Friends
friend Device
| friend class Device(
Device
);
|
friend VulkanGraphicsApi
| friend class VulkanGraphicsApi(
VulkanGraphicsApi
);
|
Updated on 2024-09-08 at 00:13:10 +0000