载入中...
搜索中...
未找到
eve::fluids::IScreenSpaceSurfaceReconstruction类 参考abstract

Presentation contract for screen-space surface reconstruction. 更多...

#include <SurfaceFluidContracts.h>

类 eve::fluids::IScreenSpaceSurfaceReconstruction 继承关系图:
eve::fluids::ScreenSpaceSurfaceReconstructionAdapter

Public 成员函数

virtual ~IScreenSpaceSurfaceReconstruction ()=default
 Releases the renderer adapter and its presentation buffers.
 
virtual eve::Result< void > reconstruct (std::span< const glm::vec3 > positions, float particleRadius)=0
 Reconstructs depth, thickness, normals, and color from particles.
 
virtual eve::Result< void > occlude (std::span< const float > sceneDepth, float depthBias=0.001f)=0
 Removes reconstructed color behind borrowed linear scene depth without allocating.
 
virtual int width () const noexcept=0
 Output width in pixels.
 
virtual int height () const noexcept=0
 Output height in pixels.
 
virtual std::span< const float > depth () const noexcept=0
 Linear view depth per pixel.
 
virtual std::span< const glm::vec3 > normals () const noexcept=0
 Reconstructed view-space normal per pixel.
 
virtual std::span< const float > thickness () const noexcept=0
 Accumulated thickness per pixel.
 
virtual std::span< const std::uint8_t > color () const noexcept=0
 RGBA8 presentation color per pixel.
 
virtual bool usingGpu () const noexcept=0
 Whether the optional GPU path is active.
 

详细描述

Presentation contract for screen-space surface reconstruction.

在文件 SurfaceFluidContracts.h 第 86 行定义.

构造及析构函数说明

◆ ~IScreenSpaceSurfaceReconstruction()

virtual eve::fluids::IScreenSpaceSurfaceReconstruction::~IScreenSpaceSurfaceReconstruction ( )
virtualdefault

Releases the renderer adapter and its presentation buffers.

成员函数说明

◆ color()

virtual std::span< const std::uint8_t > eve::fluids::IScreenSpaceSurfaceReconstruction::color ( ) const
pure virtualnoexcept

RGBA8 presentation color per pixel.

在 eve::fluids::ScreenSpaceSurfaceReconstructionAdapter 内被实现.

◆ depth()

virtual std::span< const float > eve::fluids::IScreenSpaceSurfaceReconstruction::depth ( ) const
pure virtualnoexcept

Linear view depth per pixel.

在 eve::fluids::ScreenSpaceSurfaceReconstructionAdapter 内被实现.

◆ height()

virtual int eve::fluids::IScreenSpaceSurfaceReconstruction::height ( ) const
pure virtualnoexcept

Output height in pixels.

在 eve::fluids::ScreenSpaceSurfaceReconstructionAdapter 内被实现.

◆ normals()

virtual std::span< const glm::vec3 > eve::fluids::IScreenSpaceSurfaceReconstruction::normals ( ) const
pure virtualnoexcept

Reconstructed view-space normal per pixel.

在 eve::fluids::ScreenSpaceSurfaceReconstructionAdapter 内被实现.

◆ occlude()

virtual eve::Result< void > eve::fluids::IScreenSpaceSurfaceReconstruction::occlude ( std::span< const float >  sceneDepth,
float  depthBias = 0.001f 
)
pure virtual

Removes reconstructed color behind borrowed linear scene depth without allocating.

在 eve::fluids::ScreenSpaceSurfaceReconstructionAdapter 内被实现.

◆ reconstruct()

virtual eve::Result< void > eve::fluids::IScreenSpaceSurfaceReconstruction::reconstruct ( std::span< const glm::vec3 >  positions,
float  particleRadius 
)
pure virtual

Reconstructs depth, thickness, normals, and color from particles.

返回
Applied, or a structured input/device failure.

在 eve::fluids::ScreenSpaceSurfaceReconstructionAdapter 内被实现.

◆ thickness()

virtual std::span< const float > eve::fluids::IScreenSpaceSurfaceReconstruction::thickness ( ) const
pure virtualnoexcept

Accumulated thickness per pixel.

在 eve::fluids::ScreenSpaceSurfaceReconstructionAdapter 内被实现.

◆ usingGpu()

virtual bool eve::fluids::IScreenSpaceSurfaceReconstruction::usingGpu ( ) const
pure virtualnoexcept

Whether the optional GPU path is active.

在 eve::fluids::ScreenSpaceSurfaceReconstructionAdapter 内被实现.

◆ width()

virtual int eve::fluids::IScreenSpaceSurfaceReconstruction::width ( ) const
pure virtualnoexcept

Output width in pixels.

在 eve::fluids::ScreenSpaceSurfaceReconstructionAdapter 内被实现.


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