de947c5c50
GPUTexture: Improve debug print
2020-08-05 02:26:44 +02:00
83d6290800
Cleanup: remove trailing space, newlines at eof
2020-08-03 15:14:02 +10:00
6a444830a3
GPU: Convert gpu_matrix.c to C++
2020-08-02 02:10:22 +02:00
6941e27f4a
GPU: Convert gpu_shader_interface.c to C++
2020-08-02 02:10:22 +02:00
901ee66ea1
Cleanup: use term init instead of initialize/initialise
...
The abbreviation 'init' is brief, unambiguous and already used
in thousands of places, also initialize is often accidentally
written with British spelling.
2020-08-01 13:51:05 +10:00
3785dc59d1
Merge branch 'blender-v2.90-release'
2020-07-31 13:47:46 +02:00
c565f16afb
Fix T79397: blurry icons at some UI scales, after recent refactor
...
Solution found by Yevgeny Makarov.
2020-07-31 12:39:58 +02:00
848cbe889b
Fix T79347 GPU: Segfault starting blender
2020-07-30 19:43:53 +02:00
2d38ff67d3
GPU: Fix compilation error
2020-07-30 17:08:23 +02:00
da741013a1
EEVEE: GLSL refactor/cleanup
...
- add the use of DRWShaderLibrary to EEVEE's glsl codebase to reduce code
complexity and duplication.
- split bsdf_common_lib.glsl into multiple sub library which are now shared
with other engines.
- the surface shader code is now more organised and have its own files.
- change default world to use a material nodetree and make lookdev shader
more clear.
Reviewed By: jbakker
Differential Revision: https://developer.blender.org/D8306
2020-07-30 16:44:58 +02:00
19175f4757
GPUBatch & GPUImmediate: Use GPUShader instead of using raw OGL handle
2020-07-30 13:28:50 +02:00
dc3baf2c78
Cleanup: spelling
2020-07-30 08:43:40 +10:00
486c7b87fb
Cleanup: GPU: Remove GPU_draw.h and move fluid gpu function to DRW
2020-07-29 23:21:33 +02:00
5f6fb5bb41
Cleanup: Split gpu_texture_image.c into BKE and IMB modules
...
This is in order to disolve GPU_draw.h into more meaningful code blocks.
All the Image related function are in `image_gpu.c`.
All the MovieClip related function are in `movieclip.c`.
The IMB module now has a connection with GPU. This is not strickly
necessary and the code could be move to `image_gpu.c` if needed.
The Image garbage collection is also ported to `image_gpu.c`.
2020-07-29 23:06:37 +02:00
7e8d493730
GPU_draw.h: cleanup before splitting
2020-07-29 23:06:37 +02:00
b9c7c904ed
GPUShader: Fix linking with MSVC
2020-07-29 16:07:51 +02:00
f0687d4665
Cleanup: GPUTexture: Use UNPACK3 in texture_fluid
2020-07-29 15:54:51 +02:00
1804a6d040
GPUState: Fix compilation error on MSVC
2020-07-29 15:54:51 +02:00
2d89cd7dd5
Cleanup: GPU: Move Image based function to GPU_draw.h
...
This makes it less confusing what functions are for blender
structures.
2020-07-29 15:54:51 +02:00
99d0b3b793
Cleanup: GPU: Rename gpu_texture_smoke to fluid, and move back to C
...
The file do not have a reason to be C++ anymore.
2020-07-29 15:54:51 +02:00
e749643793
GPU: Refactor gpu_texture_image to not use GL calls
...
This is also a bit of code cleanup, reorganisation.
Tried to be DRYed but avoid too much code change to (hopefully) minimize
breakage.
- GPU: remove TEXTARGET_CUBE_MAP, this is no longer used in the codebase.
- GPUTexture: Move compressed texture upload to gpu_texture.cc
- GPUTexture: Add per texture Anisotropic filtering switch
2020-07-29 15:03:02 +02:00
e4ee9de638
GPU: Move gpu_shader.c to C++
...
We split builtin shader support to its own file to avoid
converting code (lack of designated initializer in C++)
and to reduce file size.
2020-07-29 15:03:02 +02:00
18d2db22ff
GPU: Move gpu_state.c to C++
2020-07-29 15:03:02 +02:00
45d61bdc03
GPU: Move gpu_texture.c to C++
...
# Conflicts:
# source/blender/gpu/GPU_texture.h
2020-07-29 15:03:02 +02:00
56d0a554a8
GPU: Move gpu_uniformbuffer.c to C++
...
This also rewrite and simplify the module a bit.
2020-07-29 15:03:02 +02:00
f84342d7e1
GPU: Move gpu_vertex_buffer.c to C++
2020-07-29 15:03:02 +02:00
959529d4b8
GPU: Move gpu_vertex_format.c to C++
2020-07-29 15:03:02 +02:00
dcad6c9db8
Cleanup: correct assert in GPU_offscreen_read_pixels
2020-07-29 10:50:31 +10:00
2a52c2d001
Cleanup: spelling, comments
2020-07-28 21:49:37 +10:00
b18c376946
Cleanup: quiet warnings without DDS
2020-07-27 21:00:49 +10:00
0b04f0e4e6
GPU: Fix crash and missing texture due to recent C++ port
...
Fix T79306 DRW: small issues with yesterday commits modifying TEXTARGET
Fix T79303 Image texture node crashes EEVEE when connected to a shader output
2020-07-27 13:37:22 +02:00
2c2082cc62
GPU: Fix MSVC compile errors
2020-07-26 23:50:29 +02:00
54237994d8
Cleanup: Image: Rename redundant enum for clarity
2020-07-26 21:07:25 +02:00
487eaeed7e
GPUTexture: Replace GL textarget enum by Image enum
2020-07-26 21:07:25 +02:00
025dc31d28
GPU: Remove GL constant from BIF_glutil
2020-07-26 21:07:25 +02:00
18cca0e704
Cleanup: GPU: Remove GPU_glew.h outside of GPU module
...
Remove use of GL* constants and types inside the codebase. There is still
a few occurence to get rid of.
2020-07-26 17:29:49 +02:00
9e23dbd060
Cleanup: GPU_codegen.c: Use LISTBASE_FOREACH macro instead of for loops
2020-07-26 17:28:48 +02:00
15655aa1dd
Cleanup: GPU: Remove unused code and header
2020-07-26 17:28:48 +02:00
cc7d5e1fe6
GPU: Move gpu_platform.c to C++
2020-07-26 17:28:48 +02:00
c276ef61d4
GPU: Move gpu_immediate.c to C++
2020-07-26 17:28:48 +02:00
b296b68ff2
GPU: Move gpu_framebuffer.c to C++
2020-07-26 17:28:48 +02:00
9905db5557
GPU: Move gpu_extensions.c to C++
2020-07-26 17:28:48 +02:00
7c3eaffbbd
GPU: Move gpu_element.c to C++
2020-07-26 17:28:48 +02:00
97b597cd04
GPU: Move and rename gpu_draw*.c to C++
...
`gpu_draw.c` was a misleading name, `gpu_texture_image.cc` is better
suited.
2020-07-26 17:28:48 +02:00
8b7802db85
GPU: Move gpu_debug.c to C++
2020-07-26 17:28:48 +02:00
56803e2754
GPU: Rename gpu_context.cpp to .cc suffix
2020-07-26 17:28:48 +02:00
7b4a21077a
GPU: Move gpu_batch.c to C++
2020-07-26 17:28:48 +02:00
d3cecc5007
GPU: Move gpu_attr_binding.c to C++
2020-07-26 17:28:48 +02:00
a77175c9b6
GPU: Add extern "C" to intern headers
2020-07-26 17:28:48 +02:00
13fa4b9898
Cleanup: remove redundant glReadBuffer call when reading pixels
2020-07-24 19:01:13 +10:00