ShaderProfile¶
-
class
ShaderProfile
: System.Object -
ShaderProfile
OpenGL
-
ShaderProfile
DirectX_11
-
readonly System.Collections.Generic.IEnumerable<ShaderProfile>
All
Returns all the loaded shader profiles.
-
readonly string
Name
Returns the name of the shader profile.
-
readonly byte
FormatId
Returns the format identifier used in the MGFX file format.
-
public ShaderProfile
ForPlatform
(string platform) Returns the correct profile for the named platform or null if no supporting profile is found.
Parameters: - platform (string) –
-
public ShaderProfile
FromName
(string name) Returns the profile by name or null if no match is found.
Parameters: - name (string) –
-
abstract void
AddMacros
(System.Collections.Generic.Dictionary<String, String> macros) Parameters: - String> macros (System.Collections.Generic.Dictionary<String,) –
-
abstract void
ValidateShaderModels
(PassInfo pass) Parameters: - pass (TwoMGFX.PassInfo) –
-
abstract TwoMGFX.ShaderData
CreateShader
(ShaderInfo shaderInfo, string shaderFunction, string shaderProfile, bool isVertexShader, TwoMGFX.EffectObject effect, ref string errorsAndWarnings) Parameters: - shaderInfo (TwoMGFX.ShaderInfo) –
- shaderFunction (string) –
- shaderProfile (string) –
- isVertexShader (bool) –
- effect (TwoMGFX.EffectObject) –
- (ref) errorsAndWarnings (string) –
-
abstract bool
Supports
(string platform) Parameters: - platform (string) –
-
ShaderProfile