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

Synchronous borrowed input for one immutable shader image. @ownership The caller owns bytes; upload copies them before returning. @lifetime All spans need remain valid only for the upload call; never retained. 更多...

#include <ShaderResources.h>

Public 属性

std::uint32_t binding = 0
 
ShaderImageFormat format = ShaderImageFormat::RGBA8
 
ShaderImageDimension dimension = ShaderImageDimension::Image2D
 
std::uint32_t width = 0
 
std::uint32_t height = 0
 
std::uint32_t layers = 1
 
std::uint32_t mipLevels = 1
 
TextureSampler sampler
 
std::span< const std::byte > bytes
 
std::shared_ptr< const void > contentOwner
 Optional immutable byte snapshot identity for upload deduplication. @ownership Shared owner of the exact bytes above, held only for the call. Never reuse an owner for mutated bytes. Empty disables identity reuse.
 
std::uint32_t depth = 1
 Base Z extent for Image3D; other dimensions require one. Volume bytes are mip-major, then Z-slice-major, row-major within each slice. Every mip halves all three extents, clamping each to one.
 

详细描述

Synchronous borrowed input for one immutable shader image. @ownership The caller owns bytes; upload copies them before returning. @lifetime All spans need remain valid only for the upload call; never retained.

Bytes are tightly packed layer-major, then mip-major. BC3 tail mips occupy at least one 4x4 block. Numeric images are never premultiplied/resampled.

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

类成员变量说明

◆ binding

std::uint32_t eve::graphics::ShaderImageInput::binding = 0

在文件 ShaderResources.h 第 43 行定义.

◆ bytes

std::span<const std::byte> eve::graphics::ShaderImageInput::bytes

在文件 ShaderResources.h 第 48 行定义.

◆ contentOwner

std::shared_ptr<const void> eve::graphics::ShaderImageInput::contentOwner

Optional immutable byte snapshot identity for upload deduplication. @ownership Shared owner of the exact bytes above, held only for the call. Never reuse an owner for mutated bytes. Empty disables identity reuse.

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

◆ depth

std::uint32_t eve::graphics::ShaderImageInput::depth = 1

Base Z extent for Image3D; other dimensions require one. Volume bytes are mip-major, then Z-slice-major, row-major within each slice. Every mip halves all three extents, clamping each to one.

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

◆ dimension

ShaderImageDimension eve::graphics::ShaderImageInput::dimension = ShaderImageDimension::Image2D

在文件 ShaderResources.h 第 45 行定义.

◆ format

ShaderImageFormat eve::graphics::ShaderImageInput::format = ShaderImageFormat::RGBA8

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

◆ height

std::uint32_t eve::graphics::ShaderImageInput::height = 0

在文件 ShaderResources.h 第 46 行定义.

◆ layers

std::uint32_t eve::graphics::ShaderImageInput::layers = 1

在文件 ShaderResources.h 第 46 行定义.

◆ mipLevels

std::uint32_t eve::graphics::ShaderImageInput::mipLevels = 1

在文件 ShaderResources.h 第 46 行定义.

◆ sampler

TextureSampler eve::graphics::ShaderImageInput::sampler

在文件 ShaderResources.h 第 47 行定义.

◆ width

std::uint32_t eve::graphics::ShaderImageInput::width = 0

在文件 ShaderResources.h 第 46 行定义.


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