Shader compiler used to generate player data shader variants.
In Unity, shader programs are written in a variant of HLSL language.
Each [[wiki:PlatformSpecific|platform] supports one or multiple graphics APIs. For example, Vulkan and Direct3D 12 are both supported in Windows.
When building a standalone player, for each supported graphics API, Unity runs a corresponding shader compiler which generates the shader variants and cross-compiles the shader snippet into the shading language natively supported by the graphics API.
See Also: IPreprocessShaders.OnProcessShader, Shader language.
None | Provide a reasonable value for non initialized variables. |
D3D | Compiler used with Direct3D 11 and Direct3D 12 graphics API on Windows platforms. |
GLES20 | Compiler used with OpenGL ES 2.0 and WebGL 1.0 graphics APIs on Android, iOS, Windows and WebGL platforms. |
GLES3x | Compiler used with OpenGL ES 3.x and WebGL 2.0 graphics APIs on Android, iOS, Windows and WebGL platforms. |
PS4 | Compiler used on PlayStation 4. |
XboxOneD3D11 | Compiler used with Direct3D 11 graphics API on XBox One. |
Metal | Compiler used with Metal graphics API on macOS, iOS and tvOS platforms. |
OpenGLCore | Compiler used with OpenGL core graphics API on macOS, Linux and Windows platforms. |
Vulkan | Compiler used with Vulkan graphics API on Android, Linux and Windows platforms. |
Switch | Compiler used on Nintendo Switch. |
XboxOneD3D12 | Compiler used with Direct3D 12 graphics API on XBox One. |
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.