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

Indexed geometry; spans are borrowed only during scene preparation. @ownership Caller owns all spans and sourceMesh; preparation copies the current geometry. 更多...

#include <PathTracing.h>

Public 属性

std::span< const glm::vec3 > positions
 
std::span< const glm::vec3 > normals
 
std::span< const uint32_t > indices
 
uint32_t material = 0
 
std::span< const glm::vec2 > texcoords
 
Mesh * sourceMesh = nullptr
 
std::span< const glm::vec3 > tangents
 Optional authored object-space XYZ frames, one pair per vertex; copied during preparation. Empty frames derive a triangle UV0 basis. Both streams must be present together.
 
std::span< const glm::vec3 > bitangents
 

详细描述

Indexed geometry; spans are borrowed only during scene preparation. @ownership Caller owns all spans and sourceMesh; preparation copies the current geometry.

Set sourceMesh with empty vertex/index spans to capture an engine mesh instead. GPU-skinned/resident overrides require a supported deformation snapshot; unsupported inputs fail explicitly. Empty normals on span input request geometric normals.

在文件 PathTracing.h 第 75 行定义.

类成员变量说明

◆ bitangents

std::span<const glm::vec3> eve::graphics::PathGeometry::bitangents

在文件 PathTracing.h 第 84 行定义.

◆ indices

std::span<const uint32_t> eve::graphics::PathGeometry::indices

在文件 PathTracing.h 第 78 行定义.

◆ material

uint32_t eve::graphics::PathGeometry::material = 0

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

◆ normals

std::span<const glm::vec3> eve::graphics::PathGeometry::normals

在文件 PathTracing.h 第 77 行定义.

◆ positions

std::span<const glm::vec3> eve::graphics::PathGeometry::positions

在文件 PathTracing.h 第 76 行定义.

◆ sourceMesh

Mesh* eve::graphics::PathGeometry::sourceMesh = nullptr

在文件 PathTracing.h 第 81 行定义.

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

◆ tangents

std::span<const glm::vec3> eve::graphics::PathGeometry::tangents

Optional authored object-space XYZ frames, one pair per vertex; copied during preparation. Empty frames derive a triangle UV0 basis. Both streams must be present together.

在文件 PathTracing.h 第 84 行定义.

◆ texcoords

std::span<const glm::vec2> eve::graphics::PathGeometry::texcoords

在文件 PathTracing.h 第 80 行定义.


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