Options for Graphics::newTexture / newCubemap. When generateMipmaps is true and sampler.mipmap is Disabled, mipmap mode becomes Linear. 更多...
#include <TextureSampler.h>
静态 Public 成员函数 | |
| static TextureCreateInfo | defaults () |
| Defaults. | |
| static TextureCreateInfo | withMipmaps (bool aniso=true, float maxAniso=16.f) |
| With mipmaps. | |
Public 属性 | |
| TextureSampler | sampler {} |
| bool | generateMipmaps = false |
详细描述
Options for Graphics::newTexture / newCubemap. When generateMipmaps is true and sampler.mipmap is Disabled, mipmap mode becomes Linear.
在文件 TextureSampler.h 第 110 行定义.
成员函数说明
◆ defaults()
|
inlinestatic |
Defaults.
在文件 TextureSampler.h 第 115 行定义.
◆ withMipmaps()
|
inlinestatic |
With mipmaps.
在文件 TextureSampler.h 第 118 行定义.
引用了 eve::graphics::TextureSampler::anisotropic(), generateMipmaps, info , 以及 eve::graphics::TextureSampler::linearMipmap().
被这些函数引用 eve::graphics::vulkan::Graphics::newCubemap() , 以及 eve::daynight::DayNight::update().
类成员变量说明
◆ generateMipmaps
| bool eve::graphics::TextureCreateInfo::generateMipmaps = false |
在文件 TextureSampler.h 第 112 行定义.
被这些函数引用 eve::graphics::Graphics::newTextureWithSampler() , 以及 withMipmaps().
◆ sampler
| TextureSampler eve::graphics::TextureCreateInfo::sampler {} |
在文件 TextureSampler.h 第 111 行定义.
被这些函数引用 eve::graphics::grass::createSwayAtlas(), eve::graphics::grass::createSwayAtlasFromFiles(), eve::graphics::webgpu::Graphics::newCubemap(), eve::graphics::vulkan::Graphics::newTexture(), eve::graphics::webgpu::Graphics::newTexture(), eve::graphics::webgpu::Graphics::newTexture(), eve::graphics::Graphics::newTextureFromImageData() , 以及 eve::graphics::vulkan::Graphics::replaceTexturePixelsRGBA().
该结构体的文档由以下文件生成:
- src/modules/graphics/TextureSampler.h