GPUSurfaceConfiguration


public final class GPUSurfaceConfiguration


Describes the configuration for a surface.

Summary

Nested types

Builder for GPUSurfaceConfiguration.

Public constructors

GPUSurfaceConfiguration(
    @NonNull GPUDevice device,
    int width,
    int height,
    int format,
    int usage,
    @NonNull int[] viewFormats,
    int alphaMode,
    int presentMode
)

Public methods

final int
final @NonNull GPUDevice

The device to use for rendering to the surface.

final int

The texture format for the surface.

final int

The height of the surface's textures.

final int
final int

The allowed usages for the surface's textures.

final @NonNull int[]
final int

The width of the surface's textures.

final void
setAlphaMode(int value)
final void

The device to use for rendering to the surface.

final void
setFormat(int value)

The texture format for the surface.

final void
setHeight(int value)

The height of the surface's textures.

final void
setPresentMode(int value)
final void
setUsage(int value)

The allowed usages for the surface's textures.

final void
setViewFormats(@NonNull int[] value)
final void
setWidth(int value)

The width of the surface's textures.

Public constructors

GPUSurfaceConfiguration

Added in 1.0.0-alpha04
public GPUSurfaceConfiguration(
    @NonNull GPUDevice device,
    int width,
    int height,
    int format,
    int usage,
    @NonNull int[] viewFormats,
    int alphaMode,
    int presentMode
)

Public methods

getAlphaMode

Added in 1.0.0-alpha04
public final int getAlphaMode()

getDevice

Added in 1.0.0-alpha04
public final @NonNull GPUDevice getDevice()

The device to use for rendering to the surface.

getFormat

Added in 1.0.0-alpha04
public final int getFormat()

The texture format for the surface.

getHeight

Added in 1.0.0-alpha04
public final int getHeight()

The height of the surface's textures.

getPresentMode

Added in 1.0.0-alpha04
public final int getPresentMode()

getUsage

Added in 1.0.0-alpha04
public final int getUsage()

The allowed usages for the surface's textures.

getViewFormats

Added in 1.0.0-alpha04
public final @NonNull int[] getViewFormats()

getWidth

Added in 1.0.0-alpha04
public final int getWidth()

The width of the surface's textures.

setAlphaMode

Added in 1.0.0-alpha04
public final void setAlphaMode(int value)

setDevice

Added in 1.0.0-alpha04
public final void setDevice(@NonNull GPUDevice value)

The device to use for rendering to the surface.

setFormat

Added in 1.0.0-alpha04
public final void setFormat(int value)

The texture format for the surface.

setHeight

Added in 1.0.0-alpha04
public final void setHeight(int value)

The height of the surface's textures.

setPresentMode

Added in 1.0.0-alpha04
public final void setPresentMode(int value)

setUsage

Added in 1.0.0-alpha04
public final void setUsage(int value)

The allowed usages for the surface's textures.

setViewFormats

Added in 1.0.0-alpha04
public final void setViewFormats(@NonNull int[] value)

setWidth

Added in 1.0.0-alpha04
public final void setWidth(int value)

The width of the surface's textures.