载入中...
搜索中...
未找到
eve::graphics::vulkan::GpuMesh结构体 参考

GpuMesh public API. 更多...

#include <Graphics.h>

Public 属性

vkb::HostVertexBuffer vertices
 
vkb::GenericBuffer indices
 
std::array< vkb::HostVertexBuffer, kDynamicVertexCopies > dynVertices
 
std::array< vkb::GenericBuffer, kDynamicVertexCopies > dynIndices
 
std::vector< uint32_t > cpuIndices
 CPU index copy for dynamic meshes (also normalizes 16-bit static indices to 32-bit ring buffers).
 
uint64_t dynamicWriteCount = 0
 Number of dynamic updates; ring slot = count % kDynamicVertexCopies.
 
bool dynamic = false
 
uint32_t vertexCount = 0
 
uint32_t indexCount = 0
 
vk::IndexType indexType = vk::IndexType::eUint32
 
uint32_t gpuRecordIndex = kInvalidBindlessSlot
 Index into the GPU mesh table (GpuMeshRecord).
 
GpuMeshRecord record
 CPU-side record for this mesh (bounds/ranges); uploaded by registerMeshRecord.
 

静态 Public 属性

static constexpr size_t kDynamicVertexCopies = 3
 Ring copies for per-frame updated meshes (skin/morph/sprite stack). Writing the next copy never races with in-flight frames, so dynamic updates need no device-wide wait. Only allocated once a mesh is actually updated (static meshes keep a single copy).
 

详细描述

GpuMesh public API.

在文件 Graphics.h 第 289 行定义.

类成员变量说明

◆ cpuIndices

std::vector<uint32_t> eve::graphics::vulkan::GpuMesh::cpuIndices

CPU index copy for dynamic meshes (also normalizes 16-bit static indices to 32-bit ring buffers).

在文件 Graphics.h 第 301 行定义.

◆ dynamic

bool eve::graphics::vulkan::GpuMesh::dynamic = false

在文件 Graphics.h 第 304 行定义.

◆ dynamicWriteCount

uint64_t eve::graphics::vulkan::GpuMesh::dynamicWriteCount = 0

Number of dynamic updates; ring slot = count % kDynamicVertexCopies.

在文件 Graphics.h 第 303 行定义.

◆ dynIndices

std::array<vkb::GenericBuffer, kDynamicVertexCopies> eve::graphics::vulkan::GpuMesh::dynIndices

在文件 Graphics.h 第 298 行定义.

◆ dynVertices

std::array<vkb::HostVertexBuffer, kDynamicVertexCopies> eve::graphics::vulkan::GpuMesh::dynVertices

在文件 Graphics.h 第 297 行定义.

◆ gpuRecordIndex

uint32_t eve::graphics::vulkan::GpuMesh::gpuRecordIndex = kInvalidBindlessSlot

Index into the GPU mesh table (GpuMeshRecord).

在文件 Graphics.h 第 309 行定义.

◆ indexCount

uint32_t eve::graphics::vulkan::GpuMesh::indexCount = 0

在文件 Graphics.h 第 306 行定义.

◆ indexType

vk::IndexType eve::graphics::vulkan::GpuMesh::indexType = vk::IndexType::eUint32

在文件 Graphics.h 第 307 行定义.

◆ indices

vkb::GenericBuffer eve::graphics::vulkan::GpuMesh::indices

在文件 Graphics.h 第 296 行定义.

◆ kDynamicVertexCopies

constexpr size_t eve::graphics::vulkan::GpuMesh::kDynamicVertexCopies = 3
staticconstexpr

Ring copies for per-frame updated meshes (skin/morph/sprite stack). Writing the next copy never races with in-flight frames, so dynamic updates need no device-wide wait. Only allocated once a mesh is actually updated (static meshes keep a single copy).

在文件 Graphics.h 第 294 行定义.

◆ record

GpuMeshRecord eve::graphics::vulkan::GpuMesh::record

CPU-side record for this mesh (bounds/ranges); uploaded by registerMeshRecord.

在文件 Graphics.h 第 311 行定义.

被这些函数引用 eve::graphics::vulkan::Graphics::gpuDrivenVgAssetId() , 以及 eve::graphics::vulkan::Graphics::gpuDrivenVgAttachToMesh().

◆ vertexCount

uint32_t eve::graphics::vulkan::GpuMesh::vertexCount = 0

在文件 Graphics.h 第 305 行定义.

◆ vertices

vkb::HostVertexBuffer eve::graphics::vulkan::GpuMesh::vertices

在文件 Graphics.h 第 295 行定义.


该结构体的文档由以下文件生成: