RenderPassBackend .java

com.mojang.renderpearl.backend.api.RenderPassBackend (interface): members: drawIndexedIndirect, multiDrawIndexed, setVertexBuffer, setIndexBuffer, draw.

com.mojang.renderpearl.backend.apiinterface53 linesclient2.0 KB

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

RenderPassBackend.java53 lines · Minecraft 26.3 · verbatim
1
package com.mojang.renderpearl.backend.api;
2
3
import com.mojang.renderpearl.api.buffers.GpuBuffer;
4
import com.mojang.renderpearl.api.buffers.GpuBufferSlice;
5
import com.mojang.renderpearl.api.commands.GpuQueryPool;
6
import com.mojang.renderpearl.api.pipeline.IndexType;
7
import java.nio.ByteBuffer;
8
import java.nio.IntBuffer;
9
import java.util.function.Supplier;
10
import net.fabricmc.api.EnvType;
11
import net.fabricmc.api.Environment;
12
import org.jspecify.annotations.Nullable;
13
import org.lwjgl.PointerBuffer;
14
15
@Environment(EnvType.CLIENT)
16
public interface RenderPassBackend {
17
	void pushDebugGroup(final Supplier<String> label);
18
19
	void popDebugGroup();
20
21
	void setPipeline(final BackendRenderPipeline pipeline);
22
23
	void setUniform(final int index, final @Nullable Object value);
24
25
	void pushConstants(ByteBuffer value);
26
27
	void enableScissor(final int x, final int y, final int width, final int height);
28
29
	void disableScissor();
30
31
	void setVertexBuffer(final int slot, final @Nullable GpuBufferSlice vertexBuffer);
32
33
	void setIndexBuffer(final GpuBuffer indexBuffer, final IndexType indexType);
34
35
	void drawIndexed(final int indexCount, final int instanceCount, final int firstIndex, final int vertexOffset, final int firstInstance);
36
37
	void multiDrawIndexed(final IntBuffer drawParameters, final int instanceCount, final int firstInstance, final int drawCount);
38
39
	void multiDrawIndexed(final PointerBuffer firstIndexOffsets, final IntBuffer indexCounts, final IntBuffer vertexOffsets, final int drawCount);
40
41
	void drawIndexedIndirect(final GpuBufferSlice commands, final int drawCount);
42
43
	void draw(final int vertexCount, final int instanceCount, final int firstVertex, final int firstInstance);
44
45
	void multiDraw(final IntBuffer drawParameters, final int instanceCount, final int firstInstance, final int drawCount);
46
47
	void multiDraw(final IntBuffer firstVertices, final IntBuffer vertexCounts, final int drawCount);
48
49
	void drawIndirect(final GpuBufferSlice commands, final int drawCount);
50
51
	void writeTimestamp(GpuQueryPool pool, int index);
52
}
53

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