Nebula
Loading...
Searching...
No Matches
vkevent.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
9//------------------------------------------------------------------------------
10#include "coregraphics/event.h"
11#include "ids/idallocator.h"
12#include "util/stringatom.h"
13namespace Vulkan
14{
15
16static const SizeT EventMaxNumBarriers = 16;
17
19{
21 VkEvent event;
22 VkPipelineStageFlags leftDependency;
23 VkPipelineStageFlags rightDependency;
24 VkImageMemoryBarrier imageBarriers[EventMaxNumBarriers];
26 VkBufferMemoryBarrier bufferBarriers[EventMaxNumBarriers];
30
31};
32
33enum
34{
37};
38
39typedef Ids::IdAllocator<
40 VkDevice
41 , VkEventInfo
44
47
48} // namespace Vulkan
An ID allocator associates an id with a slice in an N number of arrays.
Definition idallocator.h:39
A StringAtom.
Definition stringatom.h:22
Vulkan implementation of GPU acceleration structure.
Definition vkaccelerationstructure.cc:15
VkEventAllocator eventAllocator(0x00FFFFFF)
Definition vkevent.h:43
Ids::IdAllocator< VkDevice, VkEventInfo > VkEventAllocator
Definition vkevent.h:42
const VkEventInfo & EventGetVk(const CoreGraphics::EventId id)
Get vk event info.
Definition vkevent.cc:28
static const SizeT EventMaxNumBarriers
Definition vkevent.h:16
@ Event_Info
Definition vkevent.h:36
@ Event_Device
Definition vkevent.h:35
Definition event.h:24
Definition vkevent.h:19
VkMemoryBarrier memoryBarriers[EventMaxNumBarriers]
Definition vkevent.h:28
VkPipelineStageFlags leftDependency
Definition vkevent.h:22
VkBufferMemoryBarrier bufferBarriers[EventMaxNumBarriers]
Definition vkevent.h:26
VkImageMemoryBarrier imageBarriers[EventMaxNumBarriers]
Definition vkevent.h:24
Util::StringAtom name
Definition vkevent.h:20
VkEvent event
Definition vkevent.h:21
VkPipelineStageFlags rightDependency
Definition vkevent.h:23
uint32_t numBufferBarriers
Definition vkevent.h:27
uint32_t numImageBarriers
Definition vkevent.h:25
uint32_t numMemoryBarriers
Definition vkevent.h:29
int SizeT
Definition types.h:49