Class FrontendGpuSurface
java.lang.Object
com.mojang.renderpearl.frontend.FrontendGpuSurface
- All Implemented Interfaces:
GpuSurface, UncheckedAutoCloseable, AutoCloseable
-
Nested Class Summary
Nested classes/interfaces inherited from interface GpuSurface
GpuSurface.Configuration, GpuSurface.PresentMode -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final GpuSurfaceBackendprivate Optional<GpuSurface.Configuration> private booleanprivate boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidblitFromTexture(CommandEncoder commandEncoder, GpuTextureView textureView) voidclose()voidconfigure(GpuSurface.Configuration config) booleanbooleanvoidpresent()
-
Field Details
-
backend
-
hasImageAcquired
private boolean hasImageAcquired -
hasBlittedTexture
private boolean hasBlittedTexture -
currentConfiguration
-
-
Constructor Details
-
FrontendGpuSurface
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceUncheckedAutoCloseable
-
configure
- Specified by:
configurein interfaceGpuSurface- Throws:
SurfaceException
-
currentConfiguration
- Specified by:
currentConfigurationin interfaceGpuSurface
-
supportedPresentModes
- Specified by:
supportedPresentModesin interfaceGpuSurface
-
isSuboptimal
public boolean isSuboptimal()- Specified by:
isSuboptimalin interfaceGpuSurface
-
isAcquired
public boolean isAcquired()- Specified by:
isAcquiredin interfaceGpuSurface
-
acquireNextTexture
- Specified by:
acquireNextTexturein interfaceGpuSurface- Throws:
SurfaceException
-
blitFromTexture
- Specified by:
blitFromTexturein interfaceGpuSurface
-
present
public void present()- Specified by:
presentin interfaceGpuSurface
-