level-zero
level-zero copied to clipboard
[question] How to know if there are pending commands in a command list/queue
Is there any way to know if a particular command list has pending commands to execute before executing or synchronizing?
What I am looking for, is an API call that returns boolean if there is anything pending in a command list before invoking the next two functions.
zeCommandQueueExecuteCommandLists(commandQueueId, ... )
zeCommandQueueSynchronize(comanndQueueId)
Is there anything like that?