mirror of
https://github.com/GTNewHorizons/Angelica.git
synced 2026-11-19 20:09:39 +00:00
SDL GPU backend, TESR Batching/caching API, Tracy Integration (#1993)
This commit is contained in:
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");
|
||||
|
||||
Reference in new issue
Block a user