GpuBackend .java

com.mojang.renderpearl.api.device.GpuBackend (interface): members: unloadLibrary, createDevice, createWindow, loadLibrary, getName. imports: Nullable.

com.mojang.renderpearl.api.deviceinterface19 linesclient483 B

API Surface (0)

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

Code Graph: Dependencies (2)

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

Full Source

GpuBackend.java19 lines · Minecraft 26.3 · verbatim
1
package com.mojang.renderpearl.api.device;
2
3
import net.fabricmc.api.EnvType;
4
import net.fabricmc.api.Environment;
5
import org.jspecify.annotations.Nullable;
6
7
@Environment(EnvType.CLIENT)
8
public interface GpuBackend {
9
	String getName();
10
11
	void loadLibrary() throws BackendCreationException;
12
13
	void unloadLibrary();
14
15
	long createWindow(@Nullable String title, int width, int height, long flags);
16
17
	GpuDevice createDevice(GpuDebugOptions debugOptions) throws BackendCreationException;
18
}
19

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