Nebula
Loading...
Searching...
No Matches
vkbarrier.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
9//------------------------------------------------------------------------------
10#include "ids/idallocator.h"
12
13namespace Vulkan
14{
15
16static const SizeT MaxNumBarriers = 16;
17
19{
21 VkPipelineStageFlags srcFlags;
22 VkPipelineStageFlags dstFlags;
23 VkDependencyFlags dep;
27 VkBufferMemoryBarrier bufferBarriers[MaxNumBarriers];
29 VkImageMemoryBarrier imageBarriers[MaxNumBarriers];
30};
31
32enum
33{
35 , Barrier_Textures // This is for reloading textures
37};
38
39typedef Ids::IdAllocator<
40 VkBarrierInfo
44
47
48
49} // namespace Vulkan
An ID allocator associates an id with a slice in an N number of arrays.
Definition idallocator.h:39
Nebula's dynamic array class.
Definition array.h:60
A StringAtom.
Definition stringatom.h:22
Vulkan implementation of GPU acceleration structure.
Definition vkaccelerationstructure.cc:15
static const SizeT MaxNumBarriers
Definition vkbarrier.h:16
Ids::IdAllocator< VkBarrierInfo, Util::Array< CoreGraphics::TextureId > > VkBarrierAllocator
Definition vkbarrier.h:42
VkBarrierAllocator barrierAllocator(0x00FFFFFF)
Definition vkbarrier.h:43
@ Barrier_Buffers
Definition vkbarrier.h:36
@ Barrier_Textures
Definition vkbarrier.h:35
@ Barrier_Info
Definition vkbarrier.h:34
const VkBarrierInfo & BarrierGetVk(const CoreGraphics::BarrierId id)
Get Vulkan info.
Definition vkbarrier.cc:25
Definition barrier.h:21
Definition vkbarrier.h:19
uint32_t numImageBarriers
Definition vkbarrier.h:28
VkPipelineStageFlags srcFlags
Definition vkbarrier.h:21
VkDependencyFlags dep
Definition vkbarrier.h:23
uint32_t numBufferBarriers
Definition vkbarrier.h:26
Util::StringAtom name
Definition vkbarrier.h:20
VkMemoryBarrier memoryBarriers[MaxNumBarriers]
Definition vkbarrier.h:25
VkBufferMemoryBarrier bufferBarriers[MaxNumBarriers]
Definition vkbarrier.h:27
uint32_t numMemoryBarriers
Definition vkbarrier.h:24
VkImageMemoryBarrier imageBarriers[MaxNumBarriers]
Definition vkbarrier.h:29
VkPipelineStageFlags dstFlags
Definition vkbarrier.h:22
int SizeT
Definition types.h:49