Divide Framework 0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
Divide::VKUtil Namespace Reference

Functions

VMABuffer_uptr createStagingBuffer (size_t size, std::string_view bufferName, const bool isCopySource)
 
void SubmitRenderCommand (const GenericDrawCommand &drawCommand, const VkCommandBuffer commandBuffer, bool indexed)
 Note: If internal format is not GL_NONE, an indexed draw is issued!
 
void OnStartup (VkDevice device)
 
VkFormat InternalFormat (GFXImageFormat baseFormat, GFXDataFormat dataType, GFXImagePacking packing) noexcept
 
VkFormat InternalFormat (GFXDataFormat format, U8 componentCount, bool normalized) noexcept
 
VkDescriptorType vkDescriptorType (DescriptorSetBindingType type, bool isPushDescriptor) noexcept
 

Variables

constexpr U8 k_invalidSyncID = U8_MAX
 

Function Documentation

◆ createStagingBuffer()

VMABuffer_uptr Divide::VKUtil::createStagingBuffer ( size_t  size,
std::string_view  bufferName,
const bool  isCopySource 
)

Definition at line 292 of file vkBufferImpl.cpp.

◆ InternalFormat() [1/2]

VkFormat Divide::VKUtil::InternalFormat ( GFXDataFormat  format,
U8  componentCount,
bool  normalized 
)
noexcept

Definition at line 416 of file vkResources.cpp.

◆ InternalFormat() [2/2]

VkFormat Divide::VKUtil::InternalFormat ( GFXImageFormat  baseFormat,
GFXDataFormat  dataType,
GFXImagePacking  packing 
)
noexcept

Definition at line 205 of file vkResources.cpp.

◆ OnStartup()

void Divide::VKUtil::OnStartup ( VkDevice  device)

Definition at line 106 of file vkResources.cpp.

◆ SubmitRenderCommand()

void Divide::VKUtil::SubmitRenderCommand ( const GenericDrawCommand drawCommand,
const VkCommandBuffer  commandBuffer,
bool  indexed 
)

Note: If internal format is not GL_NONE, an indexed draw is issued!

Definition at line 67 of file vkResources.cpp.

◆ vkDescriptorType()

VkDescriptorType Divide::VKUtil::vkDescriptorType ( DescriptorSetBindingType  type,
bool  isPushDescriptor 
)
noexcept

Definition at line 516 of file vkResources.cpp.

Variable Documentation

◆ k_invalidSyncID

constexpr U8 Divide::VKUtil::k_invalidSyncID = U8_MAX
constexpr

Definition at line 369 of file vkResources.h.