Brak opisu
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

FoveatedRenderingKeywords.hlsl 697B

123456789101112131415161718
  1. #ifndef UNITY_FOVEATED_RENDERING_KEYWORDS_INCLUDED
  2. #define UNITY_FOVEATED_RENDERING_KEYWORDS_INCLUDED
  3. #if (!defined(UNITY_COMPILER_DXC) && (defined(UNITY_PLATFORM_OSX) || defined(UNITY_PLATFORM_IOS) || defined(UNITY_PLATFORM_VISIONOS))) || defined(SHADER_API_PS5)
  4. #define SUPPORTS_FOVEATED_RENDERING_NON_UNIFORM_RASTER 1
  5. // On Metal Foveated Rendering is currently not supported with DXC
  6. #pragma warning (disable : 3568) // unknown pragma ignored
  7. #pragma never_use_dxc metal
  8. #pragma dynamic_branch _ _FOVEATED_RENDERING_NON_UNIFORM_RASTER
  9. #pragma warning (default : 3568) // restore unknown pragma ignored
  10. #endif
  11. #endif // UNITY_FOVEATED_RENDERING_KEYWORDS_INCLUDED