Enum MgfxProfile
- Namespace
- ShadowDusk.Core
- Assembly
- ShadowDusk.Core.dll
The profile byte written into the MGFX binary header, identifying the shader backend an
effect was compiled for. These byte values are deliberately NOT the same as
PlatformTarget ordinals (PlatformTarget.DirectX=0, OpenGL=1 vs
MgfxProfile.OpenGL=0, DirectX11=1) — always use these values when writing the
format's profile byte.
public enum MgfxProfile : byte
Fields
DirectX11 = 1The DirectX 11 / DXBC profile (MGFX profile byte 1).
DirectX12 = 2The DirectX 12 / DXIL profile. Value
2matches real MonoGame 3.8.5's ownDirectX12ShaderProfile(confirmed against its source:base("DirectX_12", 2)).OpenGL = 0The OpenGL/GLSL profile (MGFX profile byte 0).
Vulkan = 80The Vulkan / SPIR-V profile. Value
80matches real MonoGame 3.8.5's ownVulkanShaderProfile(confirmed against its source, not guessed) — an earlier placeholder value of3was wrong.