Offscreen entity-ID and isolated visibility capture surface. 更多...
#include <GraphicsVisibility.h>
Public 成员函数 | |
| virtual | ~IVisibilityCapture ()=default |
| Releases IVisibilityCapture resources. | |
| virtual image::ImageData * | renderEntityIdMask (const std::vector< EntityIdDraw > &draws, const glm::mat4 &viewProj, int w, int h)=0 |
| Per-pixel mesh entity-ID pass into an offscreen target, then CPU readback. @ownership Result transfers to caller. Draw inputs are borrowed only for this call. @lifetime Returned ImageData is owned by the caller; draws are valid only for the call. | |
| virtual eve::Result< VisibilityPixels > | captureVisibilityPixels (const std::vector< EntityIdDraw > &draws, const glm::mat4 &viewProj, int w, int h)=0 |
| Render opaque draw IDs and float depth into private targets and wait for readback. @ownership Draw meshes are borrowed for this synchronous call; output owns its storage. @thread Render owner thread only. No callbacks or scene mutations. @cost GPU raster and blocking readback proportional to pixels and triangles per requested pass. | |
详细描述
Offscreen entity-ID and isolated visibility capture surface.
- 备注
- Queried through
Graphics::visibilityCapture(); absent backends return null.
在文件 GraphicsVisibility.h 第 46 行定义.
构造及析构函数说明
◆ ~IVisibilityCapture()
|
virtualdefault |
Releases IVisibilityCapture resources.
成员函数说明
◆ captureVisibilityPixels()
|
pure virtual |
Render opaque draw IDs and float depth into private targets and wait for readback. @ownership Draw meshes are borrowed for this synchronous call; output owns its storage. @thread Render owner thread only. No callbacks or scene mutations. @cost GPU raster and blocking readback proportional to pixels and triangles per requested pass.
在 eve::graphics::vulkan::Graphics 内被实现.
◆ renderEntityIdMask()
|
pure virtual |
Per-pixel mesh entity-ID pass into an offscreen target, then CPU readback. @ownership Result transfers to caller. Draw inputs are borrowed only for this call. @lifetime Returned ImageData is owned by the caller; draws are valid only for the call.
在 eve::graphics::vulkan::Graphics 内被实现.
该类的文档由以下文件生成:
- src/modules/graphics/GraphicsVisibility.h