载入中...
搜索中...
未找到
eve::graphics::IVisibilityCapture类 参考abstract

Offscreen entity-ID and isolated visibility capture surface. 更多...

#include <GraphicsVisibility.h>

类 eve::graphics::IVisibilityCapture 继承关系图:
eve::graphics::vulkan::Graphics

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()

virtual eve::graphics::IVisibilityCapture::~IVisibilityCapture ( )
virtualdefault

Releases IVisibilityCapture resources.

成员函数说明

◆ captureVisibilityPixels()

virtual eve::Result< VisibilityPixels > eve::graphics::IVisibilityCapture::captureVisibilityPixels ( const std::vector< EntityIdDraw > &  draws,
const glm::mat4 &  viewProj,
int  w,
int  h 
)
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()

virtual image::ImageData * eve::graphics::IVisibilityCapture::renderEntityIdMask ( const std::vector< EntityIdDraw > &  draws,
const glm::mat4 &  viewProj,
int  w,
int  h 
)
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 内被实现.


该类的文档由以下文件生成: