SurfaceConfiguration
public final class SurfaceConfiguration
A descriptor for configuring a surface.
Summary
Public constructors |
|---|
SurfaceConfiguration( |
Public methods |
|
|---|---|
final int |
|
final @NonNull GPUDevice |
The device that will be used to render to the surface. |
final int |
The preferred texture format for the surface's textures. |
final int |
The height of the surface's textures. |
final int |
|
final int |
getUsage()The texture usage flags for textures created by the surface. |
final @NonNull int[] |
|
final int |
getWidth()The width of the surface's textures. |
final void |
setAlphaMode(int alphaMode) |
final void |
The device that will be used to render to the surface. |
final void |
setFormat(int format)The preferred texture format for the surface's textures. |
final void |
setHeight(int height)The height of the surface's textures. |
final void |
setPresentMode(int presentMode) |
final void |
setUsage(int usage)The texture usage flags for textures created by the surface. |
final void |
setViewFormats(@NonNull int[] viewFormats) |
final void |
setWidth(int width)The width of the surface's textures. |
Public constructors
SurfaceConfiguration
public SurfaceConfiguration(
@NonNull GPUDevice device,
int width,
int height,
int format,
int usage,
@NonNull int[] viewFormats,
int alphaMode,
int presentMode
)
Public methods
getDevice
public final @NonNull GPUDevice getDevice()
The device that will be used to render to the surface.
getFormat
public final int getFormat()
The preferred texture format for the surface's textures.
getUsage
public final int getUsage()
The texture usage flags for textures created by the surface.
setDevice
public final void setDevice(@NonNull GPUDevice device)
The device that will be used to render to the surface.
setFormat
public final void setFormat(int format)
The preferred texture format for the surface's textures.
setHeight
public final void setHeight(int height)
The height of the surface's textures.
setUsage
public final void setUsage(int usage)
The texture usage flags for textures created by the surface.
setWidth
public final void setWidth(int width)
The width of the surface's textures.