Table of Contents

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 = 1

The DirectX 11 / DXBC profile (MGFX profile byte 1).

DirectX12 = 2

The DirectX 12 / DXIL profile. Value 2 matches real MonoGame 3.8.5's own DirectX12ShaderProfile (confirmed against its source: base("DirectX_12", 2)).

OpenGL = 0

The OpenGL/GLSL profile (MGFX profile byte 0).

Vulkan = 80

The Vulkan / SPIR-V profile. Value 80 matches real MonoGame 3.8.5's own VulkanShaderProfile (confirmed against its source, not guessed) — an earlier placeholder value of 3 was wrong.