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 () |
| static TextureCreateInfo | withMipmaps (bool aniso=true, float maxAniso=16.f) |
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 第 104 行定义.
成员函数说明
◆ defaults()
|
inlinestatic |
在文件 TextureSampler.h 第 108 行定义.
◆ withMipmaps()
|
inlinestatic |
类成员变量说明
◆ generateMipmaps
| bool eve::graphics::TextureCreateInfo::generateMipmaps = false |
在文件 TextureSampler.h 第 106 行定义.
被这些函数引用 eve::graphics::vulkan::Graphics::newCubemap(), eve::graphics::webgpu::Graphics::newCubemap(), eve::graphics::vulkan::Graphics::newTexture(), eve::graphics::webgpu::Graphics::newTexture(), eve::graphics::Graphics::newTextureWithSampler(), eve::graphics::vulkan::Graphics::replaceTexturePixels() , 以及 withMipmaps().
◆ sampler
| TextureSampler eve::graphics::TextureCreateInfo::sampler {} |
在文件 TextureSampler.h 第 105 行定义.
被这些函数引用 eve::graphics::grass::createSwayAtlas(), eve::graphics::grass::createSwayAtlasFromFiles(), eve::graphics::vulkan::Graphics::newCubemap(), eve::graphics::webgpu::Graphics::newCubemap(), eve::graphics::vulkan::Graphics::newTexture(), eve::graphics::webgpu::Graphics::newTexture(), eve::graphics::vulkan::Graphics::newTexture(), eve::graphics::webgpu::Graphics::newTexture(), eve::graphics::Graphics::newTextureFromImageData(), eve::graphics::Graphics::newTextureWithSampler(), eve::graphics::vulkan::Graphics::replaceTexturePixels() , 以及 withMipmaps().
该结构体的文档由以下文件生成:
- src/modules/graphics/TextureSampler.h