GPU texture created via Graphics::newTexture. Owns GPU resources through an opaque backend handle. 更多...
#include <Texture.h>
Public 成员函数 | |
| Texture () | |
| ~Texture () override | |
| void | draw (Graphics *gfx, const glm::mat4 &matrix) const override |
| Draws the object with the specified transformation matrix. | |
| void | drawOcclusion (Graphics *gfx, const glm::mat4 &matrix) const override |
| Black silhouette using texture alpha (volumetric occlusion map). | |
| int | getWidth () const |
| int | getHeight () const |
| int | getPixelWidth () const |
| int | getPixelHeight () const |
| int | getMipmapCount () const |
| const TextureSampler & | getSampler () const |
Public 成员函数 继承自 eve::graphics::Drawable | |
| virtual | ~Drawable () |
| bool | getCastOcclusion () const |
| When false, skipped by Graphics::drawOcclusion / volumetric occluder passes. | |
| void | setCastOcclusion (bool cast) |
Public 属性 | |
| void * | gpuHandle = nullptr |
| int | width = 0 |
| int | height = 0 |
| int | depth = 1 |
| int | layers = 1 |
| int | mipmapCount = 1 |
| int | pixelWidth = 0 |
| int | pixelHeight = 0 |
| TextureSampler | sampler {} |
详细描述
GPU texture created via Graphics::newTexture. Owns GPU resources through an opaque backend handle.
构造及析构函数说明
◆ Texture()
|
default |
◆ ~Texture()
|
override |
在文件 Texture.cpp 第 12 行定义.
引用了 gpuHandle.
成员函数说明
◆ draw()
|
overridevirtual |
Draws the object with the specified transformation matrix.
在文件 Texture.cpp 第 17 行定义.
◆ drawOcclusion()
|
overridevirtual |
Black silhouette using texture alpha (volumetric occlusion map).
在文件 Texture.cpp 第 21 行定义.
引用了 eve::graphics::Graphics::drawOcclusionTexture(), eve::graphics::Drawable::getCastOcclusion(), h, w, x , 以及 y.
◆ getHeight()
|
inline |
引用了 height.
被这些函数引用 eve::avatar::AvatarInstance::addLayer(), eve::stylize::StylePass::apply(), eve::graphics::GlobalIllumination::applyFromDepth(), eve::graphics::AmbientOcclusion::applyFromGBuffer(), eve::graphics::ScreenSpaceReflection::applyFromScene(), eve::graphics::AmbientOcclusion::blur(), eve::graphics::RenderSystem::collectSprites(), eve::graphics::AmbientOcclusion::compute() , 以及 eve::avatar::AvatarInstance::setLayerTexture().
◆ getMipmapCount()
|
inline |
引用了 mipmapCount.
◆ getPixelHeight()
|
inline |
引用了 pixelHeight.
◆ getPixelWidth()
|
inline |
引用了 pixelWidth.
◆ getSampler()
|
inline |
◆ getWidth()
|
inline |
引用了 width.
被这些函数引用 eve::avatar::AvatarInstance::addLayer(), eve::stylize::StylePass::apply(), eve::graphics::GlobalIllumination::applyFromDepth(), eve::graphics::AmbientOcclusion::applyFromGBuffer(), eve::graphics::ScreenSpaceReflection::applyFromScene(), eve::graphics::AmbientOcclusion::blur(), eve::graphics::RenderSystem::collectSprites(), eve::graphics::AmbientOcclusion::compute() , 以及 eve::avatar::AvatarInstance::setLayerTexture().
类成员变量说明
◆ depth
| int eve::graphics::Texture::depth = 1 |
◆ gpuHandle
| void* eve::graphics::Texture::gpuHandle = nullptr |
Backend-private GPU object (vulkan::GpuTexture*).
被这些函数引用 eve::graphics::vulkan::Graphics::drawMeshShader(), eve::graphics::vulkan::Graphics::drawVoxelFaceInstances(), eve::graphics::webgpu::OffscreenCanvas::OffscreenCanvas(), eve::graphics::vulkan::OffscreenCanvas::OffscreenCanvas(), eve::graphics::vulkan::Graphics::releaseTexture(), eve::graphics::webgpu::Graphics::releaseTexture(), eve::graphics::vulkan::Graphics::renderEntityIdMask(), eve::graphics::vulkan::Graphics::replaceTexturePixels(), eve::graphics::vulkan::Graphics::setTextureSampler(), eve::graphics::vulkan::OffscreenCanvas::~OffscreenCanvas() , 以及 ~Texture().
◆ height
| int eve::graphics::Texture::height = 0 |
◆ layers
◆ mipmapCount
| int eve::graphics::Texture::mipmapCount = 1 |
◆ pixelHeight
| int eve::graphics::Texture::pixelHeight = 0 |
◆ pixelWidth
| int eve::graphics::Texture::pixelWidth = 0 |
◆ sampler
| TextureSampler eve::graphics::Texture::sampler {} |
◆ width
| int eve::graphics::Texture::width = 0 |
该类的文档由以下文件生成:
- src/modules/graphics/Texture.h
- src/modules/graphics/Texture.cpp
Public 成员函数 继承自