载入中...
搜索中...
未找到
eve::graphics::Mesh类 参考

GPU mesh handle (+ optional CPU morph targets). 更多...

#include <Mesh.h>

类 eve::graphics::Mesh 继承关系图:
eve::graphics::Drawable

Public 成员函数

bool hasGpuSkinning () const noexcept
 True after joint and weight data has been uploaded for GPU skinning.
 
int getSkinPaletteCount () const noexcept
 Number of matrices in the current skinning palette.
 
Result< void > setSkinPalette (const float *matrices, int matrixCount)
 Copy a dynamically sized column-major palette on the render thread. Invalid/non-finite input leaves the previous palette unchanged. No borrowed pointer survives this call. GPU uploads enforce device storage-buffer limits.
 
const std::vector< float > & skinPalette () const noexcept
 Packed column-major matrix palette used by graphics backends.
 
void markGpuSkinned (bool value) noexcept
 Mark whether the backend vertex stream contains skin attributes.
 
Result< void > setTexcoordSet (uint32_t set, std::span< const float > values)
 Copy one packed ST channel; finite values/count are checked atomically. Render-thread only, no callbacks. Input is borrowed only during this call.
 
std::span< const float > texcoordSet (uint32_t set) const
 Borrow a channel until mutation/destruction; empty means absent. Render-thread only.
 
uint64_t texcoordRevision () const
 Revision used to invalidate backend UV uploads after a channel changes.
 
bool hasBounds () const
 True when a valid bounding sphere is available for culling.
 
Result< std::array< float, 6 > > localBounds () const
 Copy CPU-uploaded mesh-local minimum XYZ and maximum XYZ.
 
void computeBounds (const float *posXYZ, int vertexCount)
 Compute the bounding sphere (centroid + max radius) from positions.
 
uint64_t geometryGeneration () const
 Native upload generation; changes on each position upload, owner thread only.
 
void draw (Graphics *, const glm::mat4 &) const override
 Draws .
 
void drawOcclusion (Graphics *gfx, const glm::mat4 &matrix) const override
 Screen-space black proxy for volumetric occlusion. Interprets matrix as 2D affine (translation + scale) and fills a solid rect — callers should pass a pixel-space placement (e.g. projected AABB).
 
void clearMorphData ()
 Clears morph data.
 
void initMorphBase (int vertexCount, const float *posXYZ, const float *nrmXYZ=nullptr, const float *uvST=nullptr)
 Capture base pose (xyz packed). Optional normals/uvs (same vertex count).
 
bool addMorphTarget (const std::string &name, const float *deltaPosXYZ)
 Adds morph target.
 
bool addMorphTargetAbsolute (const std::string &name, const float *absPosXYZ)
 Absolute morph (Assimp aiAnimMesh style): stored as delta from base.
 
Result< void > setMorphNormalDeltas (std::string_view name, std::span< const float > deltas)
 Copy normal deltas for an existing morph, or clear them with an empty span. Input is borrowed only during this call. Render-thread only, no callbacks. Missing targets, wrong counts and non-finite values leave the old target unchanged. @cost Copies three floats per vertex, once per authored target import.
 
int getVertexCount () const
 Returns the vertex count.
 
int getMorphCount () const
 Returns the morph count.
 
std::string getMorphName (int index) const
 Returns the morph name.
 
bool hasMorph (const std::string &name) const
 True when morph.
 
bool setMorphWeight (const std::string &name, float weight)
 Sets the morph weight.
 
float getMorphWeight (const std::string &name) const
 Returns the morph weight.
 
void clearMorphWeights ()
 Clears morph weights.
 
bool isMorphDirty () const
 True when morph dirty.
 
void markMorphClean ()
 Mark morph clean.
 
bool hasMorphData () const
 True when morph data.
 
void computeMorphedPositions (std::vector< float > &outPos, std::vector< float > &outNrm) const
 Bake current weights into outPos / outNrm (xyz packed).
 
const std::vector< float > & baseUv () const
 Base uv.
 
void captureImportedAttributes (const ::aiMesh &mesh)
 Retain imported UV/color/tangent streams for custom pipelines and baking.
 
Result< void > setTangentFrame (std::span< const float > tangents, std::span< const float > bitangents)
 Atomically copy authored tangent and bitangent XYZ streams, or clear both with empty spans.
 
Result< void > validateTangentFrame (std::span< const float > tangents, std::span< const float > bitangents) const
 Validate a frame against current vertex count without mutation or allocation on success.
 
Result< void > adoptTangentFrame (std::vector< float > &&tangents, std::vector< float > &&bitangents)
 Validate then take owning frame buffers without allocating on success.
 
Result< void > validateMotionHighlights (std::span< const float > values) const
 Validate an optional per-vertex motion-highlight stream without mutation.
 
Result< void > adoptMotionHighlights (std::vector< float > &&values)
 Validate and transfer an owning motion-highlight stream without allocating on success.
 
std::span< const float > motionHighlights () const
 Borrow motion-highlight scalars until replacement or mesh destruction.
 
Result< void > validateVegetationFactors (std::span< const float > values) const
 Validate optional interleaved vegetation variation/occlusion pairs without mutation.
 
Result< void > adoptVegetationFactors (std::vector< float > &&values)
 Validate and take ownership of interleaved vegetation variation/occlusion pairs.
 
std::span< const float > vegetationFactors () const
 Borrow interleaved variation/occlusion pairs until mesh mutation or destruction.
 
Result< void > validateVegetationDeformationFactors (std::span< const float > values) const
 Validate optional TVE rest-deformation data without mutation. Nine floats per vertex are pivot XYZ, bending, branch, flutter, variation, bounds height, and bounds radius. Masks are unit values and
 
Result< void > adoptVegetationDeformationFactors (std::vector< float > &&values)
 Validate and atomically take ownership of a TVE rest-deformation stream. Failure preserves the mesh and input. Success swaps prior storage into the moved-from vector without allocating after validation.
 
std::span< const float > vegetationDeformationFactors () const
 Borrow TVE rest-deformation data until mesh mutation or destruction.
 
int getUvChannelCount () const
 
int getColorChannelCount () const
 Returns the color channel count.
 
bool hasImportedTangents () const
 True when imported tangents.
 
uint64_t tangentFrameRevision () const
 Tangent-frame mutation identity; zero disables revision caching after exhaustion. @thread Render thread; querying does not retain resources or invoke callbacks.
 
const std::vector< float > & importedUv (int channel) const
 Imported uv.
 
const std::vector< float > & importedColor (int channel) const
 Imported color.
 
const std::vector< float > & importedTangents () const
 Imported tangents.
 
const std::vector< float > & importedBitangents () const
 Imported bitangents.
 
- Public 成员函数 继承自 eve::graphics::Drawable
virtual ~Drawable ()
 Releases Drawable resources.
 
bool getCastOcclusion () const
 When false, skipped by Graphics::drawOcclusion / volumetric occluder passes.
 
void setCastOcclusion (bool cast)
 Sets the cast occlusion.
 

Public 属性

int indexCount = 0
 
void * gpuHandle = nullptr
 
int gpuVertexCount = 0
 Vertex count of the GPU buffer (morph CPU base may be empty).
 
float boundsCx = 0.f
 Model-space bounding sphere used for view/cascade frustum culling. Computed from vertex positions at upload time (see computeBounds). boundsRadius <= 0 means unknown — callers must treat the mesh as always visible (no culling).
 
float boundsCy = 0.f
 
float boundsCz = 0.f
 
float boundsRadius = 0.f
 

详细描述

GPU mesh handle (+ optional CPU morph targets).

Morph pipeline: initMorphBase / addMorphTarget* → setMorphWeight → Graphics::bakeMeshMorph (uploads blended positions to the host-visible VBO).

在文件 Mesh.h 第 26 行定义.

成员函数说明

◆ addMorphTarget()

bool eve::graphics::Mesh::addMorphTarget ( const std::string &  name,
const float *  deltaPosXYZ 
)

Adds morph target.

Delta morph: target = base + delta * weight.

在文件 Mesh.cpp 第 199 行定义.

引用了 hasMorph(), name , 以及 t.

◆ addMorphTargetAbsolute()

bool eve::graphics::Mesh::addMorphTargetAbsolute ( const std::string &  name,
const float *  absPosXYZ 
)

Absolute morph (Assimp aiAnimMesh style): stored as delta from base.

在文件 Mesh.cpp 第 211 行定义.

引用了 hasMorph(), name , 以及 t.

◆ adoptMotionHighlights()

Result< void > eve::graphics::Mesh::adoptMotionHighlights ( std::vector< float > &&  values)

Validate and transfer an owning motion-highlight stream without allocating on success.

备注
Render-thread only, no callbacks. Failure preserves both mesh and input; success swaps old storage into input. Data lives until replacement or mesh destruction.
返回
Checked validity, including empty-stream clearing.

在文件 MeshInstanceRange.cpp 第 127 行定义.

引用了 eve::Result< T >::success(), valid, validateMotionHighlights() , 以及 values.

◆ adoptTangentFrame()

Result< void > eve::graphics::Mesh::adoptTangentFrame ( std::vector< float > &&  tangents,
std::vector< float > &&  bitangents 
)

Validate then take owning frame buffers without allocating on success.

备注
Render-thread only, no callbacks. Failure does not consume inputs or change mesh state. Success transfers ownership; previous buffers are returned in the moved-from input vectors.
返回
Checked validity. Useful after prevalidation for coupled geometry updates.

在文件 MeshInstanceRange.cpp 第 157 行定义.

引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument, eve::Result< T >::success(), valid , 以及 validateTangentFrame().

◆ adoptVegetationDeformationFactors()

Result< void > eve::graphics::Mesh::adoptVegetationDeformationFactors ( std::vector< float > &&  values)

Validate and atomically take ownership of a TVE rest-deformation stream. Failure preserves the mesh and input. Success swaps prior storage into the moved-from vector without allocating after validation.

在文件 MeshInstanceRange.cpp 第 109 行定义.

引用了 eve::Result< T >::success(), valid, validateVegetationDeformationFactors() , 以及 values.

◆ adoptVegetationFactors()

Result< void > eve::graphics::Mesh::adoptVegetationFactors ( std::vector< float > &&  values)

Validate and take ownership of interleaved vegetation variation/occlusion pairs.

备注
Render-thread only, no callbacks. Failure preserves mesh and input. Success swaps previous storage into the moved-from vector, so the operation cannot allocate after validation.
返回
Checked validity, including the empty-stream clear operation.

在文件 MeshInstanceRange.cpp 第 83 行定义.

引用了 eve::Result< T >::success(), valid, validateVegetationFactors() , 以及 values.

◆ baseUv()

const std::vector< float > & eve::graphics::Mesh::baseUv ( ) const
inline

Base uv.

在文件 Mesh.h 第 139 行定义.

◆ captureImportedAttributes()

void eve::graphics::Mesh::captureImportedAttributes ( const ::aiMesh &  mesh)

Retain imported UV/color/tangent streams for custom pipelines and baking.

在文件 Mesh.cpp 第 37 行定义.

引用了 b, c, mesh, t , 以及 values.

◆ clearMorphData()

void eve::graphics::Mesh::clearMorphData ( )

Clears morph data.

在文件 Mesh.cpp 第 174 行定义.

被这些函数引用 initMorphBase().

◆ clearMorphWeights()

void eve::graphics::Mesh::clearMorphWeights ( )

Clears morph weights.

在文件 Mesh.cpp 第 274 行定义.

被这些函数引用 eve::graphics::exposeGraphicsMeshes().

◆ computeBounds()

void eve::graphics::Mesh::computeBounds ( const float *  posXYZ,
int  vertexCount 
)

Compute the bounding sphere (centroid + max radius) from positions.

在文件 Mesh.cpp 第 108 行定义.

引用了 axis, boundsCx, boundsCy, boundsCz, boundsRadius, c, d, dx, dy, dz, generation, n, r, u, value , 以及 vertexCount.

被这些函数引用 eve::graphics::vulkan::Graphics::newMeshFromArraysColored().

◆ computeMorphedPositions()

void eve::graphics::Mesh::computeMorphedPositions ( std::vector< float > &  outPos,
std::vector< float > &  outNrm 
) const

Bake current weights into outPos / outNrm (xyz packed).

在文件 Mesh.cpp 第 283 行定义.

引用了 length, t , 以及 w.

◆ draw()

void eve::graphics::Mesh::draw ( Graphics *  ,
const glm::mat4 &   
) const
inlineoverridevirtual

Draws .

实现了 eve::graphics::Drawable.

在文件 Mesh.h 第 88 行定义.

◆ drawOcclusion()

void eve::graphics::Mesh::drawOcclusion ( Graphics *  gfx,
const glm::mat4 &  matrix 
) const
overridevirtual

Screen-space black proxy for volumetric occlusion. Interprets matrix as 2D affine (translation + scale) and fills a solid rect — callers should pass a pixel-space placement (e.g. projected AABB).

重载 eve::graphics::Drawable .

在文件 Mesh.cpp 第 164 行定义.

引用了 eve::graphics::Graphics::drawOcclusionSolid(), eve::graphics::Drawable::getCastOcclusion(), h, matrix, w, x , 以及 y.

◆ geometryGeneration()

uint64_t eve::graphics::Mesh::geometryGeneration ( ) const
inline

Native upload generation; changes on each position upload, owner thread only.

在文件 Mesh.h 第 79 行定义.

◆ getColorChannelCount()

int eve::graphics::Mesh::getColorChannelCount ( ) const
inline

Returns the color channel count.

在文件 Mesh.h 第 236 行定义.

◆ getMorphCount()

int eve::graphics::Mesh::getMorphCount ( ) const

◆ getMorphName()

std::string eve::graphics::Mesh::getMorphName ( int  index) const

Returns the morph name.

在文件 Mesh.cpp 第 248 行定义.

引用了 index.

被这些函数引用 eve::graphics::exposeGraphicsMeshes(), eve::avatar::AvatarInstance::setExpression() , 以及 eve::avatar::AvatarInstance::transitionExpression().

◆ getMorphWeight()

float eve::graphics::Mesh::getMorphWeight ( const std::string &  name) const

Returns the morph weight.

在文件 Mesh.cpp 第 269 行定义.

引用了 name.

被这些函数引用 eve::graphics::exposeGraphicsMeshes().

◆ getSkinPaletteCount()

int eve::graphics::Mesh::getSkinPaletteCount ( ) const
inlinenoexcept

Number of matrices in the current skinning palette.

在文件 Mesh.h 第 35 行定义.

◆ getUvChannelCount()

int eve::graphics::Mesh::getUvChannelCount ( ) const
inline

在文件 Mesh.h 第 234 行定义.

◆ getVertexCount()

int eve::graphics::Mesh::getVertexCount ( ) const

Returns the vertex count.

在文件 Mesh.cpp 第 225 行定义.

引用了 gpuVertexCount.

被这些函数引用 eve::graphics::exposeGraphicsMeshes().

◆ hasBounds()

bool eve::graphics::Mesh::hasBounds ( ) const
inline

True when a valid bounding sphere is available for culling.

在文件 Mesh.h 第 66 行定义.

被这些函数引用 eve::graphics::RenderSystem3D::render().

◆ hasGpuSkinning()

bool eve::graphics::Mesh::hasGpuSkinning ( ) const
inlinenoexcept

True after joint and weight data has been uploaded for GPU skinning.

在文件 Mesh.h 第 33 行定义.

◆ hasImportedTangents()

bool eve::graphics::Mesh::hasImportedTangents ( ) const
inline

True when imported tangents.

在文件 Mesh.h 第 238 行定义.

◆ hasMorph()

bool eve::graphics::Mesh::hasMorph ( const std::string &  name) const

◆ hasMorphData()

bool eve::graphics::Mesh::hasMorphData ( ) const
inline

◆ importedBitangents()

const std::vector< float > & eve::graphics::Mesh::importedBitangents ( ) const
inline

Imported bitangents.

在文件 Mesh.h 第 249 行定义.

◆ importedColor()

const std::vector< float > & eve::graphics::Mesh::importedColor ( int  channel) const

Imported color.

在文件 Mesh.cpp 第 81 行定义.

◆ importedTangents()

const std::vector< float > & eve::graphics::Mesh::importedTangents ( ) const
inline

Imported tangents.

在文件 Mesh.h 第 247 行定义.

◆ importedUv()

const std::vector< float > & eve::graphics::Mesh::importedUv ( int  channel) const

Imported uv.

在文件 Mesh.cpp 第 75 行定义.

◆ initMorphBase()

void eve::graphics::Mesh::initMorphBase ( int  vertexCount,
const float *  posXYZ,
const float *  nrmXYZ = nullptr,
const float *  uvST = nullptr 
)

Capture base pose (xyz packed). Optional normals/uvs (same vertex count).

在文件 Mesh.cpp 第 183 行定义.

引用了 clearMorphData(), n , 以及 vertexCount.

◆ isMorphDirty()

bool eve::graphics::Mesh::isMorphDirty ( ) const
inline

True when morph dirty.

在文件 Mesh.h 第 129 行定义.

被这些函数引用 eve::avatar::AvatarInstance::bakeMorphs() , 以及 eve::graphics::exposeGraphicsMeshes().

◆ localBounds()

Result< std::array< float, 6 > > eve::graphics::Mesh::localBounds ( ) const

Copy CPU-uploaded mesh-local minimum XYZ and maximum XYZ.

返回
Owning bounds or NotFound when no finite vertex bounds are available. @thread Render thread only; no callbacks or retained references.
备注
CPU morph baking updates bounds; GPU skinning is excluded. Static placement uses bind geometry.

在文件 Mesh.cpp 第 157 行定义.

引用了 eve::Diagnostic::error() , 以及 eve::NotFound.

◆ markGpuSkinned()

void eve::graphics::Mesh::markGpuSkinned ( bool  value)
inlinenoexcept

Mark whether the backend vertex stream contains skin attributes.

在文件 Mesh.h 第 44 行定义.

引用了 value.

◆ markMorphClean()

void eve::graphics::Mesh::markMorphClean ( )
inline

Mark morph clean.

在文件 Mesh.h 第 131 行定义.

◆ motionHighlights()

std::span< const float > eve::graphics::Mesh::motionHighlights ( ) const
inline

Borrow motion-highlight scalars until replacement or mesh destruction.

备注
Render-thread only, no callbacks; never retain the view across mesh mutation.
返回
Read-only scalar view, empty when absent.

在文件 Mesh.h 第 195 行定义.

◆ setMorphNormalDeltas()

Result< void > eve::graphics::Mesh::setMorphNormalDeltas ( std::string_view  name,
std::span< const float >  deltas 
)

Copy normal deltas for an existing morph, or clear them with an empty span. Input is borrowed only during this call. Render-thread only, no callbacks. Missing targets, wrong counts and non-finite values leave the old target unchanged. @cost Copies three floats per vertex, once per authored target import.

在文件 Mesh.cpp 第 230 行定义.

引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument, name, eve::NotFound, owned, eve::Result< T >::success(), target , 以及 x.

◆ setMorphWeight()

bool eve::graphics::Mesh::setMorphWeight ( const std::string &  name,
float  weight 
)

Sets the morph weight.

在文件 Mesh.cpp 第 257 行定义.

引用了 name , 以及 weight.

被这些函数引用 eve::graphics::exposeGraphicsMeshes() , 以及 eve::avatar::AvatarInstance::setParameter().

◆ setSkinPalette()

Result< void > eve::graphics::Mesh::setSkinPalette ( const float *  matrices,
int  matrixCount 
)

Copy a dynamically sized column-major palette on the render thread. Invalid/non-finite input leaves the previous palette unchanged. No borrowed pointer survives this call. GPU uploads enforce device storage-buffer limits.

返回
Success or InvalidArgument; allocation failure leaves state unchanged.

在文件 Mesh.cpp 第 87 行定义.

引用了 count, eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument , 以及 eve::Result< T >::success().

◆ setTangentFrame()

Result< void > eve::graphics::Mesh::setTangentFrame ( std::span< const float >  tangents,
std::span< const float >  bitangents 
)

Atomically copy authored tangent and bitangent XYZ streams, or clear both with empty spans.

返回
Checked invalid-input/allocation failure leaves both streams unchanged.
备注
Render-thread only, no callbacks. Inputs are borrowed during the call; mesh owns the copies until replacement or destruction. Both streams must match vertex count and contain finite, nonzero, nonparallel vectors. No normalization or coordinate conversion.

在文件 MeshInstanceRange.cpp 第 168 行定义.

引用了 b, eve::Diagnostic::error(), eve::Failed, eve::Result< T >::failure(), eve::Result< T >::success(), t, valid , 以及 validateTangentFrame().

◆ setTexcoordSet()

Result< void > eve::graphics::Mesh::setTexcoordSet ( uint32_t  set,
std::span< const float >  values 
)

Copy one packed ST channel; finite values/count are checked atomically. Render-thread only, no callbacks. Input is borrowed only during this call.

在文件 Mesh.cpp 第 17 行定义.

引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), gpuVertexCount, eve::InvalidArgument, owned, eve::Result< T >::success(), values , 以及 x.

◆ skinPalette()

const std::vector< float > & eve::graphics::Mesh::skinPalette ( ) const
inlinenoexcept

Packed column-major matrix palette used by graphics backends.

在文件 Mesh.h 第 42 行定义.

◆ tangentFrameRevision()

uint64_t eve::graphics::Mesh::tangentFrameRevision ( ) const
inline

Tangent-frame mutation identity; zero disables revision caching after exhaustion. @thread Render thread; querying does not retain resources or invoke callbacks.

在文件 Mesh.h 第 241 行定义.

◆ texcoordRevision()

uint64_t eve::graphics::Mesh::texcoordRevision ( ) const
inline

Revision used to invalidate backend UV uploads after a channel changes.

在文件 Mesh.h 第 53 行定义.

◆ texcoordSet()

std::span< const float > eve::graphics::Mesh::texcoordSet ( uint32_t  set) const

Borrow a channel until mutation/destruction; empty means absent. Render-thread only.

在文件 Mesh.cpp 第 27 行定义.

引用了 found.

◆ validateMotionHighlights()

Result< void > eve::graphics::Mesh::validateMotionHighlights ( std::span< const float >  values) const

Validate an optional per-vertex motion-highlight stream without mutation.

备注
Render-thread only; synchronous borrowed input, no callbacks or retained references. Empty clears the stream; otherwise one finite nonnegative scalar is required per vertex.
返回
Checked validity; no allocation on success.

在文件 MeshInstanceRange.cpp 第 115 行定义.

引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), gpuVertexCount, eve::InvalidArgument, eve::Result< T >::success(), value , 以及 values.

被这些函数引用 adoptMotionHighlights().

◆ validateTangentFrame()

Result< void > eve::graphics::Mesh::validateTangentFrame ( std::span< const float >  tangents,
std::span< const float >  bitangents 
) const

Validate a frame against current vertex count without mutation or allocation on success.

备注
Render-thread only, synchronous borrowed spans, no callbacks.
返回
Checked validity, including the empty-frame clear operation.

在文件 MeshInstanceRange.cpp 第 133 行定义.

引用了 b, c, eve::Diagnostic::error(), eve::Result< T >::failure(), gpuVertexCount, eve::InvalidArgument, eve::Result< T >::success(), t , 以及 tb.

被这些函数引用 adoptTangentFrame() , 以及 setTangentFrame().

◆ validateVegetationDeformationFactors()

Result< void > eve::graphics::Mesh::validateVegetationDeformationFactors ( std::span< const float >  values) const

Validate optional TVE rest-deformation data without mutation. Nine floats per vertex are pivot XYZ, bending, branch, flutter, variation, bounds height, and bounds radius. Masks are unit values and

  • bounds are finite nonnegative world units. Empty clears the stream.
    备注
    Render-thread only; the input is borrowed synchronously and no callbacks run.

在文件 MeshInstanceRange.cpp 第 89 行定义.

引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), gpuVertexCount, eve::InvalidArgument, eve::Result< T >::success() , 以及 values.

被这些函数引用 adoptVegetationDeformationFactors().

◆ validateVegetationFactors()

Result< void > eve::graphics::Mesh::validateVegetationFactors ( std::span< const float >  values) const

Validate optional interleaved vegetation variation/occlusion pairs without mutation.

备注
Render-thread only; values are borrowed for this call. Empty clears the stream; otherwise two finite unit values are required per vertex.
返回
Checked validity; no allocation or callbacks.

在文件 MeshInstanceRange.cpp 第 70 行定义.

引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), gpuVertexCount, eve::InvalidArgument, eve::Result< T >::success() , 以及 values.

被这些函数引用 adoptVegetationFactors().

◆ vegetationDeformationFactors()

std::span< const float > eve::graphics::Mesh::vegetationDeformationFactors ( ) const
inline

Borrow TVE rest-deformation data until mesh mutation or destruction.

在文件 Mesh.h 第 233 行定义.

◆ vegetationFactors()

std::span< const float > eve::graphics::Mesh::vegetationFactors ( ) const
inline

Borrow interleaved variation/occlusion pairs until mesh mutation or destruction.

在文件 Mesh.h 第 214 行定义.

类成员变量说明

◆ boundsCx

float eve::graphics::Mesh::boundsCx = 0.f

Model-space bounding sphere used for view/cascade frustum culling. Computed from vertex positions at upload time (see computeBounds). boundsRadius <= 0 means unknown — callers must treat the mesh as always visible (no culling).

在文件 Mesh.h 第 60 行定义.

被这些函数引用 computeBounds() , 以及 eve::graphics::RenderSystem3D::render().

◆ boundsCy

float eve::graphics::Mesh::boundsCy = 0.f

在文件 Mesh.h 第 61 行定义.

被这些函数引用 computeBounds() , 以及 eve::graphics::RenderSystem3D::render().

◆ boundsCz

float eve::graphics::Mesh::boundsCz = 0.f

在文件 Mesh.h 第 62 行定义.

被这些函数引用 computeBounds() , 以及 eve::graphics::RenderSystem3D::render().

◆ boundsRadius

float eve::graphics::Mesh::boundsRadius = 0.f

在文件 Mesh.h 第 63 行定义.

被这些函数引用 computeBounds() , 以及 eve::graphics::RenderSystem3D::render().

◆ gpuHandle

void* eve::graphics::Mesh::gpuHandle = nullptr

在文件 Mesh.h 第 29 行定义.

◆ gpuVertexCount

int eve::graphics::Mesh::gpuVertexCount = 0

Vertex count of the GPU buffer (morph CPU base may be empty).

在文件 Mesh.h 第 31 行定义.

被这些函数引用 getVertexCount(), setTexcoordSet(), validateMotionHighlights(), validateTangentFrame(), validateVegetationDeformationFactors() , 以及 validateVegetationFactors().

◆ indexCount

int eve::graphics::Mesh::indexCount = 0

在文件 Mesh.h 第 28 行定义.


该类的文档由以下文件生成: