record Sampler(int samplerIndex) implements Uniform {
16
}
17
18
@Environment(EnvType.CLIENT)
19
record Ubo(int blockBinding) implements Uniform {
20
}
21
22
@Environment(EnvType.CLIENT)
23
record Utb(int samplerIndex, GpuFormat format, int texture) implements Uniform {
24
public Utb(final int samplerIndex, final GpuFormat format) {
25
this(samplerIndex, format, GlStateManager._genTexture());
26
}
27
28
@Override
29
public void close() {
30
GlStateManager._deleteTexture(this.texture);
31
}
32
}
33
}
34
Decompiled Minecraft 26.3 source of Uniform (com/mojang/renderpearl/backend/opengl/Uniform.java) with Mojang official mappings, stored verbatim on the site.