Class ShaderProfile
[TypeConverter(typeof(ShaderProfile.StringConverter))]
public abstract class ShaderProfile
- Inheritance
-
ShaderProfile
- Inherited Members
Constructors
ShaderProfile(string, byte)
protected ShaderProfile(string name, byte formatId)
Parameters
Fields
DirectX_11
public static readonly ShaderProfile DirectX_11
Field Value
OpenGL
public static readonly ShaderProfile OpenGL
Field Value
Vulkan
public static readonly ShaderProfile Vulkan
Field Value
Properties
All
Returns all the loaded shader profiles.
public static IEnumerable<ShaderProfile> All { get; }
Property Value
FormatId
Returns the format identifier used in the MGFX file format.
public byte FormatId { get; }
Property Value
Name
Returns the name of the shader profile.
public string Name { get; }
Property Value
Methods
FromName(string)
Returns the profile by name or null if no match is found.
public static ShaderProfile FromName(string name)
Parameters
namestring
Returns
GetProfileForPlatform(TargetPlatform)
public static ShaderProfile GetProfileForPlatform(TargetPlatform platform)
Parameters
platformTargetPlatform
Returns
ParseShaderModel(string, Regex, out int, out int)
protected static void ParseShaderModel(string text, Regex regex, out int major, out int minor)