mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2024-11-14 14:33:57 +01:00
All or nothing?
- Actually add PipelineCompilers into the ALL list so they get deleted when uber components need updating
This commit is contained in:
parent
40577420d5
commit
efb68dc776
@ -1,5 +1,6 @@
|
|||||||
package dev.engine_room.flywheel.backend.compile;
|
package dev.engine_room.flywheel.backend.compile;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@ -30,7 +31,7 @@ import dev.engine_room.flywheel.lib.util.ResourceUtil;
|
|||||||
import net.minecraft.resources.ResourceLocation;
|
import net.minecraft.resources.ResourceLocation;
|
||||||
|
|
||||||
public final class PipelineCompiler {
|
public final class PipelineCompiler {
|
||||||
private static final List<PipelineCompiler> ALL = List.of();
|
private static final List<PipelineCompiler> ALL = new ArrayList<>();
|
||||||
|
|
||||||
private static final Compile<PipelineProgramKey> PIPELINE = new Compile<>();
|
private static final Compile<PipelineProgramKey> PIPELINE = new Compile<>();
|
||||||
|
|
||||||
@ -44,6 +45,7 @@ public final class PipelineCompiler {
|
|||||||
|
|
||||||
public PipelineCompiler(CompilationHarness<PipelineProgramKey> harness) {
|
public PipelineCompiler(CompilationHarness<PipelineProgramKey> harness) {
|
||||||
this.harness = harness;
|
this.harness = harness;
|
||||||
|
ALL.add(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
public GlProgram get(InstanceType<?> instanceType, ContextShader contextShader, Material material) {
|
public GlProgram get(InstanceType<?> instanceType, ContextShader contextShader, Material material) {
|
||||||
|
Loading…
Reference in New Issue
Block a user