GPU texture created via Graphics::newTexture. Owns GPU resources through an opaque backend handle. 更多...
#include <Texture.h>
Public 成员函数 | |
| Texture () | |
| Texture. | |
| ~Texture () override | |
| Texture. | |
| void | draw (Graphics *gfx, const glm::mat4 &matrix) const override |
| Draws . | |
| void | drawOcclusion (Graphics *gfx, const glm::mat4 &matrix) const override |
| Black silhouette using texture alpha (volumetric occlusion map). | |
| int | getWidth () const |
| Returns the width. | |
| int | getHeight () const |
| Returns the height. | |
| int | getPixelWidth () const |
| Returns the pixel width. | |
| int | getPixelHeight () const |
| Returns the pixel height. | |
| int | getMipmapCount () const |
| Returns the mipmap count. | |
| const TextureSampler & | getSampler () const |
| Returns the sampler. | |
| void | setAlphaConvention (const std::string &value) |
| Declare whether RGB is straight or already multiplied by alpha. | |
| std::string | getAlphaConvention () const |
| Returns the alpha convention. | |
| bool | hasPremultipliedAlpha () const |
| True when premultiplied alpha. | |
| void | markDeferredFilePixels (Graphics *graphics) |
| Mark deferred file pixels. | |
| void | clearDeferredFilePixels () |
| Clears deferred file pixels. | |
| bool | hasDeferredFilePixels () const |
| True when deferred file pixels. | |
Public 成员函数 继承自 eve::graphics::Drawable | |
| virtual | ~Drawable () |
| Releases Drawable resources. | |
| bool | getCastOcclusion () const |
| When false, skipped by Graphics::drawOcclusion / volumetric occluder passes. | |
| void | setCastOcclusion (bool cast) |
| Sets the cast occlusion. | |
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 |
成员函数说明
◆ clearDeferredFilePixels()
| void eve::graphics::Texture::clearDeferredFilePixels | ( | ) |
Clears deferred file pixels.
在文件 Texture.cpp 第 22 行定义.
◆ draw()
|
overridevirtual |
◆ drawOcclusion()
|
overridevirtual |
Black silhouette using texture alpha (volumetric occlusion map).
在文件 Texture.cpp 第 57 行定义.
引用了 eve::graphics::Graphics::drawOcclusionTexture(), eve::graphics::Drawable::getCastOcclusion(), h, w, x , 以及 y.
◆ getAlphaConvention()
|
inline |
◆ getHeight()
| int eve::graphics::Texture::getHeight | ( | ) | const |
Returns the height.
在文件 Texture.cpp 第 33 行定义.
引用了 height.
被这些函数引用 eve::avatar::AvatarInstance::addLayer(), 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() , 以及 eve::graphics::Volumetric::uploadFroxel().
◆ getMipmapCount()
| int eve::graphics::Texture::getMipmapCount | ( | ) | const |
◆ getPixelHeight()
| int eve::graphics::Texture::getPixelHeight | ( | ) | const |
◆ getPixelWidth()
| int eve::graphics::Texture::getPixelWidth | ( | ) | const |
◆ getSampler()
|
inline |
Returns the sampler.
引用了 sampler.
◆ getWidth()
| int eve::graphics::Texture::getWidth | ( | ) | const |
Returns the width.
在文件 Texture.cpp 第 28 行定义.
引用了 width.
被这些函数引用 eve::avatar::AvatarInstance::addLayer(), 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() , 以及 eve::graphics::Volumetric::uploadFroxel().
◆ hasDeferredFilePixels()
|
inline |
True when deferred file pixels.
被这些函数引用 eve::avatar::AvatarInstance::addLayer() , 以及 eve::avatar::AvatarInstance::setLayerTexture().
◆ hasPremultipliedAlpha()
|
inline |
◆ markDeferredFilePixels()
| void eve::graphics::Texture::markDeferredFilePixels | ( | Graphics * | graphics | ) |
Mark deferred file pixels.
在文件 Texture.cpp 第 17 行定义.
◆ setAlphaConvention()
|
inline |
类成员变量说明
◆ depth
| int eve::graphics::Texture::depth = 1 |
◆ gpuHandle
| void* eve::graphics::Texture::gpuHandle = nullptr |
Backend-private GPU object (vulkan::GpuTexture*).
被这些函数引用 eve::graphics::vulkan::Graphics::copyHDRCanvasesToCubemap(), eve::graphics::webgpu::Graphics::copyHDRCanvasesToCubemap(), eve::graphics::vulkan::Graphics::copyHDRCanvasToCubemapFace(), eve::graphics::webgpu::Graphics::copyHDRCanvasToCubemapFace(), eve::graphics::vulkan::Graphics::debugBindlessIndex(), eve::graphics::vulkan::Graphics::drawVoxelFaceInstances(), eve::graphics::vulkan::Graphics::filterHDRReflectionCubemap(), eve::graphics::webgpu::Graphics::filterHDRReflectionCubemap(), eve::graphics::vulkan::Graphics::gpuDrivenReflectionProbeSlot(), 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::replaceTexturePixelsRGBA(), eve::graphics::vulkan::Graphics::setMesh3DPbrSurface(), eve::graphics::webgpu::Graphics::setMesh3DPbrSurface(), eve::graphics::vulkan::Graphics::setTextureSampler(), eve::graphics::vulkan::Graphics::updateTextureFromResidentRgba8(), eve::graphics::vulkan::Graphics::updateTextureRegions(), eve::graphics::webgpu::Graphics::uploadDeferredFileTexture(), eve::graphics::vulkan::OffscreenCanvas::~OffscreenCanvas() , 以及 ~Texture().
◆ height
| int eve::graphics::Texture::height = 0 |
被这些函数引用 getHeight(), eve::graphics::webgpu::OffscreenCanvas::OffscreenCanvas(), eve::graphics::vulkan::OffscreenCanvas::OffscreenCanvas(), eve::graphics::vulkan::Graphics::replaceTexturePixelsRGBA(), eve::graphics::vulkan::Graphics::updateTexture(), eve::graphics::webgpu::Graphics::updateTexture(), eve::graphics::vulkan::Graphics::updateTextureFromResidentRgba8(), eve::graphics::vulkan::Graphics::updateTextureRegions(), eve::graphics::webgpu::Graphics::updateTextureRegions() , 以及 eve::graphics::webgpu::Graphics::uploadDeferredFileTexture().
◆ layers
| int eve::graphics::Texture::layers = 1 |
◆ mipmapCount
| int eve::graphics::Texture::mipmapCount = 1 |
被这些函数引用 getMipmapCount(), eve::graphics::webgpu::OffscreenCanvas::OffscreenCanvas(), eve::graphics::vulkan::Graphics::replaceTexturePixelsRGBA(), eve::graphics::vulkan::Graphics::updateTexture(), eve::graphics::vulkan::Graphics::updateTextureFromResidentRgba8(), eve::graphics::vulkan::Graphics::updateTextureRegions(), eve::graphics::webgpu::Graphics::updateTextureRegions() , 以及 eve::graphics::webgpu::Graphics::uploadDeferredFileTexture().
◆ 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 |
被这些函数引用 eve::avatar::AvatarInstance::addLayer(), getWidth(), eve::graphics::webgpu::OffscreenCanvas::OffscreenCanvas(), eve::graphics::vulkan::OffscreenCanvas::OffscreenCanvas(), eve::graphics::vulkan::Graphics::replaceTexturePixelsRGBA(), eve::avatar::AvatarInstance::setLayerTexture(), eve::graphics::vulkan::Graphics::updateTexture(), eve::graphics::webgpu::Graphics::updateTexture(), eve::graphics::vulkan::Graphics::updateTextureRegions(), eve::graphics::webgpu::Graphics::updateTextureRegions() , 以及 eve::graphics::webgpu::Graphics::uploadDeferredFileTexture().
该类的文档由以下文件生成:
- src/modules/graphics/Texture.h
- src/modules/graphics/Texture.cpp
Public 成员函数 继承自