Blender Git Commit Log

Git Commits -> Revision 4430e8a

Revision 4430e8a by Germano Cavalcante (master)
February 17, 2021, 15:27 (GMT)
Python: gpu module: add new submodules and types

This commit extends the gpu python API with:
```
gpu.types.Buffer #"__init__", "to_list"
gpu.types.GPUTexture #"__init__", "clear", "read", "format"
gpu.types.GPUFrameBuffer #"__init__", "bind", "clear", "is_bound", "viewport", ("__enter__", "__exit__" with "GPUFrameBufferStackContext")
gpu.types.GPUUniformBuf #"__init__", "update"
gpu.state #"blend_set", "blend_get", "depth_test_set", "depth_test_get", "depth_mask_set", "depth_mask_get", "viewport_set", "viewport_get", "line_width_set", "line_width_get", "point_size_set", "color_mask_set", "face_culling_set", "front_facing_set", "program_point_size_set"
```

Add these methods to existing objects:
```
gpu.types.GPUShader #"uniform_sample", "uniform_buffer"
```

Maniphest Tasks: T80481

Differential Revision: https://developer.blender.org/D8826

Commit Details:

Full Hash: 4430e8a00810ca8df2fa20029c4cb8078e8cdbe6
Parent Commit: ec8c09f
Lines Changed: +2974, -110

12 Added Paths:

/source/blender/python/gpu/gpu_py.c (+45, -0) (View)
/source/blender/python/gpu/gpu_py.h (+23, -0) (View)
/source/blender/python/gpu/gpu_py_buffer.c (+669, -0) (View)
/source/blender/python/gpu/gpu_py_buffer.h (+53, -0) (View)
/source/blender/python/gpu/gpu_py_framebuffer.c (+546, -0) (View)
/source/blender/python/gpu/gpu_py_framebuffer.h (+33, -0) (View)
/source/blender/python/gpu/gpu_py_state.c (+423, -0) (View)
/source/blender/python/gpu/gpu_py_state.h (+23, -0) (View)
/source/blender/python/gpu/gpu_py_texture.c (+559, -0) (View)
/source/blender/python/gpu/gpu_py_texture.h (+34, -0) (View)
/source/blender/python/gpu/gpu_py_uniformbuffer.c (+195, -0) (View)
/source/blender/python/gpu/gpu_py_uniformbuffer.h (+33, -0) (View)

15 Modified Paths:

/source/blender/gpu/GPU_framebuffer.h (+4, -0) (Diff)
/source/blender/gpu/GPU_texture.h (+4, -0) (Diff)
/source/blender/gpu/intern/gpu_framebuffer.cc (+20, -7) (Diff)
/source/blender/gpu/intern/gpu_texture.cc (+17, -0) (Diff)
/source/blender/gpu/intern/gpu_texture_private.hh (+8, -3) (Diff)
/source/blender/python/generic/py_capi_utils.c (+11, -0) (Diff)
/source/blender/python/generic/py_capi_utils.h (+2, -0) (Diff)
/source/blender/python/gpu/CMakeLists.txt (+12, -0) (Diff)
/source/blender/python/gpu/gpu_py_api.c (+4, -0) (Diff)
/source/blender/python/gpu/gpu_py_api.h (+4, -0) (Diff)
/source/blender/python/gpu/gpu_py_offscreen.c (+161, -99) (Diff)
/source/blender/python/gpu/gpu_py_offscreen.h (+0, -1) (Diff)
/source/blender/python/gpu/gpu_py_shader.c (+70, -0) (Diff)
/source/blender/python/gpu/gpu_py_types.c (+16, -0) (Diff)
/source/blender/python/gpu/gpu_py_types.h (+5, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021