Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/shaders/opengl/glsl_shader_defines.glsl
| /* Cubemap support and fallback implementation declarations. */ | |||||
| #ifdef GPU_ARB_texture_cube_map_array | |||||
| # define textureLod_cubemapArray(tex, co, lod) textureLod(tex, co, lod) | |||||
| #else | |||||
| # define samplerCubeArray sampler2DArray | |||||
| #endif | |||||
| /* Texture format tokens -- Type explicitness required by other Graphics APIs. */ | /* Texture format tokens -- Type explicitness required by other Graphics APIs. */ | ||||
| #define depth2D sampler2D | #define depth2D sampler2D | ||||
| #define depth2DArray sampler2DArray | #define depth2DArray sampler2DArray | ||||
| #define depth2DMS sampler2DMS | #define depth2DMS sampler2DMS | ||||
| #define depth2DMSArray sampler2DMSArray | #define depth2DMSArray sampler2DMSArray | ||||
| #define depthCube samplerCube | #define depthCube samplerCube | ||||
| #define depthCubeArray samplerCubeArray | #define depthCubeArray samplerCubeArray | ||||
| #define depth2DArrayShadow sampler2DArrayShadow | #define depth2DArrayShadow sampler2DArrayShadow | ||||
| Show All 18 Lines | |||||