Rasagar/Library/PackageCache/com.unity.render-pipelines.core/ShaderLibrary/FoveatedRenderingKeywords.hlsl

19 lines
697 B
HLSL
Raw Normal View History

2024-08-26 13:07:20 -07:00
#ifndef UNITY_FOVEATED_RENDERING_KEYWORDS_INCLUDED
#define UNITY_FOVEATED_RENDERING_KEYWORDS_INCLUDED
#if (!defined(UNITY_COMPILER_DXC) && (defined(UNITY_PLATFORM_OSX) || defined(UNITY_PLATFORM_IOS) || defined(UNITY_PLATFORM_VISIONOS))) || defined(SHADER_API_PS5)
#define SUPPORTS_FOVEATED_RENDERING_NON_UNIFORM_RASTER 1
// On Metal Foveated Rendering is currently not supported with DXC
#pragma warning (disable : 3568) // unknown pragma ignored
#pragma never_use_dxc metal
#pragma dynamic_branch _ _FOVEATED_RENDERING_NON_UNIFORM_RASTER
#pragma warning (default : 3568) // restore unknown pragma ignored
#endif
#endif // UNITY_FOVEATED_RENDERING_KEYWORDS_INCLUDED