GPUSurfaceConfiguration
public final class GPUSurfaceConfiguration
Describes the configuration for a surface.
Summary
Nested types |
|---|
public final class GPUSurfaceConfiguration.BuilderBuilder for |
Public constructors |
|---|
GPUSurfaceConfiguration( |
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 |
getUsage()The allowed usages for the surface's textures. |
final @NonNull int[] |
|
final int |
getWidth()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
public GPUSurfaceConfiguration(
@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 to use for rendering to the surface.
getUsage
public final int getUsage()
The allowed usages for the surface's textures.
setDevice
public final void setDevice(@NonNull GPUDevice value)
The device to use for rendering to the surface.
setFormat
public final void setFormat(int value)
The texture format for the surface.
setHeight
public final void setHeight(int value)
The height of the surface's textures.
setUsage
public final void setUsage(int value)
The allowed usages for the surface's textures.
setWidth
public final void setWidth(int value)
The width of the surface's textures.