raisin::ScreenSpaceDepthCopySystem
class · #include <rayrai/PostFxRenderTargets.hpp>
Owns a depth-texture copy of the opaque scene depth for transparent material effects that need to compare against already-rendered geometry without sampling the active depth attachment.
Constructors & destructor
ScreenSpaceDepthCopySystem
cpp
ScreenSpaceDepthCopySystem() = defaultcpp
ScreenSpaceDepthCopySystem(const ScreenSpaceDepthCopySystem &) = deletecpp
ScreenSpaceDepthCopySystem(ScreenSpaceDepthCopySystem &&) = delete~ScreenSpaceDepthCopySystem
cpp
~ScreenSpaceDepthCopySystem()Public member functions
operator=
cpp
ScreenSpaceDepthCopySystem &operator=(const ScreenSpaceDepthCopySystem &) = deletecpp
ScreenSpaceDepthCopySystem &operator=(ScreenSpaceDepthCopySystem &&) = deleteensureResources
cpp
bool ensureResources(int width, int height)(Re)allocate the DEPTH_COMPONENT24 texture for this size; the caller fills it.
Parameters
| Parameter | Description |
|---|---|
width | Width in pixels. |
height | Height in pixels. |
Returns False for a non-positive size.
release
cpp
void release()Delete the texture; safe to call repeatedly.
depthTex
cpp
unsigned int depthTex() constReturns Depth texture, or 0.
width
cpp
int width() constReturns Allocated width.
height
cpp
int height() constReturns Allocated height.