Presentation contract for screen-space surface reconstruction. 更多...
#include <SurfaceFluidContracts.h>
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()
|
virtualdefault |
Releases the renderer adapter and its presentation buffers.
成员函数说明
◆ color()
|
pure virtualnoexcept |
RGBA8 presentation color per pixel.
在 eve::fluids::ScreenSpaceSurfaceReconstructionAdapter 内被实现.
◆ depth()
|
pure virtualnoexcept |
Linear view depth per pixel.
在 eve::fluids::ScreenSpaceSurfaceReconstructionAdapter 内被实现.
◆ height()
|
pure virtualnoexcept |
Output height in pixels.
在 eve::fluids::ScreenSpaceSurfaceReconstructionAdapter 内被实现.
◆ normals()
|
pure virtualnoexcept |
Reconstructed view-space normal per pixel.
在 eve::fluids::ScreenSpaceSurfaceReconstructionAdapter 内被实现.
◆ occlude()
|
pure virtual |
Removes reconstructed color behind borrowed linear scene depth without allocating.
在 eve::fluids::ScreenSpaceSurfaceReconstructionAdapter 内被实现.
◆ reconstruct()
|
pure virtual |
Reconstructs depth, thickness, normals, and color from particles.
- 返回
- Applied, or a structured input/device failure.
在 eve::fluids::ScreenSpaceSurfaceReconstructionAdapter 内被实现.
◆ thickness()
|
pure virtualnoexcept |
Accumulated thickness per pixel.
在 eve::fluids::ScreenSpaceSurfaceReconstructionAdapter 内被实现.
◆ usingGpu()
|
pure virtualnoexcept |
Whether the optional GPU path is active.
在 eve::fluids::ScreenSpaceSurfaceReconstructionAdapter 内被实现.
◆ width()
|
pure virtualnoexcept |
Output width in pixels.
在 eve::fluids::ScreenSpaceSurfaceReconstructionAdapter 内被实现.
该类的文档由以下文件生成:
- src/modules/fluids/SurfaceFluidContracts.h