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

Sampler state for a Texture (filter, wrap, mip LOD, anisotropy). Defaults match historical engine behaviour: linear, clamp, no mips, no aniso. 更多...

#include <TextureSampler.h>

静态 Public 成员函数

static TextureSampler nearest ()
 
static TextureSampler linear ()
 
static TextureSampler linearMipmap ()
 Trilinear (linear + linear mips). Caller should create the texture with generateMipmaps.
 
static TextureSampler anisotropic (float maxAniso=16.f)
 Trilinear + anisotropic filtering (capped by device limits at bind time).
 
static FilterMode parseFilter (const std::string &name)
 
static MipmapMode parseMipmap (const std::string &name)
 
static const char * filterName (FilterMode m)
 
static const char * mipmapName (MipmapMode m)
 

Public 属性

FilterMode min = FilterMode::Linear
 
FilterMode mag = FilterMode::Linear
 
MipmapMode mipmap = MipmapMode::Disabled
 
bool repeatU = false
 
bool repeatV = false
 
bool repeatW = false
 
float maxAnisotropy = 1.f
 1 = off; values >1 enable anisotropic filtering when the device supports it.
 
float lodBias = 0.f
 
float minLod = 0.f
 
float maxLod = 1000.f
 Inclusive upper LOD clamp. Large values mean "use all available mips".
 

详细描述

Sampler state for a Texture (filter, wrap, mip LOD, anisotropy). Defaults match historical engine behaviour: linear, clamp, no mips, no aniso.

在文件 TextureSampler.h27 行定义.

成员函数说明

◆ anisotropic()

static TextureSampler eve::graphics::TextureSampler::anisotropic ( float  maxAniso = 16.f)
inlinestatic

Trilinear + anisotropic filtering (capped by device limits at bind time).

在文件 TextureSampler.h67 行定义.

引用了 linearMipmap() , 以及 s.

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

◆ filterName()

static const char * eve::graphics::TextureSampler::filterName ( FilterMode  m)
inlinestatic

在文件 TextureSampler.h84 行定义.

引用了 m , 以及 eve::graphics::Nearest.

◆ linear()

static TextureSampler eve::graphics::TextureSampler::linear ( )
inlinestatic

在文件 TextureSampler.h49 行定义.

引用了 eve::graphics::Disabled, eve::graphics::Linear, min , 以及 s.

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

◆ linearMipmap()

static TextureSampler eve::graphics::TextureSampler::linearMipmap ( )
inlinestatic

Trilinear (linear + linear mips). Caller should create the texture with generateMipmaps.

在文件 TextureSampler.h58 行定义.

引用了 eve::graphics::Linear, min , 以及 s.

被这些函数引用 anisotropic(), eve::graphics::webgpu::OffscreenCanvas::OffscreenCanvas() , 以及 eve::graphics::TextureCreateInfo::withMipmaps().

◆ mipmapName()

static const char * eve::graphics::TextureSampler::mipmapName ( MipmapMode  m)
inlinestatic

在文件 TextureSampler.h88 行定义.

引用了 eve::graphics::Disabled, m , 以及 eve::graphics::Nearest.

◆ nearest()

static TextureSampler eve::graphics::TextureSampler::nearest ( )
inlinestatic

在文件 TextureSampler.h41 行定义.

引用了 eve::graphics::Disabled, min, eve::graphics::Nearest , 以及 s.

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

◆ parseFilter()

static FilterMode eve::graphics::TextureSampler::parseFilter ( const std::string &  name)
inlinestatic

◆ parseMipmap()

static MipmapMode eve::graphics::TextureSampler::parseMipmap ( const std::string &  name)
inlinestatic

类成员变量说明

◆ lodBias

float eve::graphics::TextureSampler::lodBias = 0.f

在文件 TextureSampler.h36 行定义.

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

◆ mag

FilterMode eve::graphics::TextureSampler::mag = FilterMode::Linear

在文件 TextureSampler.h29 行定义.

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

◆ maxAnisotropy

float eve::graphics::TextureSampler::maxAnisotropy = 1.f

1 = off; values >1 enable anisotropic filtering when the device supports it.

在文件 TextureSampler.h35 行定义.

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

◆ maxLod

float eve::graphics::TextureSampler::maxLod = 1000.f

Inclusive upper LOD clamp. Large values mean "use all available mips".

在文件 TextureSampler.h39 行定义.

◆ min

◆ minLod

float eve::graphics::TextureSampler::minLod = 0.f

在文件 TextureSampler.h37 行定义.

◆ mipmap

MipmapMode eve::graphics::TextureSampler::mipmap = MipmapMode::Disabled

在文件 TextureSampler.h30 行定义.

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

◆ repeatU

◆ repeatV

◆ repeatW

bool eve::graphics::TextureSampler::repeatW = false

在文件 TextureSampler.h33 行定义.

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


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