File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -123,6 +123,7 @@ public enum AntiAliasingMethod
123123
124124 public enum DirectXFeature
125125 {
126+ Level /* Default value which gets replaced with what is supported */ ,
126127 Level9_1 ,
127128 Level9_3 ,
128129 Level10_0 ,
@@ -356,8 +357,13 @@ public enum DirectXFeature
356357 [ Default ( "" ) ]
357358 public string ScreenshotPath { get ; set ; }
358359 [ Default ( "" ) ]
359- public string DirectXFeatureLevel { get ; set ; }
360- public bool IsDirectXFeatureLevelIncluded ( DirectXFeature level ) => ( int ) level <= ( int ) Enum . Parse ( typeof ( DirectXFeature ) , "Level" + this . DirectXFeatureLevel ) ;
360+ public string DirectXFeatureLevel
361+ {
362+ get => DirectXFeatureEnum . ToString ( ) . Replace ( "Level" , "" ) ;
363+ set => DirectXFeatureEnum = ( DirectXFeature ) Enum . Parse ( typeof ( DirectXFeature ) , "Level" + value ) ;
364+ }
365+ DirectXFeature DirectXFeatureEnum ;
366+ public bool IsDirectXFeatureLevelIncluded ( DirectXFeature level ) => level <= DirectXFeatureEnum ;
361367 [ Default ( true ) ]
362368 public bool ShadowMapBlur { get ; set ; }
363369 [ Default ( 4 ) ]
You can’t perform that action at this time.
0 commit comments