public void AppendBlockInstance(BlockInstance blockInstance, Rendering.ShaderType stageType) { List <StageElement> stageElements = GetElementsForStage(stageType); if (stageElements == null) { throw new Exception($"Stage {stageType} is not valid."); } stageElements.Add(new StageElement { BlockInstance = blockInstance }); }
public void AddDefaultBlockInstance(BlockInstance blockInstance) { defaultBlockInstances.Add(blockInstance); }