GPU: GLSL C++ stubs: Add support for depth and buffer sampler fetch

This commit is contained in:
Clément Foucault
2024-11-08 00:28:59 +01:00
parent 0a3008172b
commit 4416e27b14

View File

@@ -523,6 +523,16 @@ using samplerCubeArray = SamplerBase<double, 2, true, true>;
using isamplerCubeArray = SamplerBase<int, 2, true, true>;
using usamplerCubeArray = SamplerBase<uint, 2, true, true>;
using depth2D = sampler2D;
using depth2DArray = sampler2DArray;
using depthCube = samplerCube;
using depthCubeArray = samplerCubeArray;
/* Sampler Buffers do not have LOD. */
float4 texelFetch(samplerBuffer, int) RET;
int4 texelFetch(isamplerBuffer, int) RET;
uint4 texelFetch(usamplerBuffer, int) RET;
/** \} */
/* -------------------------------------------------------------------- */