GpuSurfaceBackend .java

com.mojang.renderpearl.backend.api.GpuSurfaceBackend (interface, 25 lines): members: supportedPresentModes, acquireNextTexture, blitFromTexture, present.

com.mojang.renderpearl.backend.apiinterface25 linesclientextends UncheckedAutoCloseable797 B

API Surface (0)

No public/protected methods detected (fields or constants only).

Code Graph: Dependencies (5)

Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.

Full Source

GpuSurfaceBackend.java25 lines · Minecraft 26.3 · verbatim
1
package com.mojang.renderpearl.backend.api;
2
3
import com.mojang.renderpearl.api.device.GpuSurface;
4
import com.mojang.renderpearl.api.device.SurfaceException;
5
import com.mojang.renderpearl.api.textures.GpuTextureView;
6
import com.mojang.renderpearl.util.UncheckedAutoCloseable;
7
import java.util.Collection;
8
import net.fabricmc.api.EnvType;
9
import net.fabricmc.api.Environment;
10
11
@Environment(EnvType.CLIENT)
12
public interface GpuSurfaceBackend extends UncheckedAutoCloseable {
13
	void configure(GpuSurface.Configuration config) throws SurfaceException;
14
15
	boolean isSuboptimal();
16
17
	void acquireNextTexture() throws SurfaceException;
18
19
	void blitFromTexture(CommandEncoderBackend commandEncoder, GpuTextureView textureView);
20
21
	void present();
22
23
	Collection<GpuSurface.PresentMode> supportedPresentModes();
24
}
25

Decompiled Minecraft 26.3 source of GpuSurfaceBackend (com/mojang/renderpearl/backend/api/GpuSurfaceBackend.java) with Mojang official mappings, stored verbatim on the site.