Package com.google.android.filament
Class RenderTarget
- java.lang.Object
-
- com.google.android.filament.RenderTarget
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRenderTarget.AttachmentPointAn attachment point is a slot that can be assigned to aTexture.static classRenderTarget.BuilderConstructsRenderTargetobjects using a builder pattern.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Texture.CubemapFacegetFace(RenderTarget.AttachmentPoint attachment)Returns the face of a cubemap set on the given attachment point.intgetLayer(RenderTarget.AttachmentPoint attachment)Returns the texture-layer set on the given attachment point.intgetMipLevel(RenderTarget.AttachmentPoint attachment)Returns the mipmap level set on the given attachment point.longgetNativeObject()TexturegetTexture(RenderTarget.AttachmentPoint attachment)Gets the texture set on the given attachment point.
-
-
-
Method Detail
-
getNativeObject
public long getNativeObject()
-
getTexture
@Nullable public Texture getTexture(@NonNull RenderTarget.AttachmentPoint attachment)
Gets the texture set on the given attachment point.- Parameters:
attachment- Attachment point- Returns:
- A Texture object or nullptr if no texture is set for this attachment point
-
getMipLevel
@IntRange(from=0L) public int getMipLevel(@NonNull RenderTarget.AttachmentPoint attachment)Returns the mipmap level set on the given attachment point.- Parameters:
attachment- Attachment point- Returns:
- the mipmap level set on the given attachment point
-
getFace
public Texture.CubemapFace getFace(RenderTarget.AttachmentPoint attachment)
Returns the face of a cubemap set on the given attachment point.- Parameters:
attachment- Attachment point- Returns:
- A cubemap face identifier. This is only relevant if the attachment's texture is a cubemap.
-
getLayer
@IntRange(from=0L) public int getLayer(@NonNull RenderTarget.AttachmentPoint attachment)Returns the texture-layer set on the given attachment point.- Parameters:
attachment- Attachment point- Returns:
- A texture layer. This is only relevant if the attachment's texture is a 3D texture.
-
-