Blender Git Loki

Git Commits -> Revision eafec6d

Revision eafec6d by Clément Foucault (master)
September 18, 2018, 12:18 (GMT)
GPUShader: Manually validate sampler count

This happens on NVidia GPUs, using more textures than the maximum allowed
by the gl will NOT trigger a linking issue (maybe because of bindless
texture implementation?).

So in this case we manually count the number of samplers per shader stage
and compare it against the GL limit. We discard the shader if the sampler
count is too high. This shows the user something is wrong with the shader.

Commit Details:

Full Hash: eafec6d4f72b05c389576358b9e1d0ebd87cf174
Parent Commit: bf2a54b
Lines Changed: +119, -6

3 Modified Paths:

/source/blender/gpu/GPU_extensions.h (+3, -0) (Diff)
/source/blender/gpu/intern/gpu_codegen.c (+93, -2) (Diff)
/source/blender/gpu/intern/gpu_extensions.c (+23, -4) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021