예제 #1
0
 public TierSettings(TierGraphicsSettings settings, Platform platfrom, GraphicsTier tier)
 {
     BuildTarget = platfrom.PlatformToBuildGroup();
     Tier        = tier;
     Settings    = new TierGraphicsSettingsEditor(settings);
     Automatic   = false;
 }
예제 #2
0
        public void Read(AssetReader reader)
        {
            if (IsReadBuildTargetString(reader.Version))
            {
                string buildTarget = reader.ReadStringAligned();
                BuildTarget = StringToBuildGroup(buildTarget);
            }
            else
            {
                BuildTarget = (BuildTargetGroup)reader.ReadInt32();
            }
            if (IsReadTier(reader.Version))
            {
                Tier = (GraphicsTier)reader.ReadInt32();
            }

            if (IsReadPlatfromSettings(reader.Version))
            {
                PlatformShaderSettings settings = reader.Read <PlatformShaderSettings>();
                Settings = new TierGraphicsSettingsEditor(settings, reader.Version, reader.Flags);
            }
            else
            {
                Settings.Read(reader);
            }

            Automatic = reader.ReadBoolean();
            reader.AlignStream(AlignType.Align4);
        }
예제 #3
0
 public TierSettings(PlatformShaderSettings settings, Platform platfrom, GraphicsTier tier, Version version, TransferInstructionFlags flags)
 {
     BuildTarget = platfrom.PlatformToBuildGroup();
     Tier        = tier;
     Settings    = new TierGraphicsSettingsEditor(settings, version, flags);
     Automatic   = false;
 }