Navigation
- API > API/Runtime > API/Runtime/RHI
-
update LegacyShaderPlatform when the below changes
| |
|
| Name |
EShaderPlatform |
| Type |
enum |
| Header File |
/Engine/Source/Runtime/RHI/Public/RHIShaderPlatform.h |
| Include Path |
#include "RHIShaderPlatform.h" |
Syntax
enum EShaderPlatform
{
SP_PCD3D_SM5 = 0,
SP_METAL_ES3_1_IOS = 11,
SP_METAL_SM5_IOS = 12,
SP_PCD3D_ES3_1 = 14,
SP_OPENGL_PCES3_1 = 15,
SP_METAL_SM5 = 16,
SP_VULKAN_PCES3_1 = 17,
SP_VULKAN_SM5 = 20,
SP_VULKAN_ES3_1_ANDROID = 21,
SP_METAL_ES3_1 = 22,
SP_OPENGL_ES3_1_ANDROID = 24,
SP_METAL_ES3_1_TVOS = 30,
SP_METAL_SM5_TVOS = 31,
SP_StaticPlatform_First = 32,
SP_StaticPlatform_Last = (SP_StaticPlatform_First + 16 - 1),
SP_VULKAN_SM5_ANDROID = SP_StaticPlatform_Last + 1,
SP_PCD3D_SM6 = SP_StaticPlatform_Last + 2,
SP_VULKAN_SM6 = SP_StaticPlatform_Last + 4,
SP_METAL_SM6 = SP_StaticPlatform_Last + 5,
SP_METAL_SIM = SP_StaticPlatform_Last + 6,
SP_CUSTOM_PLATFORM_FIRST,
SP_CUSTOM_PLATFORM_LAST = (SP_CUSTOM_PLATFORM_FIRST + 100),
SP_NumPlatforms,
SP_NumBits = 16,
}
Values
| Name |
Remarks |
| SP_PCD3D_SM5 |
|
| SP_METAL_ES3_1_IOS |
|
| SP_METAL_SM5_IOS |
|
| SP_PCD3D_ES3_1 |
|
| SP_OPENGL_PCES3_1 |
|
| SP_METAL_SM5 |
|
| SP_VULKAN_PCES3_1 |
|
| SP_VULKAN_SM5 |
|
| SP_VULKAN_ES3_1_ANDROID |
|
| SP_METAL_ES3_1 |
|
| SP_OPENGL_ES3_1_ANDROID |
|
| SP_METAL_ES3_1_TVOS |
|
| SP_METAL_SM5_TVOS |
|
| SP_StaticPlatform_First |
|
| SP_StaticPlatform_Last |
Pull in the extra shader platform definitions from platform extensions. |
| SP_VULKAN_SM5_ANDROID |
Add new platforms below this line, starting from (SP_StaticPlatform_Last + 1) |
| SP_PCD3D_SM6 |
|
| SP_VULKAN_SM6 |
|
| SP_METAL_SM6 |
|
| SP_METAL_SIM |
|
| SP_CUSTOM_PLATFORM_FIRST |
|
| SP_CUSTOM_PLATFORM_LAST |
|
| SP_NumPlatforms |
|
| SP_NumBits |
|