EShaderPlatform

: update _LegacyShaderPlatform_ when the below changes

Windows
MacOS
Linux

Syntax

enum EShaderPlatform
{
    SP_PCD3D_SM5               = 0,
    SP_OPENGL_SM4              = 1,
    SP_PS4                     = 2,
    SP_OPENGL_PCES2            = 3,
    SP_XBOXONE_D3D12           = 4,
    SP_PCD3D_SM4               = 5,
    SP_OPENGL_SM5              = 6,
    SP_PCD3D_ES2               = 7,
    SP_OPENGL_ES2_ANDROID      = 8,
    SP_OPENGL_ES2_WEBGL        = 9,
    SP_OPENGL_ES2_IOS          = 10,
    SP_METAL                   = 11,
    SP_METAL_MRT               = 12,
    SP_OPENGL_ES31_EXT         = 13,
    SP_PCD3D_ES3_1             = 14,
    SP_OPENGL_PCES3_1          = 15,
    SP_METAL_SM5               = 16,
    SP_VULKAN_PCES3_1          = 17,
    SP_METAL_SM5_NOTESS        = 18,
    SP_VULKAN_SM4              = 19,
    SP_VULKAN_SM5              = 20,
    SP_VULKAN_ES3_1_ANDROID    = 21,
    SP_METAL_MACES3_1          = 22,
    SP_METAL_MACES2            = 23,
    SP_OPENGL_ES3_1_ANDROID    = 24,
    SP_SWITCH                  = 25,
    SP_SWITCH_FORWARD          = 26,
    SP_METAL_MRT_MAC           = 27,
    SP_VULKAN_SM5_LUMIN        = 28,
    SP_VULKAN_ES3_1_LUMIN      = 29,
    SP_METAL_TVOS              = 30,
    SP_METAL_MRT_TVOS          = 31,
    SP_NumPlatforms            = 32,
    SP_NumBits                 = 6,
}

Values

Name

Description

SP_PCD3D_SM5

SP_OPENGL_SM4

SP_PS4

SP_OPENGL_PCES2

Used when running in Feature Level ES2 in OpenGL.

SP_XBOXONE_D3D12

SP_PCD3D_SM4

SP_OPENGL_SM5

SP_PCD3D_ES2

Used when running in Feature Level ES2 in D3D11.

SP_OPENGL_ES2_ANDROID

SP_OPENGL_ES2_WEBGL

SP_OPENGL_ES2_IOS

SP_METAL

SP_METAL_MRT

SP_OPENGL_ES31_EXT

SP_PCD3D_ES3_1

Used when running in Feature Level ES3_1 in D3D11.

SP_OPENGL_PCES3_1

Used when running in Feature Level ES3_1 in OpenGL.

SP_METAL_SM5

SP_VULKAN_PCES3_1

SP_METAL_SM5_NOTESS

SP_VULKAN_SM4

SP_VULKAN_SM5

SP_VULKAN_ES3_1_ANDROID

SP_METAL_MACES3_1

SP_METAL_MACES2

SP_OPENGL_ES3_1_ANDROID

SP_SWITCH

SP_SWITCH_FORWARD

SP_METAL_MRT_MAC

SP_VULKAN_SM5_LUMIN

SP_VULKAN_ES3_1_LUMIN

SP_METAL_TVOS

SP_METAL_MRT_TVOS

SP_NumPlatforms

SP_NumBits

Remarks

: update LegacyShaderPlatform when the below changes

References

Module

RHI

Header

Runtime/RHI/Public/RHIDefinitions.h

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback