Table of Contents

Class ShaderProfile

Namespace
MonoGame.Effect
Assembly
MonoGame.Framework.Content.Pipeline.dll
[TypeConverter(typeof(ShaderProfile.StringConverter))]
public abstract class ShaderProfile
Inheritance
ShaderProfile
Inherited Members

Constructors

ShaderProfile(string, byte)

protected ShaderProfile(string name, byte formatId)

Parameters

name string
formatId byte

Fields

DirectX_11

public static readonly ShaderProfile DirectX_11

Field Value

ShaderProfile

OpenGL

public static readonly ShaderProfile OpenGL

Field Value

ShaderProfile

Vulkan

public static readonly ShaderProfile Vulkan

Field Value

ShaderProfile

Properties

All

Returns all the loaded shader profiles.

public static IEnumerable<ShaderProfile> All { get; }

Property Value

IEnumerable<ShaderProfile>

FormatId

Returns the format identifier used in the MGFX file format.

public byte FormatId { get; }

Property Value

byte

Name

Returns the name of the shader profile.

public string Name { get; }

Property Value

string

Methods

FromName(string)

Returns the profile by name or null if no match is found.

public static ShaderProfile FromName(string name)

Parameters

name string

Returns

ShaderProfile

GetProfileForPlatform(TargetPlatform)

public static ShaderProfile GetProfileForPlatform(TargetPlatform platform)

Parameters

platform TargetPlatform

Returns

ShaderProfile

ParseShaderModel(string, Regex, out int, out int)

protected static void ParseShaderModel(string text, Regex regex, out int major, out int minor)

Parameters

text string
regex Regex
major int
minor int