SDL GPU backend, TESR Batching/caching API, Tracy Integration (#1993)

This commit is contained in:
Jason Mitchell authored and GitHub committed 2026-08-08 15:53:58 -07:00
1 parent 413df76ad4
commit 8da561d3b6
647 files changed
+60152 -5331

No files matched your search

@@ -12,6 +12,7 @@ public class GbufferPrograms {
private static boolean entities;
private static boolean blockEntities;
private static boolean outline;
private static boolean entityLoop;
private static Runnable phaseChangeListener;
static {
@@ -32,6 +33,29 @@ public class GbufferPrograms {
entities = true;
}
public static void beginEntityLoop() {
entityLoop = true;
setPhase(WorldRenderingPhase.ENTITIES);
setBlockEntityDefaults();
}
public static void endEntityLoop() {
entityLoop = false;
setPhase(WorldRenderingPhase.NONE);
}
public static boolean isEntityLoopActive() {
return entityLoop;
}
public static void onEntityRenderBoundary() {
final WorldRenderingPipeline pipeline = Iris.getPipelineManager().getPipelineNullable();
if (pipeline != null) {
pipeline.onEntityRenderBoundary();
}
}
public static void endEntities() {
if (!entities) {
throw new IllegalStateException("GbufferPrograms in weird state, tried to call endEntities when entities = false");