예제 #1
0
        public CompositorInputSlot(string name, CompositorInputSlotImportance importance, int number, CompositorSlotType type)
        {
            Name = name;
            SlotImportance = importance;
            SlotNumber = number;

            SlotType = type;

            IsConnected = false;
        }
예제 #2
0
        public CompositorOutputSlot(string name, int number, Texture2D output, CompositorSlotType type)
        {
            Name = name;
            SlotNumber = number;
            SlotTexture = output;
            SlotType = type;

            if ((SlotType == CompositorSlotType.Texture || SlotType == CompositorSlotType.ValueTexture) && SlotTexture == null)
                Logger.Log.AddLogEntry(LogLevel.Error, "CompositorInputSlot: " + Name, FreezingArcher.Core.Status.BadArgument);

            IsConnected = false;
        }