Blender Git Commit Log

Git Commits -> Revision a1f9eeb

Revision a1f9eeb by Clément Foucault (master)
June 2, 2020, 21:44 (GMT)
DRW: Remove automatic bind locations and use hardcoded locations for textures

This cleanup use the recent changes in shader interface to allow querying
the binding location a texture should use.

This should aleviate all issue we have with texture state change recompiling
the shaders at drawtime.

All binds are now treated like persistent binds and will stick until a new
shading group bind a different shader. The only difference is that you can
still change it with a new subgroup or same shader shgroup.

Since unbinding can be heavy we only do it when using `--debug-gpu`.

Commit Details:

Full Hash: a1f9eebc0b5f0e9a5683ecfcb0e79bac74d1ca14
Parent Commit: 47eccac
Lines Changed: +120, -272

8 Modified Paths:

/source/blender/draw/intern/draw_manager.c (+0, -3) (Diff)
/source/blender/draw/intern/draw_manager.h (+16, -20) (Diff)
/source/blender/draw/intern/draw_manager_data.c (+31, -14) (Diff)
/source/blender/draw/intern/draw_manager_exec.c (+21, -196) (Diff)
/source/blender/gpu/GPU_shader.h (+4, -2) (Diff)
/source/blender/gpu/GPU_texture.h (+2, -1) (Diff)
/source/blender/gpu/intern/gpu_shader.c (+14, -28) (Diff)
/source/blender/gpu/intern/gpu_texture.c (+32, -8) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021