SurfaceCapabilities


public final class SurfaceCapabilities


A structure containing the presentation capabilities of a surface for a given adapter.

Summary

Public constructors

SurfaceCapabilities(
    int usages,
    @NonNull int[] formats,
    @NonNull int[] presentModes,
    @NonNull int[] alphaModes
)

Public methods

final @NonNull int[]
final @NonNull int[]

An array of supported texture formats for the surface.

final @NonNull int[]
final int

The supported texture usage flags for textures created from the surface.

final void
setAlphaModes(@NonNull int[] alphaModes)
final void
setFormats(@NonNull int[] formats)

An array of supported texture formats for the surface.

final void
setPresentModes(@NonNull int[] presentModes)
final void
setUsages(int usages)

The supported texture usage flags for textures created from the surface.

Public constructors

SurfaceCapabilities

Added in 1.0.0-alpha01
public SurfaceCapabilities(
    int usages,
    @NonNull int[] formats,
    @NonNull int[] presentModes,
    @NonNull int[] alphaModes
)

Public methods

getAlphaModes

Added in 1.0.0-alpha01
public final @NonNull int[] getAlphaModes()

getFormats

Added in 1.0.0-alpha01
public final @NonNull int[] getFormats()

An array of supported texture formats for the surface.

getPresentModes

Added in 1.0.0-alpha01
public final @NonNull int[] getPresentModes()

getUsages

Added in 1.0.0-alpha01
public final int getUsages()

The supported texture usage flags for textures created from the surface.

setAlphaModes

Added in 1.0.0-alpha01
public final void setAlphaModes(@NonNull int[] alphaModes)

setFormats

Added in 1.0.0-alpha01
public final void setFormats(@NonNull int[] formats)

An array of supported texture formats for the surface.

setPresentModes

Added in 1.0.0-alpha01
public final void setPresentModes(@NonNull int[] presentModes)

setUsages

Added in 1.0.0-alpha01
public final void setUsages(int usages)

The supported texture usage flags for textures created from the surface.