Skip to content

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() = default
cpp
ScreenSpaceDepthCopySystem(const ScreenSpaceDepthCopySystem &) = delete
cpp
ScreenSpaceDepthCopySystem(ScreenSpaceDepthCopySystem &&) = delete

~ScreenSpaceDepthCopySystem ​

cpp
~ScreenSpaceDepthCopySystem()

Public member functions ​

operator= ​

cpp
ScreenSpaceDepthCopySystem &operator=(const ScreenSpaceDepthCopySystem &) = delete
cpp
ScreenSpaceDepthCopySystem &operator=(ScreenSpaceDepthCopySystem &&) = delete

ensureResources ​

cpp
bool ensureResources(int width, int height)

(Re)allocate the DEPTH_COMPONENT24 texture for this size; the caller fills it.

Parameters

ParameterDescription
widthWidth in pixels.
heightHeight 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() const

Returns Depth texture, or 0.

width ​

cpp
int width() const

Returns Allocated width.

height ​

cpp
int height() const

Returns Allocated height.

RaiSim — physics for robotics and AI.