Home | History | Annotate | Download | only in synchronization

Lines Matching refs:vk

40 using namespace vk;
46 const DeviceInterface& vk = context.getDeviceInterface();
57 if (VK_SUCCESS != vk.createEvent(device, &eventInfo, DE_NULL, &event))
60 ptrEvent = Move<VkEvent>(check<VkEvent>(event), Deleter<VkEvent>(vk, device, DE_NULL));
62 if (VK_EVENT_RESET != vk.getEventStatus(device, event))
65 if (VK_SUCCESS != vk.setEvent(device, event))
68 if (VK_EVENT_SET != vk.getEventStatus(device, event))
71 if (VK_SUCCESS != vk.resetEvent(device, event))
74 if (VK_EVENT_RESET != vk.getEventStatus(device, event))
82 const DeviceInterface& vk = context.getDeviceInterface();
86 const Unique<VkCommandPool> cmdPool (createCommandPool(vk, device, VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT, queueFamilyIndex));
87 const Unique<VkCommandBuffer> cmdBuffer (makeCommandBuffer(vk, device, *cmdPool));
100 const Unique<VkEvent> event (createEvent(vk, device));
102 beginCommandBuffer(vk, *cmdBuffer);
103 vk.cmdSetEvent(*cmdBuffer, *event, VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT);
104 endCommandBuffer(vk, *cmdBuffer);
106 VK_CHECK(vk.queueSubmit(queue, 1u, &submitInfo, DE_NULL));
107 VK_CHECK(vk.queueWaitIdle(queue));
109 if (VK_EVENT_SET != vk.getEventStatus(device, *event))
112 beginCommandBuffer(vk, *cmdBuffer);
113 vk.cmdResetEvent(*cmdBuffer, *event, VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT);
114 endCommandBuffer(vk, *cmdBuffer);
116 VK_CHECK(vk.queueSubmit(queue, 1u, &submitInfo, DE_NULL));
117 VK_CHECK(vk.queueWaitIdle(queue));
119 if (VK_EVENT_RESET != vk.getEventStatus(device, *event))
127 const DeviceInterface& vk = context.getDeviceInterface();
131 const Unique<VkFence> fence (createFence(vk, device));
132 const Unique<VkCommandPool> cmdPool (createCommandPool(vk, device, VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT, queueFamilyIndex));
133 const Unique<VkCommandBuffer> cmdBuffer (makeCommandBuffer(vk, device, *cmdPool));
152 const Unique<VkEvent> event (createEvent(vk, device, &eventInfo, DE_NULL));
154 beginCommandBuffer(vk, *cmdBuffer);
155 vk.cmdWaitEvents(*cmdBuffer, 1u, &event.get(), VK_PIPELINE_STAGE_HOST_BIT, VK_PIPELINE_STAGE_ALL_COMMANDS_BIT, 0u, DE_NULL, 0u, DE_NULL, 0u, DE_NULL);
156 endCommandBuffer(vk, *cmdBuffer);
158 VK_CHECK(vk.queueSubmit(queue, 1u, &submitInfo, *fence));
159 if (VK_TIMEOUT != vk.waitForFences(device, 1u, &fence.get(), DE_TRUE, SHORT_FENCE_WAIT))
162 if (VK_SUCCESS != vk.setEvent(device, *event))
165 if (VK_SUCCESS != vk.waitForFences(device, 1u, &fence.get(), DE_TRUE, LONG_FENCE_WAIT))
174 const DeviceInterface& vk = context.getDeviceInterface();
178 const Unique<VkFence> fence (createFence(vk, device));
179 const Unique<VkCommandPool> cmdPool (createCommandPool(vk, device, VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT, queueFamilyIndex));
180 const Move<VkCommandBuffer> ptrCmdBuffer[COUNT] = {makeCommandBuffer(vk, device, *cmdPool), makeCommandBuffer(vk, device, *cmdPool)};
194 const Unique<VkEvent> event (createEvent(vk, device));
196 beginCommandBuffer(vk, cmdBuffers[SET]);
197 vk.cmdSetEvent(cmdBuffers[SET], *event, VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT);
198 endCommandBuffer(vk, cmdBuffers[SET]);
200 beginCommandBuffer(vk, cmdBuffers[WAIT]);
201 vk.cmdWaitEvents(cmdBuffers[WAIT], 1u, &event.get(),VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, VK_PIPELINE_STAGE_ALL_COMMANDS_BIT, 0u, DE_NULL, 0u, DE_NULL, 0u, DE_NULL);
202 endCommandBuffer(vk, cmdBuffers[WAIT]);
204 VK_CHECK(vk.queueSubmit(queue, 1u, &submitInfo, *fence));
205 if (VK_SUCCESS != vk.waitForFences(device, 1u, &fence.get(), DE_TRUE, LONG_FENCE_WAIT))
214 const DeviceInterface& vk = context.getDeviceInterface();
220 createFence(vk, device),
221 createFence(vk, device)
224 const Unique<VkCommandPool> cmdPool (createCommandPool(vk, device, VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT, queueFamilyIndex));
225 const Move<VkCommandBuffer> ptrCmdBuffer[COUNT] = {makeCommandBuffer(vk, device, *cmdPool), makeCommandBuffer(vk, device, *cmdPool)};
252 const Unique<VkEvent> event (createEvent(vk, device));
254 beginCommandBuffer(vk, cmdBuffers[SET]);
255 vk.cmdSetEvent(cmdBuffers[SET], *event, VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT);
256 endCommandBuffer(vk, cmdBuffers[SET]);
258 beginCommandBuffer(vk, cmdBuffers[WAIT]);
259 vk.cmdWaitEvents(cmdBuffers[WAIT], 1u, &event.get(), VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, VK_PIPELINE_STAGE_ALL_COMMANDS_BIT, 0u, DE_NULL, 0u, DE_NULL, 0u, DE_NULL);
260 endCommandBuffer(vk, cmdBuffers[WAIT]);
262 VK_CHECK(vk.queueSubmit(queue, 1u, &submitInfo[SET], fence[SET]));
263 VK_CHECK(vk.queueSubmit(queue, 1u, &submitInfo[WAIT], fence[WAIT]));
265 if (VK_SUCCESS != vk.waitForFences(device, 2u, fence, DE_TRUE, LONG_FENCE_WAIT))
274 const DeviceInterface& vk = context.getDeviceInterface();
278 const Unique<VkFence> fence (createFence(vk, device));
279 const Unique<VkCommandPool> cmdPool (createCommandPool(vk, device, VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT, queueFamilyIndex));
280 const Move<VkCommandBuffer> primaryCmdBuffer (makeCommandBuffer(vk, device, *cmdPool));
289 const Move<VkCommandBuffer> prtCmdBuffers[COUNT] = {allocateCommandBuffer (vk, device, &cmdBufferInfo), allocateCommandBuffer (vk, device, &cmdBufferInfo)};
303 const Unique<VkEvent> event (createEvent(vk, device));
324 VK_CHECK(vk.beginCommandBuffer(secondaryCmdBuffers[SET], &cmdBufferBeginInfo));
325 vk.cmdSetEvent(secondaryCmdBuffers[SET], *event, VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT);
326 endCommandBuffer(vk, secondaryCmdBuffers[SET]);
328 VK_CHECK(vk.beginCommandBuffer(secondaryCmdBuffers[WAIT], &cmdBufferBeginInfo));
329 vk.cmdWaitEvents(secondaryCmdBuffers[WAIT], 1u, &event.get(),VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, VK_PIPELINE_STAGE_ALL_COMMANDS_BIT, 0u, DE_NULL, 0u, DE_NULL, 0u, DE_NULL);
330 endCommandBuffer(vk, secondaryCmdBuffers[WAIT]);
332 beginCommandBuffer(vk, *primaryCmdBuffer);
333 vk.cmdExecuteCommands(*primaryCmdBuffer, 2u, secondaryCmdBuffers);
334 vk, *primaryCmdBuffer);
336 VK_CHECK(vk.queueSubmit(queue, 1u, &submitInfo, *fence));
337 if (VK_SUCCESS != vk.waitForFences(device, 1u, &fence.get(), DE_TRUE, LONG_FENCE_WAIT))