-
-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathOptions.cs
More file actions
38 lines (28 loc) · 1.51 KB
/
Options.cs
File metadata and controls
38 lines (28 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// MonoGame - Copyright (C) The MonoGame Team
// This file is subject to the terms and conditions defined in
// file 'LICENSE.txt', which is part of this source code package.
// Copyright (C)2022 Nick Kastellanos
using System.Collections.Generic;
using Microsoft.Xna.Framework.Content.Pipeline;
using Microsoft.Xna.Framework.Content.Pipeline.EffectCompiler;
using Microsoft.Xna.Framework.Graphics;
namespace EffectCompiler
{
public class Options
{
[CommandLineParser.Required]
public string SourceFile;
[CommandLineParser.Required]
public string OutputFile = string.Empty;
[CommandLineParser.Name("Platform", "\t - Specify the shader target Platform. Allowed values: (Windows,WindowsStoreApp,DesktopGL,Android,iOS,BlazorGL).")]
public TargetPlatform Platform = (TargetPlatform)(-1);
[CommandLineParser.Name("Backend", "\t - Specify the shader target Backend. Allowed values: (DirectX11,OpenGL).")]
public List<GraphicsBackend> Backend = new List<GraphicsBackend>();
[CommandLineParser.Name("Profile", "\t - Specify the shader target GraphicsProfile. Allowed values: (Reach, HiDef)")]
public GraphicsProfile Profile = GraphicsProfile.Reach;
[CommandLineParser.Name("Config", "\t - BuildConfiguration. Set to 'Debug' to include extra debug information in the compiled effect.")]
public string Config;
[CommandLineParser.Name("Defines", "\t - Semicolon-delimited define assignments")]
public string Defines;
}
}