Пример #1
0
            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
                });
            }
Пример #2
0
 public void AddDefaultBlockInstance(BlockInstance blockInstance)
 {
     defaultBlockInstances.Add(blockInstance);
 }