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 alphaMode)
final void

The device to use for rendering to the surface.

final void
setFormat(int format)

The texture format for the surface.

final void
setHeight(int height)

The height of the surface's textures.

final void
setPresentMode(int presentMode)
final void
setUsage(int usage)

The allowed usages for the surface's textures.

final void
setViewFormats(@NonNull int[] viewFormats)
final void
setWidth(int width)

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 alphaMode)

setDevice

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

The device to use for rendering to the surface.

setFormat

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

The texture format for the surface.

setHeight

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

The height of the surface's textures.

setPresentMode

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

setUsage

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

The allowed usages for the surface's textures.

setViewFormats

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

setWidth

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

The width of the surface's textures.