Blender Git Loki

Git Commits -> Revision a0ae6d7

Revision a0ae6d7 by Mike Erwin (master)
November 9, 2016, 04:53 (GMT)
OpenGL: manage built-in shaders better

As our library of built-in shaders grows, it's important to create, access, and discard them efficiently.

Lookup via GPU_shader_get_builtin is now constant time instead of linear (# of built-in shaders). This is called very often with our new immediate mode.

Creation and discard are unified.

Adding a new shader requires fewer steps.

365 lines shorter :D

Commit Details:

Full Hash: a0ae6d7116c289335a870b5ff5360f896af327ba
Parent Commit: 2b726b0
Lines Changed: +120, -483

Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18 MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2022