GpuTexture .java

com.mojang.renderpearl.api.textures.GpuTexture (interface): members: USAGE_CUBEMAP_COMPATIBLE, USAGE_RENDER_ATTACHMENT, USAGE_TEXTURE_BINDING, Usage.

com.mojang.renderpearl.api.texturesinterface42 linesclientextends UncheckedAutoCloseable956 B

API Surface (0)

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

Fields & Constants (5)

USAGE_COPY_DST
USAGE_COPY_SRC
USAGE_TEXTURE_BINDING
USAGE_RENDER_ATTACHMENT
USAGE_CUBEMAP_COMPATIBLE

Code Graph: Dependencies (2)

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

Full Source

GpuTexture.java42 lines · Minecraft 26.3 · verbatim
1
package com.mojang.renderpearl.api.textures;
2
3
import com.mojang.renderpearl.api.GpuFormat;
4
import com.mojang.renderpearl.util.UncheckedAutoCloseable;
5
import java.lang.annotation.ElementType;
6
import java.lang.annotation.Retention;
7
import java.lang.annotation.RetentionPolicy;
8
import java.lang.annotation.Target;
9
import net.fabricmc.api.EnvType;
10
import net.fabricmc.api.Environment;
11
12
@Environment(EnvType.CLIENT)
13
public interface GpuTexture extends UncheckedAutoCloseable {
14
	int USAGE_COPY_DST = 1;
15
	int USAGE_COPY_SRC = 2;
16
	int USAGE_TEXTURE_BINDING = 4;
17
	int USAGE_RENDER_ATTACHMENT = 8;
18
	int USAGE_CUBEMAP_COMPATIBLE = 16;
19
20
	int getWidth(int mipLevel);
21
22
	int getHeight(int mipLevel);
23
24
	int getDepthOrLayers();
25
26
	int getMipLevels();
27
28
	GpuFormat getFormat();
29
30
	@GpuTexture.Usage int usage();
31
32
	String getLabel();
33
34
	boolean isClosed();
35
36
	@Retention(RetentionPolicy.CLASS)
37
	@Target(ElementType.TYPE_USE)
38
	@Environment(EnvType.CLIENT)
39
	@interface Usage {
40
	}
41
}
42

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