@@ -16,19 +16,19 @@ class Program
16
16
/// <summary>
17
17
/// The mapping of available samples to choose from.
18
18
/// </summary>
19
- private static readonly ( Type ShaderType , Win32Application Application ) [ ] Samples = new ( Type , Win32Application ) [ ]
19
+ private static readonly ( string ShaderName , Win32Application Application ) [ ] Samples = new ( string , Win32Application ) [ ]
20
20
{
21
- ( typeof ( HelloWorld ) , new SwapChainApplication < HelloWorld > ( static time => new ( ( float ) time . TotalSeconds ) ) ) ,
22
- ( typeof ( FourColorGradient ) , new SwapChainApplication < FourColorGradient > ( static time => new ( ( float ) time . TotalSeconds ) ) ) ,
23
- ( typeof ( ColorfulInfinity ) , new SwapChainApplication < ColorfulInfinity > ( static time => new ( ( float ) time . TotalSeconds ) ) ) ,
24
- ( typeof ( FractalTiling ) , new SwapChainApplication < FractalTiling > ( static time => new ( ( float ) time . TotalSeconds ) ) ) ,
25
- ( typeof ( TwoTiledTruchet ) , new SwapChainApplication < TwoTiledTruchet > ( static time => new ( ( float ) time . TotalSeconds ) ) ) ,
26
- ( typeof ( MengerJourney ) , new SwapChainApplication < MengerJourney > ( static time => new ( ( float ) time . TotalSeconds ) ) ) ,
27
- ( typeof ( Octagrams ) , new SwapChainApplication < Octagrams > ( static time => new ( ( float ) time . TotalSeconds ) ) ) ,
28
- ( typeof ( ProteanClouds ) , new SwapChainApplication < ProteanClouds > ( static time => new ( ( float ) time . TotalSeconds ) ) ) ,
29
- ( typeof ( ExtrudedTruchetPattern ) , new SwapChainApplication < ExtrudedTruchetPattern > ( static time => new ( ( float ) time . TotalSeconds ) ) ) ,
30
- ( typeof ( PyramidPattern ) , new SwapChainApplication < PyramidPattern > ( static time => new ( ( float ) time . TotalSeconds ) ) ) ,
31
- ( typeof ( TriangleGridContouring ) , new SwapChainApplication < TriangleGridContouring > ( static time => new ( ( float ) time . TotalSeconds ) ) )
21
+ ( nameof ( HelloWorld ) , new SwapChainApplication < HelloWorld > ( static time => new ( ( float ) time . TotalSeconds ) ) ) ,
22
+ ( nameof ( FourColorGradient ) , new SwapChainApplication < FourColorGradient > ( static time => new ( ( float ) time . TotalSeconds ) ) ) ,
23
+ ( nameof ( ColorfulInfinity ) , new SwapChainApplication < ColorfulInfinity > ( static time => new ( ( float ) time . TotalSeconds ) ) ) ,
24
+ ( nameof ( FractalTiling ) , new SwapChainApplication < FractalTiling > ( static time => new ( ( float ) time . TotalSeconds ) ) ) ,
25
+ ( nameof ( TwoTiledTruchet ) , new SwapChainApplication < TwoTiledTruchet > ( static time => new ( ( float ) time . TotalSeconds ) ) ) ,
26
+ ( nameof ( MengerJourney ) , new SwapChainApplication < MengerJourney > ( static time => new ( ( float ) time . TotalSeconds ) ) ) ,
27
+ ( nameof ( Octagrams ) , new SwapChainApplication < Octagrams > ( static time => new ( ( float ) time . TotalSeconds ) ) ) ,
28
+ ( nameof ( ProteanClouds ) , new SwapChainApplication < ProteanClouds > ( static time => new ( ( float ) time . TotalSeconds ) ) ) ,
29
+ ( nameof ( ExtrudedTruchetPattern ) , new SwapChainApplication < ExtrudedTruchetPattern > ( static time => new ( ( float ) time . TotalSeconds ) ) ) ,
30
+ ( nameof ( PyramidPattern ) , new SwapChainApplication < PyramidPattern > ( static time => new ( ( float ) time . TotalSeconds ) ) ) ,
31
+ ( nameof ( TriangleGridContouring ) , new SwapChainApplication < TriangleGridContouring > ( static time => new ( ( float ) time . TotalSeconds ) ) )
32
32
} ;
33
33
34
34
static void Main ( )
@@ -43,7 +43,7 @@ static void Main()
43
43
44
44
for ( int i = 0 ; i < Samples . Length ; i ++ )
45
45
{
46
- Console . WriteLine ( $ "{ i } : { Samples [ i ] . ShaderType . Name } ") ;
46
+ Console . WriteLine ( $ "{ i } : { Samples [ i ] . ShaderName } ") ;
47
47
}
48
48
49
49
Console . WriteLine ( $ "{ Samples . Length } +: Exit (Use Escape, 'Q', or Alt + F4 to exit a sample once chosen)") ;
@@ -58,7 +58,7 @@ static void Main()
58
58
if ( index >= 0 && index < Samples . Length )
59
59
{
60
60
Console . WriteLine ( ) ;
61
- Console . WriteLine ( $ "Starting { Samples [ index ] . ShaderType . Name } ...") ;
61
+ Console . WriteLine ( $ "Starting { Samples [ index ] . ShaderName } ...") ;
62
62
63
63
Win32ApplicationRunner . Run ( Samples [ index ] . Application ) ;
64
64
}
0 commit comments