Fix T103313: Resolve shader compilation failures when enabling GPU workarounds.
A number of paths resulted in compilation errors after porting EEVEE to use Create-Info. Namely the fallback path for cubemap support. A number of other strict compilation failures regarding format comparison also required fixing when this mode is enabled. Authored by Apple: Michael Parkin-White Ref T96261 Reviewed By: fclem Maniphest Tasks: T96261, T103313 Differential Revision: https://developer.blender.org/D16819
This commit is contained in:
@@ -1,12 +1,7 @@
|
||||
|
||||
#ifdef GPU_ARB_texture_cube_map_array
|
||||
|
||||
# define textureLod_cubemapArray(tex, co, lod) textureLod(tex, co, lod)
|
||||
|
||||
#else
|
||||
|
||||
/* Fallback implementation for hardware not supporting cubemap arrays. */
|
||||
# define samplerCubeArray sampler2DArray
|
||||
/* Fallback implementation for hardware not supporting cubemap arrays.
|
||||
* `samplerCubeArray` fallback declaration as sampler2DArray in `glsl_shader_defines.glsl`*/
|
||||
#ifndef GPU_ARB_texture_cube_map_array
|
||||
|
||||
float cubemap_face_index(vec3 P)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user