KarmaEngine
Game Engine for practical learning and research purposes
Loading...
Searching...
No Matches
Karma::KarmaGui_ImplVulkanH_ImageFrameRenderBuffers Struct Reference

Reusable buffers used for rendering 1 current in-flight ImageFrame, for KarmaGui_ImplVulkan_RenderDrawData(). Seems like data structure with single instantiation for each of the FrameIndex. More...

#include <KarmaGuiVulkanHandler.h>

Public Member Functions

 KarmaGui_ImplVulkanH_ImageFrameRenderBuffers ()
 A constructor for zelo initialization and relevant assignment.
 

Public Attributes

VkDeviceMemory VertexBufferMemory
 Device (KarmaGui_ImplVulkan_InitInfo::Device) memory allocated via vkAllocateMemory for containing vertexbuffer.
 
VkDeviceMemory IndexBufferMemory
 Device (KarmaGui_ImplVulkan_InitInfo::Device) memory allocated via vkAllocateMemory for containing indexbuffer.
 
VkDeviceSize VertexBufferSize
 The size in bytes of the vertex buffer.
 
VkDeviceSize IndexBufferSize
 The size in bytes of the index buffer.
 
VkBuffer VertexBuffer
 Vulkan buffer to be bound to KarmaGui_Vulkan_Frame_On_Flight::CommandBuffer for vertexbuffer.
 
VkBuffer IndexBuffer
 Vulkan buffer to be bound to KarmaGui_Vulkan_Frame_On_Flight::CommandBuffer for indexbuffer.
 

Detailed Description

Reusable buffers used for rendering 1 current in-flight ImageFrame, for KarmaGui_ImplVulkan_RenderDrawData(). Seems like data structure with single instantiation for each of the FrameIndex.

Note
Please zero-clear before use.

Constructor & Destructor Documentation

◆ KarmaGui_ImplVulkanH_ImageFrameRenderBuffers()

Karma::KarmaGui_ImplVulkanH_ImageFrameRenderBuffers::KarmaGui_ImplVulkanH_ImageFrameRenderBuffers ( )
inline

A constructor for zelo initialization and relevant assignment.

Since
Karma 1.0..0

Member Data Documentation

◆ IndexBuffer

VkBuffer Karma::KarmaGui_ImplVulkanH_ImageFrameRenderBuffers::IndexBuffer

Vulkan buffer to be bound to KarmaGui_Vulkan_Frame_On_Flight::CommandBuffer for indexbuffer.

Since
Karma 1.0.0

◆ IndexBufferMemory

VkDeviceMemory Karma::KarmaGui_ImplVulkanH_ImageFrameRenderBuffers::IndexBufferMemory

Device (KarmaGui_ImplVulkan_InitInfo::Device) memory allocated via vkAllocateMemory for containing indexbuffer.

For instance, the filling is done like so

vkMapMemory(vulkanInfo->Device, renderBuffer->IndexBufferMemory, 0, renderBuffer->IndexBufferSize, 0, (void**)(&indexData));
Since
Karma 1.0.0

◆ IndexBufferSize

VkDeviceSize Karma::KarmaGui_ImplVulkanH_ImageFrameRenderBuffers::IndexBufferSize

The size in bytes of the index buffer.

Since
Karma 1.0.0

◆ VertexBuffer

VkBuffer Karma::KarmaGui_ImplVulkanH_ImageFrameRenderBuffers::VertexBuffer

Vulkan buffer to be bound to KarmaGui_Vulkan_Frame_On_Flight::CommandBuffer for vertexbuffer.

Since
Karma 1.0.0

◆ VertexBufferMemory

VkDeviceMemory Karma::KarmaGui_ImplVulkanH_ImageFrameRenderBuffers::VertexBufferMemory

Device (KarmaGui_ImplVulkan_InitInfo::Device) memory allocated via vkAllocateMemory for containing vertexbuffer.

For instance, the filling is done like so

vkMapMemory(vulkanInfo->Device, renderBuffer->VertexBufferMemory, 0, renderBuffer->VertexBufferSize, 0, (void**)(&vertexData));
Since
Karma 1.0.0

◆ VertexBufferSize

VkDeviceSize Karma::KarmaGui_ImplVulkanH_ImageFrameRenderBuffers::VertexBufferSize

The size in bytes of the vertex buffer.

Since
Karma 1.0.0

The documentation for this struct was generated from the following file: