TachyonUI 0.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
tachyon::vulkan::GUIRenderContext Struct Reference

The Vulkan-side GUI pipeline set, built once at device init from kPrimitiveSpecs. More...

#include <gui_core/graphics/vulkan/vk_rhi.h>

Public Member Functions

bool Create (VulkanDeviceContext &deviceContext)
VkBuffer QuadIndices (VulkanDeviceContext &deviceContext, uint32_t primitiveCount)
 The index buffer of quad-shaped primitives (0,1,3, 0,3,2 for each four vertices) for at least primitiveCount of them, grown as passes need.

Public Attributes

std::array< tachyon::RHI::GpuPipeline, tachyon::kPrimitiveKindCount > pipelines {}
Buffer quadIndexBuffer {}
uint32_t quadIndexCapacity = 0
 primitives quadIndexBuffer holds indices for

Detailed Description

The Vulkan-side GUI pipeline set, built once at device init from kPrimitiveSpecs.

Indexed by PrimitiveKind; all share one layout.

Member Function Documentation

◆ Create()

bool tachyon::vulkan::GUIRenderContext::Create ( VulkanDeviceContext & deviceContext)

◆ QuadIndices()

VkBuffer tachyon::vulkan::GUIRenderContext::QuadIndices ( VulkanDeviceContext & deviceContext,
uint32_t primitiveCount )

The index buffer of quad-shaped primitives (0,1,3, 0,3,2 for each four vertices) for at least primitiveCount of them, grown as passes need.

A replaced buffer stays until shutdown: frames in flight may still read it.

Member Data Documentation

◆ pipelines

std::array<tachyon::RHI::GpuPipeline, tachyon::kPrimitiveKindCount> tachyon::vulkan::GUIRenderContext::pipelines {}

◆ quadIndexBuffer

Buffer tachyon::vulkan::GUIRenderContext::quadIndexBuffer {}

◆ quadIndexCapacity

uint32_t tachyon::vulkan::GUIRenderContext::quadIndexCapacity = 0

primitives quadIndexBuffer holds indices for


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