fake-bpy-module 20250604__py3-none-any.whl → 20250607__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of fake-bpy-module might be problematic. Click here for more details.
- _bpy_internal/addons/cli/__init__.pyi +1 -1
- _bpy_internal/extensions/junction_module/__init__.pyi +7 -7
- _bpy_internal/extensions/stale_file_manager/__init__.pyi +8 -8
- _bpy_internal/extensions/wheel_manager/__init__.pyi +3 -3
- _bpy_internal/freedesktop/__init__.pyi +16 -16
- _bpy_internal/grease_pencil/stroke/__init__.pyi +4 -4
- _bpy_internal/system_info/text_generate_runtime/__init__.pyi +1 -1
- _bpy_internal/system_info/url_prefill_runtime/__init__.pyi +1 -1
- _bpy_internal/system_info/url_prefill_startup/__init__.pyi +2 -2
- addon_utils/__init__.pyi +12 -12
- animsys_refactor/__init__.pyi +6 -6
- aud/__init__.pyi +11 -11
- bgl/__init__.pyi +272 -252
- bl_app_override/__init__.pyi +3 -3
- bl_app_override/helpers/__init__.pyi +2 -2
- bl_app_template_utils/__init__.pyi +4 -4
- bl_console_utils/autocomplete/complete_namespace/__init__.pyi +2 -2
- bl_i18n_utils/bl_extract_messages/__init__.pyi +18 -16
- bl_i18n_utils/merge_po/__init__.pyi +1 -1
- bl_i18n_utils/settings/__init__.pyi +6 -6
- bl_i18n_utils/utils/__init__.pyi +48 -46
- bl_i18n_utils/utils_cli/__init__.pyi +6 -6
- bl_i18n_utils/utils_languages_menu/__init__.pyi +1 -1
- bl_i18n_utils/utils_rtl/__init__.pyi +2 -2
- bl_keymap_utils/io/__init__.pyi +9 -9
- bl_keymap_utils/keymap_from_toolbar/__init__.pyi +1 -1
- bl_keymap_utils/keymap_hierarchy/__init__.pyi +1 -1
- bl_keymap_utils/platform_helpers/__init__.pyi +2 -2
- bl_keymap_utils/versioning/__init__.pyi +1 -1
- bl_operators/__init__.pyi +2 -2
- bl_operators/add_mesh_torus/__init__.pyi +6 -6
- bl_operators/anim/__init__.pyi +24 -24
- bl_operators/assets/__init__.pyi +9 -9
- bl_operators/bmesh/find_adjacent/__init__.pyi +11 -9
- bl_operators/bone_selection_sets/__init__.pyi +18 -18
- bl_operators/clip/__init__.pyi +26 -26
- bl_operators/connect_to_output/__init__.pyi +17 -15
- bl_operators/console/__init__.pyi +10 -10
- bl_operators/constraint/__init__.pyi +8 -8
- bl_operators/file/__init__.pyi +6 -6
- bl_operators/freestyle/__init__.pyi +9 -9
- bl_operators/geometry_nodes/__init__.pyi +24 -24
- bl_operators/grease_pencil/__init__.pyi +2 -2
- bl_operators/image/__init__.pyi +7 -7
- bl_operators/image_as_planes/__init__.pyi +32 -32
- bl_operators/mesh/__init__.pyi +7 -7
- bl_operators/node/__init__.pyi +31 -31
- bl_operators/node_editor/node_functions/__init__.pyi +9 -9
- bl_operators/object/__init__.pyi +31 -31
- bl_operators/object_align/__init__.pyi +5 -5
- bl_operators/object_quick_effects/__init__.pyi +9 -9
- bl_operators/object_randomize_transform/__init__.pyi +3 -3
- bl_operators/presets/__init__.pyi +18 -18
- bl_operators/rigidbody/__init__.pyi +7 -7
- bl_operators/screen_play_rendered_anim/__init__.pyi +2 -2
- bl_operators/sequencer/__init__.pyi +19 -19
- bl_operators/spreadsheet/__init__.pyi +4 -4
- bl_operators/userpref/__init__.pyi +42 -42
- bl_operators/uvcalc_follow_active/__init__.pyi +5 -5
- bl_operators/uvcalc_lightmap/__init__.pyi +8 -8
- bl_operators/uvcalc_transform/__init__.pyi +20 -20
- bl_operators/vertexpaint_dirt/__init__.pyi +4 -4
- bl_operators/view3d/__init__.pyi +21 -19
- bl_operators/wm/__init__.pyi +88 -88
- bl_operators/world/__init__.pyi +2 -2
- bl_previews_utils/bl_previews_render/__init__.pyi +9 -7
- bl_rna_utils/data_path/__init__.pyi +2 -2
- bl_text_utils/external_editor/__init__.pyi +1 -1
- bl_ui/__init__.pyi +10 -10
- bl_ui/anim/__init__.pyi +2 -2
- bl_ui/asset_shelf/__init__.pyi +2 -2
- bl_ui/generic_ui_list/__init__.pyi +6 -6
- bl_ui/node_add_menu/__init__.pyi +15 -13
- bl_ui/node_add_menu_compositor/__init__.pyi +18 -18
- bl_ui/node_add_menu_geometry/__init__.pyi +54 -54
- bl_ui/node_add_menu_shader/__init__.pyi +16 -16
- bl_ui/node_add_menu_texture/__init__.pyi +9 -9
- bl_ui/properties_animviz/__init__.pyi +2 -2
- bl_ui/properties_collection/__init__.pyi +10 -8
- bl_ui/properties_constraint/__init__.pyi +125 -125
- bl_ui/properties_data_armature/__init__.pyi +22 -22
- bl_ui/properties_data_bone/__init__.pyi +20 -20
- bl_ui/properties_data_camera/__init__.pyi +19 -19
- bl_ui/properties_data_curve/__init__.pyi +23 -23
- bl_ui/properties_data_curves/__init__.pyi +9 -9
- bl_ui/properties_data_empty/__init__.pyi +4 -4
- bl_ui/properties_data_grease_pencil/__init__.pyi +25 -25
- bl_ui/properties_data_lattice/__init__.pyi +4 -4
- bl_ui/properties_data_light/__init__.pyi +14 -14
- bl_ui/properties_data_lightprobe/__init__.pyi +18 -18
- bl_ui/properties_data_mesh/__init__.pyi +25 -58
- bl_ui/properties_data_metaball/__init__.pyi +6 -6
- bl_ui/properties_data_modifier/__init__.pyi +12 -12
- bl_ui/properties_data_pointcloud/__init__.pyi +8 -8
- bl_ui/properties_data_shaderfx/__init__.pyi +1 -1
- bl_ui/properties_data_speaker/__init__.pyi +5 -5
- bl_ui/properties_data_volume/__init__.pyi +9 -9
- bl_ui/properties_freestyle/__init__.pyi +51 -51
- bl_ui/properties_grease_pencil_common/__init__.pyi +30 -30
- bl_ui/properties_mask_common/__init__.pyi +24 -24
- bl_ui/properties_material/__init__.pyi +27 -27
- bl_ui/properties_material_gpencil/__init__.pyi +12 -12
- bl_ui/properties_object/__init__.pyi +29 -29
- bl_ui/properties_output/__init__.pyi +29 -29
- bl_ui/properties_paint_common/__init__.pyi +59 -50
- bl_ui/properties_particle/__init__.pyi +101 -101
- bl_ui/properties_physics_cloth/__init__.pyi +20 -20
- bl_ui/properties_physics_common/__init__.pyi +8 -8
- bl_ui/properties_physics_dynamicpaint/__init__.pyi +57 -57
- bl_ui/properties_physics_field/__init__.pyi +23 -23
- bl_ui/properties_physics_fluid/__init__.pyi +76 -76
- bl_ui/properties_physics_geometry_nodes/__init__.pyi +3 -3
- bl_ui/properties_physics_rigidbody/__init__.pyi +18 -18
- bl_ui/properties_physics_rigidbody_constraint/__init__.pyi +29 -29
- bl_ui/properties_physics_softbody/__init__.pyi +21 -21
- bl_ui/properties_render/__init__.pyi +81 -81
- bl_ui/properties_scene/__init__.pyi +22 -22
- bl_ui/properties_texture/__init__.pyi +39 -39
- bl_ui/properties_view_layer/__init__.pyi +12 -12
- bl_ui/properties_workspace/__init__.pyi +5 -5
- bl_ui/properties_world/__init__.pyi +18 -18
- bl_ui/space_clip/__init__.pyi +81 -81
- bl_ui/space_console/__init__.pyi +6 -6
- bl_ui/space_dopesheet/__init__.pyi +32 -32
- bl_ui/space_filebrowser/__init__.pyi +45 -45
- bl_ui/space_graph/__init__.pyi +21 -21
- bl_ui/space_image/__init__.pyi +73 -75
- bl_ui/space_info/__init__.pyi +6 -6
- bl_ui/space_nla/__init__.pyi +18 -18
- bl_ui/space_node/__init__.pyi +42 -42
- bl_ui/space_outliner/__init__.pyi +21 -21
- bl_ui/space_properties/__init__.pyi +6 -6
- bl_ui/space_sequencer/__init__.pyi +133 -133
- bl_ui/space_spreadsheet/__init__.pyi +4 -4
- bl_ui/space_statusbar/__init__.pyi +1 -1
- bl_ui/space_text/__init__.pyi +17 -17
- bl_ui/space_time/__init__.pyi +12 -12
- bl_ui/space_toolsystem_common/__init__.pyi +28 -26
- bl_ui/space_toolsystem_toolbar/__init__.pyi +36 -36
- bl_ui/space_topbar/__init__.pyi +32 -32
- bl_ui/space_userpref/__init__.pyi +132 -132
- bl_ui/space_view3d/__init__.pyi +297 -307
- bl_ui/space_view3d_toolbar/__init__.pyi +148 -149
- bl_ui/utils/__init__.pyi +5 -5
- bl_ui_utils/layout/__init__.pyi +1 -1
- blend_render_info/__init__.pyi +2 -2
- blf/__init__.pyi +15 -15
- bmesh/__init__.pyi +1 -1
- bmesh/ops/__init__.pyi +366 -357
- bmesh/types/__init__.pyi +59 -57
- bmesh/utils/__init__.pyi +2 -2
- bpy/app/__init__.pyi +3 -3
- bpy/app/icons/__init__.pyi +1 -1
- bpy/app/timers/__init__.pyi +2 -2
- bpy/app/translations/__init__.pyi +9 -9
- bpy/msgbus/__init__.pyi +15 -3
- bpy/ops/action/__init__.pyi +62 -38
- bpy/ops/anim/__init__.pyi +63 -61
- bpy/ops/armature/__init__.pyi +58 -48
- bpy/ops/asset/__init__.pyi +31 -20
- bpy/ops/boid/__init__.pyi +18 -8
- bpy/ops/brush/__init__.pyi +19 -16
- bpy/ops/buttons/__init__.pyi +14 -12
- bpy/ops/cachefile/__init__.pyi +9 -11
- bpy/ops/camera/__init__.pyi +2 -2
- bpy/ops/clip/__init__.pyi +112 -95
- bpy/ops/cloth/__init__.pyi +1 -1
- bpy/ops/collection/__init__.pyi +11 -9
- bpy/ops/console/__init__.pyi +37 -21
- bpy/ops/constraint/__init__.pyi +20 -18
- bpy/ops/curve/__init__.pyi +81 -51
- bpy/ops/curves/__init__.pyi +50 -30
- bpy/ops/cycles/__init__.pyi +3 -3
- bpy/ops/dpaint/__init__.pyi +5 -5
- bpy/ops/ed/__init__.pyi +19 -16
- bpy/ops/export_anim/__init__.pyi +1 -1
- bpy/ops/export_scene/__init__.pyi +2 -2
- bpy/ops/extensions/__init__.pyi +38 -32
- bpy/ops/file/__init__.pyi +72 -43
- bpy/ops/fluid/__init__.pyi +36 -14
- bpy/ops/font/__init__.pyi +41 -29
- bpy/ops/geometry/__init__.pyi +10 -10
- bpy/ops/gizmogroup/__init__.pyi +4 -2
- bpy/ops/gpencil/__init__.pyi +12 -8
- bpy/ops/graph/__init__.pyi +81 -68
- bpy/ops/grease_pencil/__init__.pyi +159 -115
- bpy/ops/image/__init__.pyi +63 -61
- bpy/ops/import_anim/__init__.pyi +1 -1
- bpy/ops/import_curve/__init__.pyi +1 -1
- bpy/ops/import_scene/__init__.pyi +2 -2
- bpy/ops/info/__init__.pyi +13 -7
- bpy/ops/lattice/__init__.pyi +14 -8
- bpy/ops/marker/__init__.pyi +13 -11
- bpy/ops/mask/__init__.pyi +59 -39
- bpy/ops/material/__init__.pyi +3 -3
- bpy/ops/mball/__init__.pyi +8 -8
- bpy/ops/mesh/__init__.pyi +182 -164
- bpy/ops/nla/__init__.pyi +65 -39
- bpy/ops/node/__init__.pyi +181 -150
- bpy/ops/object/__init__.pyi +262 -251
- bpy/ops/outliner/__init__.pyi +98 -72
- bpy/ops/paint/__init__.pyi +58 -54
- bpy/ops/paintcurve/__init__.pyi +12 -8
- bpy/ops/palette/__init__.pyi +11 -7
- bpy/ops/particle/__init__.pyi +58 -36
- bpy/ops/pointcloud/__init__.pyi +13 -7
- bpy/ops/pose/__init__.pyi +65 -51
- bpy/ops/poselib/__init__.pyi +17 -11
- bpy/ops/preferences/__init__.pyi +41 -38
- bpy/ops/ptcache/__init__.pyi +13 -7
- bpy/ops/render/__init__.pyi +17 -13
- bpy/ops/rigidbody/__init__.pyi +19 -13
- bpy/ops/scene/__init__.pyi +39 -37
- bpy/ops/screen/__init__.pyi +59 -45
- bpy/ops/script/__init__.pyi +5 -3
- bpy/ops/sculpt/__init__.pyi +44 -40
- bpy/ops/sculpt_curves/__init__.pyi +4 -4
- bpy/ops/sequencer/__init__.pyi +142 -115
- bpy/ops/sound/__init__.pyi +7 -16
- bpy/ops/spreadsheet/__init__.pyi +13 -7
- bpy/ops/surface/__init__.pyi +6 -6
- bpy/ops/text/__init__.pyi +73 -49
- bpy/ops/text_editor/__init__.pyi +1 -1
- bpy/ops/texture/__init__.pyi +8 -4
- bpy/ops/transform/__init__.pyi +29 -27
- bpy/ops/ui/__init__.pyi +42 -34
- bpy/ops/uilist/__init__.pyi +3 -3
- bpy/ops/uv/__init__.pyi +59 -49
- bpy/ops/view2d/__init__.pyi +14 -14
- bpy/ops/view3d/__init__.pyi +87 -67
- bpy/ops/wm/__init__.pyi +136 -574
- bpy/ops/workspace/__init__.pyi +11 -7
- bpy/ops/world/__init__.pyi +2 -2
- bpy/props/__init__.pyi +16 -13
- bpy/types/__init__.pyi +1237 -1281
- bpy/utils/__init__.pyi +23 -23
- bpy/utils/previews/__init__.pyi +3 -3
- bpy_extras/anim_utils/__init__.pyi +7 -7
- bpy_extras/bmesh_utils/__init__.pyi +1 -1
- bpy_extras/id_map_utils/__init__.pyi +3 -3
- bpy_extras/io_utils/__init__.pyi +14 -12
- bpy_extras/keyconfig_utils/__init__.pyi +3 -3
- bpy_extras/mesh_utils/__init__.pyi +2 -2
- bpy_extras/node_shader_utils/__init__.pyi +63 -63
- bpy_extras/node_utils/__init__.pyi +3 -3
- bpy_extras/object_utils/__init__.pyi +4 -4
- bpy_extras/wm_utils/progress_report/__init__.pyi +10 -10
- bpy_types/__init__.pyi +4 -4
- console_python/__init__.pyi +7 -7
- console_shell/__init__.pyi +5 -5
- {fake_bpy_module-20250604.dist-info → fake_bpy_module-20250607.dist-info}/METADATA +1 -1
- fake_bpy_module-20250607.dist-info/RECORD +367 -0
- freestyle/chainingiterators/__init__.pyi +35 -33
- freestyle/functions/__init__.pyi +55 -55
- freestyle/predicates/__init__.pyi +8 -8
- freestyle/shaders/__init__.pyi +79 -75
- freestyle/types/__init__.pyi +146 -142
- freestyle/utils/ContextFunctions/__init__.pyi +3 -1
- freestyle/utils/__init__.pyi +25 -25
- gpu/matrix/__init__.pyi +14 -14
- gpu/select/__init__.pyi +1 -1
- gpu/shader/__init__.pyi +1 -1
- gpu/state/__init__.pyi +19 -19
- gpu/types/__init__.pyi +50 -44
- gpu_extras/presets/__init__.pyi +2 -2
- graphviz_export/__init__.pyi +2 -2
- idprop/types/__init__.pyi +9 -9
- imbuf/__init__.pyi +3 -1
- imbuf/types/__init__.pyi +3 -3
- keyingsets_builtins/__init__.pyi +26 -26
- keyingsets_utils/__init__.pyi +14 -14
- mathutils/__init__.pyi +61 -53
- mathutils/bvhtree/__init__.pyi +4 -4
- mathutils/kdtree/__init__.pyi +3 -3
- mathutils/noise/__init__.pyi +1 -1
- nodeitems_builtins/__init__.pyi +4 -4
- nodeitems_utils/__init__.pyi +9 -9
- rna_info/__init__.pyi +25 -25
- rna_keymap_ui/__init__.pyi +6 -6
- rna_prop_ui/__init__.pyi +12 -12
- rna_xml/__init__.pyi +6 -6
- fake_bpy_module-20250604.dist-info/RECORD +0 -367
- {fake_bpy_module-20250604.dist-info → fake_bpy_module-20250607.dist-info}/WHEEL +0 -0
- {fake_bpy_module-20250604.dist-info → fake_bpy_module-20250607.dist-info}/top_level.txt +0 -0
gpu/types/__init__.pyi
CHANGED
|
@@ -14,7 +14,7 @@ class Buffer:
|
|
|
14
14
|
class GPUBatch:
|
|
15
15
|
"""Reusable container for drawable geometry."""
|
|
16
16
|
|
|
17
|
-
def draw(self, shader=None):
|
|
17
|
+
def draw(self, shader=None) -> None:
|
|
18
18
|
"""Run the drawing shader with the parameters assigned to the batch.
|
|
19
19
|
|
|
20
20
|
:param shader: Shader that performs the drawing operations.
|
|
@@ -23,7 +23,7 @@ class GPUBatch:
|
|
|
23
23
|
|
|
24
24
|
def draw_instanced(
|
|
25
25
|
self, program: GPUShader, *, instance_start: int = 0, instance_count: int = 0
|
|
26
|
-
):
|
|
26
|
+
) -> None:
|
|
27
27
|
"""Draw multiple instances of the drawing program with the parameters assigned
|
|
28
28
|
to the batch. In the vertex shader, gl_InstanceID will contain the instance
|
|
29
29
|
number being drawn.
|
|
@@ -40,7 +40,7 @@ class GPUBatch:
|
|
|
40
40
|
|
|
41
41
|
def draw_range(
|
|
42
42
|
self, program: GPUShader, *, elem_start: int = 0, elem_count: int = 0
|
|
43
|
-
):
|
|
43
|
+
) -> None:
|
|
44
44
|
"""Run the drawing program with the parameters assigned to the batch. Only draw the elem_count elements of the index buffer starting at elem_start.
|
|
45
45
|
|
|
46
46
|
:param program: Program that performs the drawing operations.
|
|
@@ -54,7 +54,7 @@ class GPUBatch:
|
|
|
54
54
|
:type elem_count: int
|
|
55
55
|
"""
|
|
56
56
|
|
|
57
|
-
def program_set(self, program: GPUShader):
|
|
57
|
+
def program_set(self, program: GPUShader) -> None:
|
|
58
58
|
"""Assign a shader to this batch that will be used for drawing when not overwritten later.
|
|
59
59
|
Note: This method has to be called in the draw context that the batch will be drawn in.
|
|
60
60
|
This function does not need to be called when you always
|
|
@@ -64,7 +64,7 @@ class GPUBatch:
|
|
|
64
64
|
:type program: GPUShader
|
|
65
65
|
"""
|
|
66
66
|
|
|
67
|
-
def vertbuf_add(self, buf: GPUVertBuf):
|
|
67
|
+
def vertbuf_add(self, buf: GPUVertBuf) -> None:
|
|
68
68
|
"""Add another vertex buffer to the Batch.
|
|
69
69
|
It is not possible to add more vertices to the batch using this method.
|
|
70
70
|
Instead it can be used to add more attributes to the existing vertices.
|
|
@@ -85,7 +85,7 @@ class GPUFrameBuffer:
|
|
|
85
85
|
is_bound: typing.Any
|
|
86
86
|
""" Checks if this is the active framebuffer in the context."""
|
|
87
87
|
|
|
88
|
-
def bind(self):
|
|
88
|
+
def bind(self) -> None:
|
|
89
89
|
"""Context manager to ensure balanced bind calls, even in the case of an error."""
|
|
90
90
|
|
|
91
91
|
def clear(
|
|
@@ -93,7 +93,7 @@ class GPUFrameBuffer:
|
|
|
93
93
|
color: collections.abc.Sequence[float] | None = None,
|
|
94
94
|
depth: float | None = None,
|
|
95
95
|
stencil: int | None = None,
|
|
96
|
-
):
|
|
96
|
+
) -> None:
|
|
97
97
|
"""Fill color, depth and stencil textures with specific value.
|
|
98
98
|
Common values: color=(0.0, 0.0, 0.0, 1.0), depth=1.0, stencil=0.
|
|
99
99
|
|
|
@@ -151,10 +151,10 @@ class GPUFrameBuffer:
|
|
|
151
151
|
:rtype: Buffer
|
|
152
152
|
"""
|
|
153
153
|
|
|
154
|
-
def viewport_get(self):
|
|
154
|
+
def viewport_get(self) -> None:
|
|
155
155
|
"""Returns position and dimension to current viewport."""
|
|
156
156
|
|
|
157
|
-
def viewport_set(self, x: int, y, xsize: int, ysize):
|
|
157
|
+
def viewport_set(self, x: int, y, xsize: int, ysize) -> None:
|
|
158
158
|
"""Set the viewport for this framebuffer object.
|
|
159
159
|
Note: The viewport state is not saved upon framebuffer rebind.
|
|
160
160
|
|
|
@@ -196,7 +196,7 @@ class GPUOffScreen:
|
|
|
196
196
|
:type: int
|
|
197
197
|
"""
|
|
198
198
|
|
|
199
|
-
def bind(self):
|
|
199
|
+
def bind(self) -> None:
|
|
200
200
|
"""Context manager to ensure balanced bind calls, even in the case of an error."""
|
|
201
201
|
|
|
202
202
|
def draw_view3d(
|
|
@@ -211,7 +211,7 @@ class GPUOffScreen:
|
|
|
211
211
|
| mathutils.Matrix,
|
|
212
212
|
do_color_management: bool = False,
|
|
213
213
|
draw_background: bool = True,
|
|
214
|
-
):
|
|
214
|
+
) -> None:
|
|
215
215
|
"""Draw the 3d viewport in the offscreen object.
|
|
216
216
|
|
|
217
217
|
:param scene: Scene to draw.
|
|
@@ -232,13 +232,13 @@ class GPUOffScreen:
|
|
|
232
232
|
:type draw_background: bool
|
|
233
233
|
"""
|
|
234
234
|
|
|
235
|
-
def free(self):
|
|
235
|
+
def free(self) -> None:
|
|
236
236
|
"""Free the offscreen object.
|
|
237
237
|
The framebuffer, texture and render objects will no longer be accessible.
|
|
238
238
|
|
|
239
239
|
"""
|
|
240
240
|
|
|
241
|
-
def unbind(self, restore: bool = True):
|
|
241
|
+
def unbind(self, restore: bool = True) -> None:
|
|
242
242
|
"""Unbind the offscreen object.
|
|
243
243
|
|
|
244
244
|
:param restore: Restore the OpenGL state, can only be used when the state has been saved before.
|
|
@@ -285,7 +285,7 @@ This is deprecated and will always return -1.
|
|
|
285
285
|
:rtype: tuple[tuple[str, str | None], ...]
|
|
286
286
|
"""
|
|
287
287
|
|
|
288
|
-
def bind(self):
|
|
288
|
+
def bind(self) -> None:
|
|
289
289
|
"""Bind the shader object. Required to be able to change uniforms of this shader."""
|
|
290
290
|
|
|
291
291
|
def format_calc(self) -> GPUVertFormat:
|
|
@@ -295,7 +295,7 @@ This is deprecated and will always return -1.
|
|
|
295
295
|
:rtype: GPUVertFormat
|
|
296
296
|
"""
|
|
297
297
|
|
|
298
|
-
def image(self, name: str, texture: GPUTexture):
|
|
298
|
+
def image(self, name: str, texture: GPUTexture) -> None:
|
|
299
299
|
"""Specify the value of an image variable for the current GPUShader.
|
|
300
300
|
|
|
301
301
|
:param name: Name of the image variable to which the texture is to be bound.
|
|
@@ -304,7 +304,7 @@ This is deprecated and will always return -1.
|
|
|
304
304
|
:type texture: GPUTexture
|
|
305
305
|
"""
|
|
306
306
|
|
|
307
|
-
def uniform_block(self, name: str, ubo):
|
|
307
|
+
def uniform_block(self, name: str, ubo) -> None:
|
|
308
308
|
"""Specify the value of an uniform buffer object variable for the current GPUShader.
|
|
309
309
|
|
|
310
310
|
:param name: name of the uniform variable whose UBO is to be specified.
|
|
@@ -321,7 +321,9 @@ This is deprecated and will always return -1.
|
|
|
321
321
|
:rtype: int
|
|
322
322
|
"""
|
|
323
323
|
|
|
324
|
-
def uniform_bool(
|
|
324
|
+
def uniform_bool(
|
|
325
|
+
self, name: str, value: bool | collections.abc.Sequence[bool]
|
|
326
|
+
) -> None:
|
|
325
327
|
"""Specify the value of a uniform variable for the current program object.
|
|
326
328
|
|
|
327
329
|
:param name: Name of the uniform variable whose value is to be changed.
|
|
@@ -330,7 +332,9 @@ This is deprecated and will always return -1.
|
|
|
330
332
|
:type value: bool | collections.abc.Sequence[bool]
|
|
331
333
|
"""
|
|
332
334
|
|
|
333
|
-
def uniform_float(
|
|
335
|
+
def uniform_float(
|
|
336
|
+
self, name: str, value: collections.abc.Sequence[float] | float
|
|
337
|
+
) -> None:
|
|
334
338
|
"""Specify the value of a uniform variable for the current program object.
|
|
335
339
|
|
|
336
340
|
:param name: Name of the uniform variable whose value is to be changed.
|
|
@@ -348,7 +352,7 @@ This is deprecated and will always return -1.
|
|
|
348
352
|
:rtype: int
|
|
349
353
|
"""
|
|
350
354
|
|
|
351
|
-
def uniform_int(self, name: str, seq: collections.abc.Sequence[int]):
|
|
355
|
+
def uniform_int(self, name: str, seq: collections.abc.Sequence[int]) -> None:
|
|
352
356
|
"""Specify the value of a uniform variable for the current program object.
|
|
353
357
|
|
|
354
358
|
:param name: name of the uniform variable whose value is to be changed.
|
|
@@ -357,7 +361,7 @@ This is deprecated and will always return -1.
|
|
|
357
361
|
:type seq: collections.abc.Sequence[int]
|
|
358
362
|
"""
|
|
359
363
|
|
|
360
|
-
def uniform_sampler(self, name: str, texture: GPUTexture):
|
|
364
|
+
def uniform_sampler(self, name: str, texture: GPUTexture) -> None:
|
|
361
365
|
"""Specify the value of a texture uniform variable for the current GPUShader.
|
|
362
366
|
|
|
363
367
|
:param name: name of the uniform variable whose texture is to be specified.
|
|
@@ -372,7 +376,7 @@ This is deprecated and will always return -1.
|
|
|
372
376
|
buffer: collections.abc.Sequence[float],
|
|
373
377
|
length: int,
|
|
374
378
|
count: int,
|
|
375
|
-
):
|
|
379
|
+
) -> None:
|
|
376
380
|
"""Set the buffer to fill the uniform.
|
|
377
381
|
|
|
378
382
|
:param location: Location of the uniform variable to be modified.
|
|
@@ -397,7 +401,7 @@ This is deprecated and will always return -1.
|
|
|
397
401
|
:type count: int
|
|
398
402
|
"""
|
|
399
403
|
|
|
400
|
-
def uniform_vector_int(self, location, buffer, length, count):
|
|
404
|
+
def uniform_vector_int(self, location, buffer, length, count) -> None:
|
|
401
405
|
"""See GPUShader.uniform_vector_float(...) description.
|
|
402
406
|
|
|
403
407
|
:param location:
|
|
@@ -409,21 +413,21 @@ This is deprecated and will always return -1.
|
|
|
409
413
|
class GPUShaderCreateInfo:
|
|
410
414
|
"""Stores and describes types and variables that are used in shader sources."""
|
|
411
415
|
|
|
412
|
-
def compute_source(self, source: str):
|
|
416
|
+
def compute_source(self, source: str) -> None:
|
|
413
417
|
"""compute shader source code written in GLSL.Example:`GLSL Cross Compilation <https://developer.blender.org/docs/features/gpu/glsl_cross_compilation/>`__
|
|
414
418
|
|
|
415
419
|
:param source: The compute shader source code.
|
|
416
420
|
:type source: str
|
|
417
421
|
"""
|
|
418
422
|
|
|
419
|
-
def define(self, name, value):
|
|
423
|
+
def define(self, name, value) -> None:
|
|
420
424
|
"""Add a preprocessing define directive. In GLSL it would be something like:
|
|
421
425
|
|
|
422
426
|
:param name:
|
|
423
427
|
:param value:
|
|
424
428
|
"""
|
|
425
429
|
|
|
426
|
-
def depth_write(self, value):
|
|
430
|
+
def depth_write(self, value) -> None:
|
|
427
431
|
"""Specify a depth write behavior when modifying gl_FragDepth.There is a common optimization for GPUs that relies on an early depth
|
|
428
432
|
test to be run before the fragment shader so that the shader evaluation
|
|
429
433
|
can be skipped if the fragment ends up being discarded because it is occluded.This optimization does not affect the final rendering, and is typically
|
|
@@ -439,7 +443,9 @@ class GPUShaderCreateInfo:
|
|
|
439
443
|
:LESS: enables depth write in a fragment shader for depth values thatare less than the depth value in the output buffer.
|
|
440
444
|
"""
|
|
441
445
|
|
|
442
|
-
def fragment_out(
|
|
446
|
+
def fragment_out(
|
|
447
|
+
self, slot: int, type: str, name: str, blend: str = "NONE"
|
|
448
|
+
) -> None:
|
|
443
449
|
"""Specify a fragment output corresponding to a framebuffer target slot.
|
|
444
450
|
|
|
445
451
|
:param slot: The attribute index.
|
|
@@ -482,7 +488,7 @@ class GPUShaderCreateInfo:
|
|
|
482
488
|
:type blend: str
|
|
483
489
|
"""
|
|
484
490
|
|
|
485
|
-
def fragment_source(self, source: str):
|
|
491
|
+
def fragment_source(self, source: str) -> None:
|
|
486
492
|
"""Fragment shader source code written in GLSL.Example:`GLSL Cross Compilation <https://developer.blender.org/docs/features/gpu/glsl_cross_compilation/>`__
|
|
487
493
|
|
|
488
494
|
:param source: The fragment shader source code.
|
|
@@ -491,7 +497,7 @@ class GPUShaderCreateInfo:
|
|
|
491
497
|
|
|
492
498
|
def image(
|
|
493
499
|
self, slot: int, format: str, type: str, name: str, qualifiers={"NO_RESTRICT"}
|
|
494
|
-
):
|
|
500
|
+
) -> None:
|
|
495
501
|
"""Specify an image resource used for arbitrary load and store operations.
|
|
496
502
|
|
|
497
503
|
:param slot: The image resource index.
|
|
@@ -660,7 +666,7 @@ class GPUShaderCreateInfo:
|
|
|
660
666
|
- WRITE
|
|
661
667
|
"""
|
|
662
668
|
|
|
663
|
-
def local_group_size(self, x: int, y: int = -1, z: int = -1):
|
|
669
|
+
def local_group_size(self, x: int, y: int = -1, z: int = -1) -> None:
|
|
664
670
|
"""Specify the local group size for compute shaders.
|
|
665
671
|
|
|
666
672
|
:param x: The local group size in the x dimension.
|
|
@@ -671,7 +677,7 @@ class GPUShaderCreateInfo:
|
|
|
671
677
|
:type z: int
|
|
672
678
|
"""
|
|
673
679
|
|
|
674
|
-
def push_constant(self, type: str, name: str, size: int = 0):
|
|
680
|
+
def push_constant(self, type: str, name: str, size: int = 0) -> None:
|
|
675
681
|
"""Specify a global access constant.
|
|
676
682
|
|
|
677
683
|
:param type: One of these types:
|
|
@@ -712,7 +718,7 @@ class GPUShaderCreateInfo:
|
|
|
712
718
|
:type size: int
|
|
713
719
|
"""
|
|
714
720
|
|
|
715
|
-
def sampler(self, slot: int, type: str, name: str):
|
|
721
|
+
def sampler(self, slot: int, type: str, name: str) -> None:
|
|
716
722
|
"""Specify an image texture sampler.
|
|
717
723
|
|
|
718
724
|
:param slot: The image texture sampler index.
|
|
@@ -787,13 +793,13 @@ class GPUShaderCreateInfo:
|
|
|
787
793
|
:type name: str
|
|
788
794
|
"""
|
|
789
795
|
|
|
790
|
-
def typedef_source(self, source):
|
|
796
|
+
def typedef_source(self, source) -> None:
|
|
791
797
|
"""Source code included before resource declaration. Useful for defining structs used by Uniform Buffers.Example:
|
|
792
798
|
|
|
793
799
|
:param source:
|
|
794
800
|
"""
|
|
795
801
|
|
|
796
|
-
def uniform_buf(self, slot: int, type_name: str, name: str):
|
|
802
|
+
def uniform_buf(self, slot: int, type_name: str, name: str) -> None:
|
|
797
803
|
"""Specify a uniform variable whose type can be one of those declared in `gpu.types.GPUShaderCreateInfo.typedef_source`.
|
|
798
804
|
|
|
799
805
|
:param slot: The uniform variable index.
|
|
@@ -804,7 +810,7 @@ class GPUShaderCreateInfo:
|
|
|
804
810
|
:type name: str
|
|
805
811
|
"""
|
|
806
812
|
|
|
807
|
-
def vertex_in(self, slot: int, type: str, name: str):
|
|
813
|
+
def vertex_in(self, slot: int, type: str, name: str) -> None:
|
|
808
814
|
"""Add a vertex shader input attribute.
|
|
809
815
|
|
|
810
816
|
:param slot: The attribute index.
|
|
@@ -845,14 +851,14 @@ class GPUShaderCreateInfo:
|
|
|
845
851
|
:type name: str
|
|
846
852
|
"""
|
|
847
853
|
|
|
848
|
-
def vertex_out(self, interface: GPUStageInterfaceInfo):
|
|
854
|
+
def vertex_out(self, interface: GPUStageInterfaceInfo) -> None:
|
|
849
855
|
"""Add a vertex shader output interface block.
|
|
850
856
|
|
|
851
857
|
:param interface: Object describing the block.
|
|
852
858
|
:type interface: GPUStageInterfaceInfo
|
|
853
859
|
"""
|
|
854
860
|
|
|
855
|
-
def vertex_source(self, source: str):
|
|
861
|
+
def vertex_source(self, source: str) -> None:
|
|
856
862
|
"""Vertex shader source code written in GLSL.Example:`GLSL Cross Compilation <https://developer.blender.org/docs/features/gpu/glsl_cross_compilation/>`__
|
|
857
863
|
|
|
858
864
|
:param source: The vertex shader source code.
|
|
@@ -868,7 +874,7 @@ class GPUStageInterfaceInfo:
|
|
|
868
874
|
:type: str
|
|
869
875
|
"""
|
|
870
876
|
|
|
871
|
-
def flat(self, type: str, name: str):
|
|
877
|
+
def flat(self, type: str, name: str) -> None:
|
|
872
878
|
"""Add an attribute with qualifier of type flat to the interface block.
|
|
873
879
|
|
|
874
880
|
:param type: One of these types:
|
|
@@ -907,7 +913,7 @@ class GPUStageInterfaceInfo:
|
|
|
907
913
|
:type name: str
|
|
908
914
|
"""
|
|
909
915
|
|
|
910
|
-
def no_perspective(self, type: str, name: str):
|
|
916
|
+
def no_perspective(self, type: str, name: str) -> None:
|
|
911
917
|
"""Add an attribute with qualifier of type no_perspective to the interface block.
|
|
912
918
|
|
|
913
919
|
:param type: One of these types:
|
|
@@ -946,7 +952,7 @@ class GPUStageInterfaceInfo:
|
|
|
946
952
|
:type name: str
|
|
947
953
|
"""
|
|
948
954
|
|
|
949
|
-
def smooth(self, type: str, name: str):
|
|
955
|
+
def smooth(self, type: str, name: str) -> None:
|
|
950
956
|
"""Add an attribute with qualifier of type smooth to the interface block.
|
|
951
957
|
|
|
952
958
|
:param type: One of these types:
|
|
@@ -1010,7 +1016,7 @@ class GPUTexture:
|
|
|
1010
1016
|
self,
|
|
1011
1017
|
format: str = "FLOAT",
|
|
1012
1018
|
value: collections.abc.Sequence[float] = (0.0, 0.0, 0.0, 1.0),
|
|
1013
|
-
):
|
|
1019
|
+
) -> None:
|
|
1014
1020
|
"""Fill texture with specific value.
|
|
1015
1021
|
|
|
1016
1022
|
:param format: The format that describes the content of a single item.
|
|
@@ -1020,13 +1026,13 @@ class GPUTexture:
|
|
|
1020
1026
|
:type value: collections.abc.Sequence[float]
|
|
1021
1027
|
"""
|
|
1022
1028
|
|
|
1023
|
-
def read(self):
|
|
1029
|
+
def read(self) -> None:
|
|
1024
1030
|
"""Creates a buffer with the value of all pixels."""
|
|
1025
1031
|
|
|
1026
1032
|
class GPUUniformBuf:
|
|
1027
1033
|
"""This object gives access to off uniform buffers."""
|
|
1028
1034
|
|
|
1029
|
-
def update(self, data):
|
|
1035
|
+
def update(self, data) -> None:
|
|
1030
1036
|
"""Update the data of the uniform buffer object.
|
|
1031
1037
|
|
|
1032
1038
|
:param data:
|
|
@@ -1043,7 +1049,7 @@ class GPUVertBuf:
|
|
|
1043
1049
|
| collections.abc.Sequence[collections.abc.Sequence[int]]
|
|
1044
1050
|
| collections.abc.Sequence[float]
|
|
1045
1051
|
| collections.abc.Sequence[int],
|
|
1046
|
-
):
|
|
1052
|
+
) -> None:
|
|
1047
1053
|
"""Insert data into the buffer for a single attribute.
|
|
1048
1054
|
|
|
1049
1055
|
:param id: Either the name or the id of the attribute.
|
|
@@ -1055,7 +1061,7 @@ class GPUVertBuf:
|
|
|
1055
1061
|
class GPUVertFormat:
|
|
1056
1062
|
"""This object contains information about the structure of a vertex buffer."""
|
|
1057
1063
|
|
|
1058
|
-
def attr_add(self, id: str, comp_type: str, len: int, fetch_mode: str):
|
|
1064
|
+
def attr_add(self, id: str, comp_type: str, len: int, fetch_mode: str) -> None:
|
|
1059
1065
|
"""Add a new attribute to the format.
|
|
1060
1066
|
|
|
1061
1067
|
:param id: Name the attribute. Often position, normal, ...
|
gpu_extras/presets/__init__.pyi
CHANGED
|
@@ -11,7 +11,7 @@ def draw_circle_2d(
|
|
|
11
11
|
radius: float,
|
|
12
12
|
*,
|
|
13
13
|
segments: None | int | None = None,
|
|
14
|
-
):
|
|
14
|
+
) -> None:
|
|
15
15
|
"""Draw a circle.
|
|
16
16
|
|
|
17
17
|
:param position: 2D position where the circle will be drawn.
|
|
@@ -32,7 +32,7 @@ def draw_texture_2d(
|
|
|
32
32
|
position: collections.abc.Sequence[float] | mathutils.Vector,
|
|
33
33
|
width: float,
|
|
34
34
|
height: float,
|
|
35
|
-
):
|
|
35
|
+
) -> None:
|
|
36
36
|
"""Draw a 2d texture.
|
|
37
37
|
|
|
38
38
|
:param texture: GPUTexture to draw (e.g. gpu.texture.from_image(image) for `bpy.types.Image`).
|
graphviz_export/__init__.pyi
CHANGED
|
@@ -3,7 +3,7 @@ import collections.abc
|
|
|
3
3
|
import typing_extensions
|
|
4
4
|
import numpy.typing as npt
|
|
5
5
|
|
|
6
|
-
def compat_str(text, line_length=0): ...
|
|
6
|
+
def compat_str(text, line_length=0) -> None: ...
|
|
7
7
|
def graph_armature(
|
|
8
8
|
obj, filepath, FAKE_PARENT=True, CONSTRAINTS=True, DRIVERS=True, XTRA_INFO=True
|
|
9
|
-
): ...
|
|
9
|
+
) -> None: ...
|
idprop/types/__init__.pyi
CHANGED
|
@@ -7,30 +7,30 @@ class IDPropertyArray:
|
|
|
7
7
|
typecode: typing.Any
|
|
8
8
|
""" The type of the data in the array {'f': float, 'd': double, 'i': int, 'b': bool}."""
|
|
9
9
|
|
|
10
|
-
def to_list(self):
|
|
10
|
+
def to_list(self) -> None:
|
|
11
11
|
"""Return the array as a list."""
|
|
12
12
|
|
|
13
13
|
class IDPropertyGroup:
|
|
14
14
|
name: typing.Any
|
|
15
15
|
""" The name of this Group."""
|
|
16
16
|
|
|
17
|
-
def clear(self):
|
|
17
|
+
def clear(self) -> None:
|
|
18
18
|
"""Clear all members from this group."""
|
|
19
19
|
|
|
20
|
-
def get(self, key, default=None):
|
|
20
|
+
def get(self, key, default=None) -> None:
|
|
21
21
|
"""Return the value for key, if it exists, else default.
|
|
22
22
|
|
|
23
23
|
:param key:
|
|
24
24
|
:param default:
|
|
25
25
|
"""
|
|
26
26
|
|
|
27
|
-
def items(self):
|
|
27
|
+
def items(self) -> None:
|
|
28
28
|
"""Iterate through the items in the dict; behaves like dictionary method items."""
|
|
29
29
|
|
|
30
|
-
def keys(self):
|
|
30
|
+
def keys(self) -> None:
|
|
31
31
|
"""Return the keys associated with this group as a list of strings."""
|
|
32
32
|
|
|
33
|
-
def pop(self, key: str, default: typing.Any):
|
|
33
|
+
def pop(self, key: str, default: typing.Any) -> None:
|
|
34
34
|
"""Remove an item from the group, returning a Python representation.
|
|
35
35
|
|
|
36
36
|
:param key: Name of item to remove.
|
|
@@ -39,17 +39,17 @@ class IDPropertyGroup:
|
|
|
39
39
|
:type default: typing.Any
|
|
40
40
|
"""
|
|
41
41
|
|
|
42
|
-
def to_dict(self):
|
|
42
|
+
def to_dict(self) -> None:
|
|
43
43
|
"""Return a purely Python version of the group."""
|
|
44
44
|
|
|
45
|
-
def update(self, other: dict[str, typing.Any] | typing_extensions.Self):
|
|
45
|
+
def update(self, other: dict[str, typing.Any] | typing_extensions.Self) -> None:
|
|
46
46
|
"""Update key, values.
|
|
47
47
|
|
|
48
48
|
:param other: Updates the values in the group with this.
|
|
49
49
|
:type other: dict[str, typing.Any] | typing_extensions.Self
|
|
50
50
|
"""
|
|
51
51
|
|
|
52
|
-
def values(self):
|
|
52
|
+
def values(self) -> None:
|
|
53
53
|
"""Return the values associated with this group."""
|
|
54
54
|
|
|
55
55
|
class IDPropertyGroupIterItems: ...
|
imbuf/__init__.pyi
CHANGED
|
@@ -45,7 +45,9 @@ def new(size: tuple[int, int]) -> imbuf.types.ImBuf:
|
|
|
45
45
|
:rtype: imbuf.types.ImBuf
|
|
46
46
|
"""
|
|
47
47
|
|
|
48
|
-
def write(
|
|
48
|
+
def write(
|
|
49
|
+
image: imbuf.types.ImBuf, filepath: None | bytes | str = image.filepath
|
|
50
|
+
) -> None:
|
|
49
51
|
"""Write an image.
|
|
50
52
|
|
|
51
53
|
:param image: the image to write.
|
imbuf/types/__init__.pyi
CHANGED
|
@@ -44,7 +44,7 @@ class ImBuf:
|
|
|
44
44
|
:rtype: typing_extensions.Self
|
|
45
45
|
"""
|
|
46
46
|
|
|
47
|
-
def crop(self, min: tuple[int, int], max: tuple[int, int]):
|
|
47
|
+
def crop(self, min: tuple[int, int], max: tuple[int, int]) -> None:
|
|
48
48
|
"""Crop the image.
|
|
49
49
|
|
|
50
50
|
:param min: X, Y minimum.
|
|
@@ -53,10 +53,10 @@ class ImBuf:
|
|
|
53
53
|
:type max: tuple[int, int]
|
|
54
54
|
"""
|
|
55
55
|
|
|
56
|
-
def free(self):
|
|
56
|
+
def free(self) -> None:
|
|
57
57
|
"""Clear image data immediately (causing an error on re-use)."""
|
|
58
58
|
|
|
59
|
-
def resize(self, size: tuple[int, int], method: str = "FAST"):
|
|
59
|
+
def resize(self, size: tuple[int, int], method: str = "FAST") -> None:
|
|
60
60
|
"""Resize the image.
|
|
61
61
|
|
|
62
62
|
:param size: New size.
|