Blender Git Commits

Blender Git "master" branch commits.

Page: 592 / 5574

September 5, 2020, 15:49 (GMT)
GPUTexture: Change texture creation API

This is to modernize the API:
- Add meaningful name to all textures (except DRW textures).
- Remove unused err_out argument: only used for offscreen python.
- Add mipmap count to creation functions for future changes.
- Clarify the data usage in creation functions.

This is a cleanup commit, there is no functional change.

# Conflicts:
# source/blender/gpu/GPU_texture.h
September 5, 2020, 15:49 (GMT)
Cleanup: GPUTexture: Remove use of GPU_texture_create_nD

Use creation + update function instead.
September 5, 2020, 15:49 (GMT)
GLTexture: Add validation for empty slots before drawing

This is to have better error detection in debug builds.
This is not a replacement for a full check like in renderdoc but it
might catch some issues early on.
September 5, 2020, 15:49 (GMT)
OCIO: Use GPUTexture instead of OpenGL calls and remove gl dependency

Simple cleanup. Part of the Vulkan Port T68990.
September 5, 2020, 15:49 (GMT)
GPUTexture: Implement back 3D texture resize

But this time implement it outside the texture module.
This makes more sense as only the volume textures need this feature.
September 5, 2020, 15:49 (GMT)
BLI: Math: Add equals_v3v3_int
September 5, 2020, 15:49 (GMT)
Cleanup: GPUTexture: Clean framebuffer attachment
September 5, 2020, 15:49 (GMT)
Cleanup: GPUFrameBuffer: Use Texture class instead of gl calls
September 5, 2020, 15:49 (GMT)
GLTexture: Add back texture proxy check

Cleanup the feature itself:
- Check 3D textures size against the correct limit.
- Add check for compressed textures.
September 5, 2020, 15:49 (GMT)
GPUTexture: Add support for samplers

This just add back the support.
This commit also includes a bit of cleanup.

# Conflicts:
# source/blender/gpu/GPU_texture.h
September 5, 2020, 15:49 (GMT)
GPUTexture: GL Backend Isolation

This is a massive cleanup needed for vulkan support T68990. It provides:

- More meaningful enums with conversion functions.
- Less hacky supports of arrays and cubemaps (all considered layered).
- More inline with the stateless design of vulkan and modern GL.
- Methods Fallbacks are using framebuffer functions that are wrapped
instead of implementing inside the texture module.

What is not in there:
- API change.
- Samplers support (breaks a few effects).

# Conflicts:
# source/blender/gpu/GPU_texture.h
September 5, 2020, 15:49 (GMT)
GPUFramebuffer: Encapsulate single attachement clear

This is in preparation of using it to clear single texture.

Also includes minor cleanups about not using tex target in
assert and adding enum operators.
September 5, 2020, 15:49 (GMT)
Cleanup: EEVEE: Use correct array size and use equals_v2v2_int
September 5, 2020, 15:49 (GMT)
GPUTexture: Add skeleton of the new GLTexture class
September 5, 2020, 15:49 (GMT)
GPUTexture: Remove bind to edit calls

This is going to be unecessary after the GPU opengl texture backend refactor.

For now add a save/restore mechanism to leave the state untouched.

Also remove some calls where the caller would bind to particular binding
point and set the shader uniform.
September 5, 2020, 02:19 (GMT)
UI: Masking: Add more transform operators to menu

Also use select tweak params for grabbing points
September 5, 2020, 02:19 (GMT)
UI: Masking: Reorginize mask menu to be more conistent
September 5, 2020, 00:59 (GMT)
New boolean: Fix second example in T79404.

The code to detect non-trivial coplanar intersection sometimes
falsely said there wasn't one. This caused some coplanar intersections
to be missed. Also added a test for this case.
September 4, 2020, 21:32 (GMT)
Fix Cycles redefining some Blender macros

These changes were accidentally copied over from the Cycles repository, remove
them again.
Revision e73c60f by Julian Eisel
September 4, 2020, 19:57 (GMT)
Fix Cycles unsetting most GCC and Clang C++ flags

Caused by f04260d8c679.
Cycles' CMake defines macros with the same name as Blender, which
override the Blender ones. There's however a small difference in the
re-defined `remove_cc_flag()`, the Cycles version only takes one flag at
a time. So I guess Blender's calls to it would only result in the first
flag being removed.
Of course Cycles shouldn't override any Blender macros, but I'll leave
that up to Brecht to fix properly.
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021