DepthStencilState .java

com.mojang.renderpearl.api.pipeline.DepthStencilState (record, 14 lines): members: depthTest, writeDepth, depthBiasScaleFactor, depthBiasConstant, DEFAULT.

com.mojang.renderpearl.api.pipelinerecord14 linesclient515 B

API Surface (1)

record DepthStencilState(CompareOp depthTest, boolean writeDepth, float depthBiasScaleFactor, float depthBiasConstant)

Fields & Constants (1)

DEFAULT

Code Graph: Dependencies (1)

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

Full Source

DepthStencilState.java14 lines · Minecraft 26.3 · verbatim
1
package com.mojang.renderpearl.api.pipeline;
2
3
import net.fabricmc.api.EnvType;
4
import net.fabricmc.api.Environment;
5
6
@Environment(EnvType.CLIENT)
7
public record DepthStencilState(CompareOp depthTest, boolean writeDepth, float depthBiasScaleFactor, float depthBiasConstant) {
8
	public static final DepthStencilState DEFAULT = new DepthStencilState(CompareOp.GREATER_THAN_OR_EQUAL, true);
9
10
	public DepthStencilState(final CompareOp depthTest, final boolean depthWrite) {
11
		this(depthTest, depthWrite, 0.0F, 0.0F);
12
	}
13
}
14

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