Blender Git Loki

Blenderin Git "master"-kehityshaaran kommitit.

Page: 616 / 5574

August 18, 2020, 19:30 (GMT)
Cleanup: GPUState: Remove GPU_state_init()
August 18, 2020, 19:30 (GMT)
GPUState: Use GPU_viewport to set viewport state in GPU_framebuffer

also fix a small issue in GPU_texture_clear.
August 18, 2020, 19:30 (GMT)
GPUState: Port default state to StateManager constructor
August 18, 2020, 19:30 (GMT)
Cleanup: DRW: Use GPUState instead of raw opengl calls

Should not break anything! Huh!
August 18, 2020, 19:30 (GMT)
GPUState: Only apply state before drawing
August 18, 2020, 19:30 (GMT)
Cleanup: GPUState: Remove stack from the state manager and rename it
August 18, 2020, 19:30 (GMT)
GPUState: Remove gpuPushAttr/gpuPopAttr

And use manual save/restore mechanism.

The stack method is not used so much to be considered useful.
August 18, 2020, 19:30 (GMT)
GPUState: Make use of GPUStateStack class

This isolate most GL calls to the GL backend. Still a few remains.
August 18, 2020, 19:30 (GMT)
Cleanup: GPUState: remove double GPU_blend calls
August 18, 2020, 19:30 (GMT)
GPUState: GPU_blend final API renaming

We now use GPU_blend for enabling / disabling blending and explicitly
set the blend equation.
August 18, 2020, 19:30 (GMT)
Cleanup: GPUState: remove use of GPU_blend_set_func
August 18, 2020, 19:30 (GMT)
Cleanup: GPUState: Replace blend func separate by enum
August 18, 2020, 19:30 (GMT)
Cleanup: GPU: Move towards an explicit Blend state

This make use of the GLStateStack functions for:
- `GPU_blend()`
- `GPU_blend_set_func()`
- `GPU_blend_set_func_separate()`

The goal is to unify them using an explicit state setting.
This will remove the need to use obscure blend functions
August 18, 2020, 19:30 (GMT)
GPUState: Add GL backend and state tracking but do not use it

This is just the backend work. It is not plugged in yet because it
needs more external cleanup/refactor.
August 18, 2020, 19:30 (GMT)
Cleanup: GPU: Remove uneeded depth precision getter.

We always use 24bit framebuffers nowadays.
August 18, 2020, 19:30 (GMT)
Cleanup: GPUState: remove float variant of GPU_scissor_get
August 18, 2020, 19:30 (GMT)
GPUShader: Add debug labels

This allow better debugging inside renderdoc.
August 18, 2020, 19:30 (GMT)
GPUShader: Add back vertformat_from_shader()
August 18, 2020, 19:30 (GMT)
GPUShader: Improve auto name

Use macro to get calling function name. Helps debugging shaders.
August 18, 2020, 19:30 (GMT)
GPUShader: Rewrite error printing

Now error printing only display the line related to the error.
We also put char marker if present.

Example:
```
-- Shader Compilation Errors : MAMaterial --

10414 | node_fresnel(, facingnormal, viewposition, tmp34);
| ^
| error: syntax error, unexpected ',', expecting ')'

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