Back to Filament

RenderTarget

docs/android/dokka/filament-android/com.google.android.filament/-render-target/index.md

1.75.02.2 KB
Original Source

//filament-android/com.google.android.filament/RenderTarget

RenderTarget

open class RenderTarget

An offscreen render target that can be associated with a View and contains weak references to a set of attached Texture objects.

Clients are responsible for the lifetime of all associated Texture attachments.

See also

View

Types

NameSummary
AttachmentPoint[main]
enum AttachmentPoint
An attachment point is a slot that can be assigned to a Texture.
Builder[main]
open class Builder
Constructs RenderTarget objects using a builder pattern.

Functions

NameSummary
getFace[main]
open fun getFace(attachment: RenderTarget.AttachmentPoint): Texture.CubemapFace
Returns the face of a cubemap set on the given attachment point.
getLayer[main]
open fun getLayer(attachment: RenderTarget.AttachmentPoint): Int
Returns the texture-layer set on the given attachment point.
getMipLevel[main]
open fun getMipLevel(attachment: RenderTarget.AttachmentPoint): Int
Returns the mipmap level set on the given attachment point.
getNativeObject[main]
open fun getNativeObject(): Long
getTexture[main]
open fun getTexture(attachment: RenderTarget.AttachmentPoint): Texture
Gets the texture set on the given attachment point.