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

Base-level color or material-data texture from linear pixels or an owned engine RGBA8 texture. @ownership Pixels and sourceTexture are borrowed only during preparation; the scene owns a copied snapshot. 更多...

#include <PathTracing.h>

Public 属性

uint32_t width = 0
 
uint32_t height = 0
 
std::span< const glm::vec3 > pixels
 
std::span< const float > alpha
 
Texture * sourceTexture = nullptr
 
bool srgbDecode = true
 
glm::vec2 offset {0.f}
 UV transform applied as offset + rotation * (scale * UV), before addressing.
 
glm::vec2 scale {1.f}
 
float rotation = 0.f
 
PathTextureFilter filter = PathTextureFilter::Source
 Independent material binding overrides; source texture state is never mutated.
 
PathTextureAddress addressU = PathTextureAddress::Source
 
PathTextureAddress addressV = PathTextureAddress::Source
 

详细描述

Base-level color or material-data texture from linear pixels or an owned engine RGBA8 texture. @ownership Pixels and sourceTexture are borrowed only during preparation; the scene owns a copied snapshot.

Pixel-span values must be in [0,1] and already linear. Native color inputs can decode sRGB; native metallic-roughness inputs must disable srgbDecode. Rotation is in radians. Samples use the base level; this input does not supply mip levels. Optional alpha must have the same pixel count and finite values in [0,1]; empty means opaque. Pixel spans use bilinear/repeat sampling. For sourceTexture, leave dimensions/spans empty; preparation uses its magnification filter and address modes, unpremultiplies if needed, and optionally decodes sRGB before filtering. Source release or edits cannot alter a prepared snapshot. Minification mip selection is not yet performed.

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

类成员变量说明

◆ addressU

PathTextureAddress eve::graphics::PathColorTexture::addressU = PathTextureAddress::Source

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

◆ addressV

PathTextureAddress eve::graphics::PathColorTexture::addressV = PathTextureAddress::Source

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

◆ alpha

std::span<const float> eve::graphics::PathColorTexture::alpha

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

◆ filter

PathTextureFilter eve::graphics::PathColorTexture::filter = PathTextureFilter::Source

Independent material binding overrides; source texture state is never mutated.

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

◆ height

uint32_t eve::graphics::PathColorTexture::height = 0

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

◆ offset

glm::vec2 eve::graphics::PathColorTexture::offset {0.f}

UV transform applied as offset + rotation * (scale * UV), before addressing.

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

◆ pixels

std::span<const glm::vec3> eve::graphics::PathColorTexture::pixels

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

◆ rotation

float eve::graphics::PathColorTexture::rotation = 0.f

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

◆ scale

glm::vec2 eve::graphics::PathColorTexture::scale {1.f}

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

◆ sourceTexture

Texture* eve::graphics::PathColorTexture::sourceTexture = nullptr

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

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

◆ srgbDecode

bool eve::graphics::PathColorTexture::srgbDecode = true

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

◆ width

uint32_t eve::graphics::PathColorTexture::width = 0

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


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