For example: #if SHADER_TARGET = 500 preprocessor check only passes on versions 5.0.0 or later. You can use it in Shader code to do conditional checks. For example, SHADER_TARGET is 30 when compiling into Shader model 3.0. More info See in Glossary target compilation model (that is, matching #pragma target directive). SHADER_TARGET is defined to a numeric value that matches the Shader A program that runs on the GPU. SHADER_API_MOBILE is defined for all general mobile platforms (GLES, GLES3, METAL).Īdditionally, SHADER_TARGET_GLSL is defined when the target shading language is GLSL (always true for OpenGL/GLES platforms). More info See in Glossary/Mac Metalĭirect3D 11 “feature level 9.x” target for Universal Windows Platform An IAP feature that supports Microsoft’s In App Purchase simulator, which allows you to test IAP purchase flows on devices before publishing your application. Unity defines several preprocessor macros when compiling Shader programs.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |