GPUSurfaceCapabilities
public final class GPUSurfaceCapabilities
A structure containing the presentation capabilities of a surface for a given adapter.
Summary
Public constructors |
|---|
GPUSurfaceCapabilities( |
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
GPUSurfaceCapabilities
public GPUSurfaceCapabilities(
int usages,
@NonNull int[] formats,
@NonNull int[] presentModes,
@NonNull int[] alphaModes
)
Public methods
getFormats
public final @NonNull int[] getFormats()
An array of supported texture formats for the surface.
getUsages
public final int getUsages()
The supported texture usage flags for textures created from the surface.
setFormats
public final void setFormats(@NonNull int[] formats)
An array of supported texture formats for the surface.
setPresentModes
public final void setPresentModes(@NonNull int[] presentModes)
setUsages
public final void setUsages(int usages)
The supported texture usage flags for textures created from the surface.