Nenhuma descrição
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

Version.hlsl 885B

123456789
  1. // The old version number system below is deprecated whith Graphic Packages that have move as core package of Unity.
  2. // User should rely on the Macro UNITY_VERSION now to detect which version of Unity is coupled to the current set of pipeline shader
  3. // Example of usage #if UNITY_VERSION >= 202120 to check if the version is above or equal 2021.2
  4. #define SHADER_LIBRARY_VERSION_MAJOR 13
  5. #define SHADER_LIBRARY_VERSION_MINOR 1
  6. #define VERSION_GREATER_EQUAL(major, minor) ((SHADER_LIBRARY_VERSION_MAJOR > major) || ((SHADER_LIBRARY_VERSION_MAJOR == major) && (SHADER_LIBRARY_VERSION_MINOR >= minor)))
  7. #define VERSION_LOWER(major, minor) ((SHADER_LIBRARY_VERSION_MAJOR < major) || ((SHADER_LIBRARY_VERSION_MAJOR == major) && (SHADER_LIBRARY_VERSION_MINOR < minor)))
  8. #define VERSION_EQUAL(major, minor) ((SHADER_LIBRARY_VERSION_MAJOR == major) && (SHADER_LIBRARY_VERSION_MINOR == minor))