Back to Filament

getLayer

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

1.75.0583 B
Original Source

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

getLayer

[main]
open fun getLayer(attachment: RenderTarget.AttachmentPoint): Int

Returns the texture-layer set on the given attachment point.

Return

A texture layer. This is only relevant if the attachment's texture is a 3D texture.

Parameters

main

attachmentAttachment point