raisin::Camera::RenderTargetDiagnostics
struct · #include <rayrai/Camera.hpp>
Internal: diagnostics snapshot of one camera-owned render target (returned by renderTargetDiagnostics()). GL ids are 0 when unallocated.
Public attributes
name
cpp
std::string nameTarget name, e.g. "scene", "postprocess", "picking".
framebuffer
cpp
unsigned int framebufferGL framebuffer id.
colorTexture
cpp
unsigned int colorTextureGL color texture id.
depthTexture
cpp
unsigned int depthTextureGL depth texture id.
colorRenderbuffer
cpp
unsigned int colorRenderbufferGL color renderbuffer id (MSAA target).
depthRenderbuffer
cpp
unsigned int depthRenderbufferGL depth renderbuffer id.
width
cpp
int widthAllocated width in pixels.
height
cpp
int heightAllocated height in pixels.
samples
cpp
int samplesMSAA sample count.
colorFormat
cpp
std::string colorFormatColor format name; empty if none.
depthFormat
cpp
std::string depthFormatDepth format name; empty if none.
estimatedBytes
cpp
size_t estimatedBytesEstimated GPU memory; 0 when not ready.
ready
cpp
bool readyTrue when all required attachments exist.
framebufferStatus
cpp
unsigned int framebufferStatusglCheckFramebufferStatus() result (0 if no FBO).
framebufferStatusName
cpp
std::string framebufferStatusNameReadable form of framebufferStatus.
framebufferComplete
cpp
bool framebufferCompleteTrue when the status is GL_FRAMEBUFFER_COMPLETE.