ReadonlydepthThe depth renderbuffer, or null — for a target built with depth: false
or one that asked for the samplable form, which allocates
RenderTargetRecord.depthTexture instead. At most one of the two is
ever non-null.
When RenderTargetRecord.stencil is set this is the packed
DEPTH24_STENCIL8 renderbuffer, attached to DEPTH_STENCIL_ATTACHMENT
rather than DEPTH_ATTACHMENT — one object serving both buffers, which is
what makes the mutual exclusion with depthTexture a fact about the
framebuffer rather than a policy (R-7, §67).
ReadonlydepthThe depth attachment as a texture, for a target built with
depthTexture: true (R-18, §69) — what a later pass binds and samples.
null for every other target.
ReadonlyframebufferThe framebuffer object to bind for drawing.
ReadonlyheightHeight the attachments were allocated at, in texels.
ReadonlystencilWhether RenderTargetRecord.depthBuffer is the packed depth-plus-stencil form (§67, R-7) — i.e. whether a frame drawing into this target may run a stencil test, and must clear the stencil buffer.
A boolean rather than a second handle: the packed renderbuffer is the
depth buffer, so a stencilBuffer field would be an alias of
depthBuffer that a reader could mistake for a second allocation.
ReadonlytextureThe colour attachment, bound when a material samples this target.
ReadonlyversionRenderTarget.version this record was allocated from.
ReadonlywidthWidth the attachments were allocated at, in texels.
Everything one cached render target needs at bind time.