fake-bpy-module-latest 20251002__py3-none-any.whl → 20260113__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.
- {bl_i18n_utils → _bl_i18n_utils}/__init__.pyi +1 -0
- {bl_i18n_utils → _bl_i18n_utils}/settings/__init__.pyi +2 -0
- _bl_i18n_utils/utils_spell_check/__init__.pyi +22 -0
- {bl_ui_utils → _bl_ui_utils}/__init__.pyi +1 -0
- _bpy_internal/__init__.pyi +1 -0
- _bpy_internal/disk_file_hash_service/__init__.pyi +19 -0
- _bpy_internal/disk_file_hash_service/backend_sqlite/__init__.pyi +48 -0
- _bpy_internal/disk_file_hash_service/hash_service/__init__.pyi +64 -0
- _bpy_internal/disk_file_hash_service/types/__init__.pyi +53 -0
- _bpy_types/__init__.pyi +17 -1
- aud/__init__.pyi +70 -0
- bl_math/__init__.pyi +3 -1
- bl_operators/__init__.pyi +1 -0
- bl_operators/anim/__init__.pyi +49 -0
- bl_operators/copy_global_transform/__init__.pyi +271 -0
- bl_operators/node/__init__.pyi +38 -4
- bl_operators/object/__init__.pyi +0 -7
- bl_operators/uvcalc_follow_active/__init__.pyi +1 -1
- bl_operators/uvcalc_transform/__init__.pyi +21 -8
- bl_ui/__init__.pyi +3 -0
- bl_ui/generic_ui_list/__init__.pyi +2 -2
- bl_ui/node_add_menu/__init__.pyi +13 -6
- bl_ui/node_add_menu_compositor/__init__.pyi +75 -19
- bl_ui/node_add_menu_geometry/__init__.pyi +83 -83
- bl_ui/node_add_menu_shader/__init__.pyi +21 -19
- bl_ui/node_add_menu_texture/__init__.pyi +1 -1
- bl_ui/properties_constraint/__init__.pyi +68 -0
- bl_ui/properties_object/__init__.pyi +37 -0
- bl_ui/properties_paint_common/__init__.pyi +23 -6
- bl_ui/properties_strip/__init__.pyi +786 -0
- bl_ui/properties_strip_modifier/__init__.pyi +47 -0
- bl_ui/properties_view_layer/__init__.pyi +7 -0
- bl_ui/space_clip/__init__.pyi +1 -0
- bl_ui/space_dopesheet/__init__.pyi +56 -0
- bl_ui/space_image/__init__.pyi +2 -2
- bl_ui/space_node/__init__.pyi +31 -37
- bl_ui/space_properties/__init__.pyi +31 -0
- bl_ui/space_sequencer/__init__.pyi +42 -772
- bl_ui/space_time/__init__.pyi +7 -29
- bl_ui/space_topbar/__init__.pyi +7 -0
- bl_ui/space_userpref/__init__.pyi +7 -2
- bl_ui/space_view3d/__init__.pyi +38 -10
- bl_ui/space_view3d_sidebar/__init__.pyi +135 -0
- bl_ui/space_view3d_toolbar/__init__.pyi +2 -1
- blf/__init__.pyi +9 -6
- bmesh/ops/__init__.pyi +3 -0
- bmesh/types/__init__.pyi +184 -36
- bmesh/utils/__init__.pyi +22 -5
- bpy/app/__init__.pyi +57 -55
- bpy/app/translations/__init__.pyi +1 -1
- bpy/ops/anim/__init__.pyi +18 -12
- bpy/ops/armature/__init__.pyi +1 -1
- bpy/ops/curves/__init__.pyi +3 -3
- bpy/ops/export_anim/__init__.pyi +3 -0
- bpy/ops/export_scene/__init__.pyi +1 -1
- bpy/ops/geometry/__init__.pyi +0 -83
- bpy/ops/grease_pencil/__init__.pyi +3 -3
- bpy/ops/import_anim/__init__.pyi +2 -2
- bpy/ops/mesh/__init__.pyi +2 -2
- bpy/ops/nla/__init__.pyi +1 -1
- bpy/ops/node/__init__.pyi +29 -7
- bpy/ops/object/__init__.pyi +93 -0
- bpy/ops/pose/__init__.pyi +4 -4
- bpy/ops/render/__init__.pyi +10 -7
- bpy/ops/screen/__init__.pyi +29 -0
- bpy/ops/sculpt/__init__.pyi +30 -41
- bpy/ops/sequencer/__init__.pyi +67 -3
- bpy/ops/text/__init__.pyi +3 -0
- bpy/ops/transform/__init__.pyi +10 -3
- bpy/ops/uv/__init__.pyi +54 -0
- bpy/ops/wm/__init__.pyi +20 -32
- bpy/props/__init__.pyi +5 -11
- bpy/stub_internal/rna_enums/__init__.pyi +50 -21
- bpy/types/__init__.pyi +10237 -2994
- bpy/utils/__init__.pyi +3 -3
- bpy/utils/previews/__init__.pyi +1 -1
- bpy_extras/anim_utils/__init__.pyi +21 -8
- bpy_extras/id_map_utils/__init__.pyi +15 -6
- bpy_extras/keyconfig_utils/__init__.pyi +1 -1
- {fake_bpy_module_latest-20251002.dist-info → fake_bpy_module_latest-20260113.dist-info}/METADATA +3 -1
- {fake_bpy_module_latest-20251002.dist-info → fake_bpy_module_latest-20260113.dist-info}/RECORD +138 -129
- {fake_bpy_module_latest-20251002.dist-info → fake_bpy_module_latest-20260113.dist-info}/top_level.txt +14 -14
- freestyle/utils/__init__.pyi +1 -1
- gpu/matrix/__init__.pyi +1 -1
- gpu/shader/__init__.pyi +22 -1
- gpu/state/__init__.pyi +77 -27
- gpu/types/__init__.pyi +91 -20
- gpu_extras/presets/__init__.pyi +7 -0
- idprop/types/__init__.pyi +6 -2
- imbuf/__init__.pyi +2 -2
- imbuf/types/__init__.pyi +2 -2
- keyingsets_builtins/__init__.pyi +1 -1
- mathutils/__init__.pyi +53 -29
- mathutils/bvhtree/__init__.pyi +6 -4
- mathutils/geometry/__init__.pyi +31 -13
- mathutils/interpolate/__init__.pyi +4 -2
- {animsys_refactor → _animsys_refactor}/__init__.pyi +0 -0
- {animsys_refactor → _animsys_refactor}/py.typed +0 -0
- {bl_console_utils → _bl_console_utils}/__init__.pyi +0 -0
- {bl_console_utils → _bl_console_utils}/autocomplete/__init__.pyi +0 -0
- {bl_console_utils → _bl_console_utils}/autocomplete/complete_calltip/__init__.pyi +0 -0
- {bl_console_utils → _bl_console_utils}/autocomplete/complete_import/__init__.pyi +0 -0
- {bl_console_utils → _bl_console_utils}/autocomplete/complete_namespace/__init__.pyi +0 -0
- {bl_console_utils → _bl_console_utils}/autocomplete/intellisense/__init__.pyi +0 -0
- {bl_console_utils → _bl_console_utils}/py.typed +0 -0
- {bl_i18n_utils → _bl_i18n_utils}/bl_extract_messages/__init__.pyi +0 -0
- {bl_i18n_utils → _bl_i18n_utils}/merge_po/__init__.pyi +0 -0
- {bl_i18n_utils → _bl_i18n_utils}/py.typed +0 -0
- {bl_i18n_utils → _bl_i18n_utils}/utils/__init__.pyi +0 -0
- {bl_i18n_utils → _bl_i18n_utils}/utils_cli/__init__.pyi +0 -0
- {bl_i18n_utils → _bl_i18n_utils}/utils_languages_menu/__init__.pyi +0 -0
- {bl_i18n_utils → _bl_i18n_utils}/utils_rtl/__init__.pyi +0 -0
- {bl_previews_utils → _bl_previews_utils}/__init__.pyi +0 -0
- {bl_previews_utils → _bl_previews_utils}/bl_previews_render/__init__.pyi +0 -0
- {bl_previews_utils → _bl_previews_utils}/py.typed +0 -0
- {bl_rna_utils → _bl_rna_utils}/__init__.pyi +0 -0
- {bl_rna_utils → _bl_rna_utils}/data_path/__init__.pyi +0 -0
- {bl_rna_utils → _bl_rna_utils}/py.typed +0 -0
- {bl_text_utils → _bl_text_utils}/__init__.pyi +0 -0
- {bl_text_utils → _bl_text_utils}/external_editor/__init__.pyi +0 -0
- {bl_text_utils → _bl_text_utils}/py.typed +0 -0
- {bl_ui_utils → _bl_ui_utils}/layout/__init__.pyi +0 -0
- {bl_ui_utils → _bl_ui_utils}/py.typed +0 -0
- {bpy_restrict_state → _bpy_restrict_state}/__init__.pyi +0 -0
- {bpy_restrict_state → _bpy_restrict_state}/py.typed +0 -0
- {console_python → _console_python}/__init__.pyi +0 -0
- {console_python → _console_python}/py.typed +0 -0
- {console_shell → _console_shell}/__init__.pyi +0 -0
- {console_shell → _console_shell}/py.typed +0 -0
- {graphviz_export → _graphviz_export}/__init__.pyi +0 -0
- {graphviz_export → _graphviz_export}/py.typed +0 -0
- {keyingsets_utils → _keyingsets_utils}/__init__.pyi +0 -0
- {keyingsets_utils → _keyingsets_utils}/py.typed +0 -0
- {rna_info → _rna_info}/__init__.pyi +0 -0
- {rna_info → _rna_info}/py.typed +0 -0
- {rna_xml → _rna_xml}/__init__.pyi +0 -0
- {rna_xml → _rna_xml}/py.typed +0 -0
- {fake_bpy_module_latest-20251002.dist-info → fake_bpy_module_latest-20260113.dist-info}/WHEEL +0 -0
gpu/state/__init__.pyi
CHANGED
|
@@ -7,12 +7,21 @@ import typing
|
|
|
7
7
|
import collections.abc
|
|
8
8
|
import typing_extensions
|
|
9
9
|
import numpy.typing as npt
|
|
10
|
+
import gpu.types
|
|
10
11
|
|
|
11
|
-
def active_framebuffer_get(
|
|
12
|
-
"""Return the active frame-buffer in context.
|
|
12
|
+
def active_framebuffer_get() -> gpu.types.GPUFrameBuffer:
|
|
13
|
+
"""Return the active frame-buffer in context.
|
|
13
14
|
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
:return: The active framebuffer.
|
|
16
|
+
:rtype: gpu.types.GPUFrameBuffer
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
def blend_get() -> str:
|
|
20
|
+
"""Current blending equation.
|
|
21
|
+
|
|
22
|
+
:return: The current blend mode.
|
|
23
|
+
:rtype: str
|
|
24
|
+
"""
|
|
16
25
|
|
|
17
26
|
def blend_set(mode: str) -> None:
|
|
18
27
|
"""Defines the fixed pipeline blending equation.
|
|
@@ -44,24 +53,39 @@ def clip_distances_set(distances_enabled: int) -> None:
|
|
|
44
53
|
:type distances_enabled: int
|
|
45
54
|
"""
|
|
46
55
|
|
|
47
|
-
def color_mask_set(r: bool, g, b, a) -> None:
|
|
56
|
+
def color_mask_set(r: bool, g: bool, b: bool, a: bool) -> None:
|
|
48
57
|
"""Enable or disable writing of frame buffer color components.
|
|
49
58
|
|
|
50
|
-
:param r:
|
|
59
|
+
:param r: Red component.
|
|
51
60
|
:type r: bool
|
|
61
|
+
:param g: Green component.
|
|
62
|
+
:type g: bool
|
|
63
|
+
:param b: Blue component.
|
|
64
|
+
:type b: bool
|
|
65
|
+
:param a: Alpha component.
|
|
66
|
+
:type a: bool
|
|
52
67
|
"""
|
|
53
68
|
|
|
54
|
-
def depth_mask_get() ->
|
|
55
|
-
"""Writing status in the depth component.
|
|
69
|
+
def depth_mask_get() -> bool:
|
|
70
|
+
"""Writing status in the depth component.
|
|
56
71
|
|
|
57
|
-
|
|
72
|
+
:return: True if writing to the depth component is enabled.
|
|
73
|
+
:rtype: bool
|
|
74
|
+
"""
|
|
75
|
+
|
|
76
|
+
def depth_mask_set(value: bool) -> None:
|
|
58
77
|
"""Write to depth component.
|
|
59
78
|
|
|
60
79
|
:param value: True for writing to the depth component.
|
|
80
|
+
:type value: bool
|
|
61
81
|
"""
|
|
62
82
|
|
|
63
|
-
def depth_test_get() ->
|
|
64
|
-
"""Current depth_test equation.
|
|
83
|
+
def depth_test_get() -> str:
|
|
84
|
+
"""Current depth_test equation.
|
|
85
|
+
|
|
86
|
+
:return: The current depth test mode.
|
|
87
|
+
:rtype: str
|
|
88
|
+
"""
|
|
65
89
|
|
|
66
90
|
def depth_test_set(mode: str) -> None:
|
|
67
91
|
"""Defines the depth_test equation.
|
|
@@ -71,25 +95,39 @@ def depth_test_set(mode: str) -> None:
|
|
|
71
95
|
:type mode: str
|
|
72
96
|
"""
|
|
73
97
|
|
|
74
|
-
def face_culling_set(culling) -> None:
|
|
75
|
-
"""Specify whether none, front-facing or back-facing facets can be culled.
|
|
98
|
+
def face_culling_set(culling: str) -> None:
|
|
99
|
+
"""Specify whether none, front-facing or back-facing facets can be culled.
|
|
76
100
|
|
|
77
|
-
|
|
101
|
+
:param culling: NONE, FRONT or BACK.
|
|
102
|
+
:type culling: str
|
|
103
|
+
"""
|
|
104
|
+
|
|
105
|
+
def front_facing_set(invert: bool) -> None:
|
|
78
106
|
"""Specifies the orientation of front-facing polygons.
|
|
79
107
|
|
|
80
108
|
:param invert: True for clockwise polygons as front-facing.
|
|
109
|
+
:type invert: bool
|
|
110
|
+
"""
|
|
111
|
+
|
|
112
|
+
def line_width_get() -> float:
|
|
113
|
+
"""Current width of rasterized lines.
|
|
114
|
+
|
|
115
|
+
:return: The current line width.
|
|
116
|
+
:rtype: float
|
|
81
117
|
"""
|
|
82
118
|
|
|
83
|
-
def
|
|
84
|
-
"""
|
|
119
|
+
def line_width_set(width: float) -> None:
|
|
120
|
+
"""Specify the width of rasterized lines.
|
|
85
121
|
|
|
86
|
-
|
|
87
|
-
|
|
122
|
+
:param width: New width.
|
|
123
|
+
:type width: float
|
|
124
|
+
"""
|
|
88
125
|
|
|
89
|
-
def point_size_set(size) -> None:
|
|
126
|
+
def point_size_set(size: float) -> None:
|
|
90
127
|
"""Specify the diameter of rasterized points.
|
|
91
128
|
|
|
92
129
|
:param size: New diameter.
|
|
130
|
+
:type size: float
|
|
93
131
|
"""
|
|
94
132
|
|
|
95
133
|
def program_point_size_set(enable: bool) -> None:
|
|
@@ -110,14 +148,18 @@ def scissor_get() -> tuple[int, int, int, int]:
|
|
|
110
148
|
:rtype: tuple[int, int, int, int]
|
|
111
149
|
"""
|
|
112
150
|
|
|
113
|
-
def scissor_set(x: int, y, xsize: int, ysize) -> None:
|
|
151
|
+
def scissor_set(x: int, y: int, xsize: int, ysize: int) -> None:
|
|
114
152
|
"""Specifies the scissor area of the active framebuffer.
|
|
115
153
|
Note: The scissor state is not saved upon framebuffer rebind.
|
|
116
154
|
|
|
117
|
-
:param x:
|
|
155
|
+
:param x: Lower left corner x coordinate, in pixels.
|
|
118
156
|
:type x: int
|
|
119
|
-
:param
|
|
157
|
+
:param y: Lower left corner y coordinate, in pixels.
|
|
158
|
+
:type y: int
|
|
159
|
+
:param xsize: Width of the scissor rectangle.
|
|
120
160
|
:type xsize: int
|
|
161
|
+
:param ysize: Height of the scissor rectangle.
|
|
162
|
+
:type ysize: int
|
|
121
163
|
"""
|
|
122
164
|
|
|
123
165
|
def scissor_test_set(enable: bool) -> None:
|
|
@@ -128,15 +170,23 @@ def scissor_test_set(enable: bool) -> None:
|
|
|
128
170
|
:type enable: bool
|
|
129
171
|
"""
|
|
130
172
|
|
|
131
|
-
def viewport_get() ->
|
|
132
|
-
"""Viewport of the active framebuffer.
|
|
173
|
+
def viewport_get() -> tuple[int, int, int, int]:
|
|
174
|
+
"""Viewport of the active framebuffer.
|
|
175
|
+
|
|
176
|
+
:return: The viewport as a tuple (x, y, xsize, ysize).
|
|
177
|
+
:rtype: tuple[int, int, int, int]
|
|
178
|
+
"""
|
|
133
179
|
|
|
134
|
-
def viewport_set(x: int, y, xsize: int, ysize) -> None:
|
|
180
|
+
def viewport_set(x: int, y: int, xsize: int, ysize: int) -> None:
|
|
135
181
|
"""Specifies the viewport of the active framebuffer.
|
|
136
182
|
Note: The viewport state is not saved upon framebuffer rebind.
|
|
137
183
|
|
|
138
|
-
:param x:
|
|
184
|
+
:param x: Lower left corner x coordinate, in pixels.
|
|
139
185
|
:type x: int
|
|
140
|
-
:param
|
|
186
|
+
:param y: Lower left corner y coordinate, in pixels.
|
|
187
|
+
:type y: int
|
|
188
|
+
:param xsize: Width of the viewport.
|
|
141
189
|
:type xsize: int
|
|
190
|
+
:param ysize: Height of the viewport.
|
|
191
|
+
:type ysize: int
|
|
142
192
|
"""
|
gpu/types/__init__.pyi
CHANGED
|
@@ -14,11 +14,12 @@ class Buffer:
|
|
|
14
14
|
class GPUBatch:
|
|
15
15
|
"""Reusable container for drawable geometry."""
|
|
16
16
|
|
|
17
|
-
def draw(self, shader=None) -> None:
|
|
17
|
+
def draw(self, shader: GPUShader | None = 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.
|
|
21
21
|
If None is passed, the last shader set to this batch will run.
|
|
22
|
+
:type shader: GPUShader | None
|
|
22
23
|
"""
|
|
23
24
|
|
|
24
25
|
def draw_instanced(
|
|
@@ -116,7 +117,7 @@ class GPUFrameBuffer:
|
|
|
116
117
|
slot: int,
|
|
117
118
|
format: str,
|
|
118
119
|
*,
|
|
119
|
-
data: Buffer =
|
|
120
|
+
data: Buffer | None = None,
|
|
120
121
|
) -> Buffer:
|
|
121
122
|
"""Read a block of pixels from the frame buffer.
|
|
122
123
|
|
|
@@ -134,13 +135,13 @@ class GPUFrameBuffer:
|
|
|
134
135
|
UINT_24_8 is deprecated, use FLOAT instead.
|
|
135
136
|
:type format: str
|
|
136
137
|
:param data: Optional Buffer object to fill with the pixels values.
|
|
137
|
-
:type data: Buffer
|
|
138
|
+
:type data: Buffer | None
|
|
138
139
|
:return: The Buffer with the read pixels.
|
|
139
140
|
:rtype: Buffer
|
|
140
141
|
"""
|
|
141
142
|
|
|
142
143
|
def read_depth(
|
|
143
|
-
self, x: int, y, xsize: int, ysize, *, data: Buffer =
|
|
144
|
+
self, x: int, y, xsize: int, ysize, *, data: Buffer | None = None
|
|
144
145
|
) -> Buffer:
|
|
145
146
|
"""Read a pixel depth block from the frame buffer.
|
|
146
147
|
|
|
@@ -151,7 +152,7 @@ class GPUFrameBuffer:
|
|
|
151
152
|
:type xsize: int
|
|
152
153
|
:param ysize:
|
|
153
154
|
:param data: Optional Buffer object to fill with the pixels values.
|
|
154
|
-
:type data: Buffer
|
|
155
|
+
:type data: Buffer | None
|
|
155
156
|
:return: The Buffer with the read pixels.
|
|
156
157
|
:rtype: Buffer
|
|
157
158
|
"""
|
|
@@ -294,12 +295,13 @@ This is deprecated and will always return -1.
|
|
|
294
295
|
:type texture: GPUTexture
|
|
295
296
|
"""
|
|
296
297
|
|
|
297
|
-
def uniform_block(self, name: str, ubo) -> None:
|
|
298
|
-
"""Specify the value of
|
|
298
|
+
def uniform_block(self, name: str, ubo: GPUUniformBuf) -> None:
|
|
299
|
+
"""Specify the value of a uniform buffer object variable for the current GPUShader.
|
|
299
300
|
|
|
300
|
-
:param name:
|
|
301
|
+
:param name: Name of the uniform variable whose UBO is to be specified.
|
|
301
302
|
:type name: str
|
|
302
303
|
:param ubo: Uniform Buffer to attach.
|
|
304
|
+
:type ubo: GPUUniformBuf
|
|
303
305
|
"""
|
|
304
306
|
|
|
305
307
|
def uniform_block_from_name(self, name: str) -> int:
|
|
@@ -342,19 +344,19 @@ This is deprecated and will always return -1.
|
|
|
342
344
|
:rtype: int
|
|
343
345
|
"""
|
|
344
346
|
|
|
345
|
-
def uniform_int(self, name: str, seq: collections.abc.Sequence[int]) -> None:
|
|
347
|
+
def uniform_int(self, name: str, seq: collections.abc.Sequence[int] | int) -> None:
|
|
346
348
|
"""Specify the value of a uniform variable for the current program object.
|
|
347
349
|
|
|
348
|
-
:param name:
|
|
350
|
+
:param name: Name of the uniform variable whose value is to be changed.
|
|
349
351
|
:type name: str
|
|
350
352
|
:param seq: Value that will be used to update the specified uniform variable.
|
|
351
|
-
:type seq: collections.abc.Sequence[int]
|
|
353
|
+
:type seq: collections.abc.Sequence[int] | int
|
|
352
354
|
"""
|
|
353
355
|
|
|
354
356
|
def uniform_sampler(self, name: str, texture: GPUTexture) -> None:
|
|
355
357
|
"""Specify the value of a texture uniform variable for the current GPUShader.
|
|
356
358
|
|
|
357
|
-
:param name:
|
|
359
|
+
:param name: Name of the uniform variable whose texture is to be specified.
|
|
358
360
|
:type name: str
|
|
359
361
|
:param texture: Texture to attach.
|
|
360
362
|
:type texture: GPUTexture
|
|
@@ -391,13 +393,18 @@ This is deprecated and will always return -1.
|
|
|
391
393
|
:type count: int
|
|
392
394
|
"""
|
|
393
395
|
|
|
394
|
-
def uniform_vector_int(
|
|
395
|
-
|
|
396
|
+
def uniform_vector_int(
|
|
397
|
+
self, location: int, buffer, length: int, count: int
|
|
398
|
+
) -> None:
|
|
399
|
+
"""Set the buffer to fill the uniform.
|
|
396
400
|
|
|
397
|
-
:param location:
|
|
398
|
-
:
|
|
399
|
-
:param
|
|
400
|
-
:param
|
|
401
|
+
:param location: Location of the uniform variable to be modified.
|
|
402
|
+
:type location: int
|
|
403
|
+
:param buffer: Buffer object with format matching the uniform.
|
|
404
|
+
:param length: Size of the uniform data type.
|
|
405
|
+
:type length: int
|
|
406
|
+
:param count: Specifies the number of elements that are to be modified.
|
|
407
|
+
:type count: int
|
|
401
408
|
"""
|
|
402
409
|
|
|
403
410
|
class GPUShaderCreateInfo:
|
|
@@ -419,7 +426,7 @@ class GPUShaderCreateInfo:
|
|
|
419
426
|
:type value: str
|
|
420
427
|
"""
|
|
421
428
|
|
|
422
|
-
def depth_write(self, value) -> None:
|
|
429
|
+
def depth_write(self, value: str) -> None:
|
|
423
430
|
"""Specify a depth write behavior when modifying gl_FragDepth.There is a common optimization for GPUs that relies on an early depth
|
|
424
431
|
test to be run before the fragment shader so that the shader evaluation
|
|
425
432
|
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
|
|
@@ -433,6 +440,7 @@ class GPUShaderCreateInfo:
|
|
|
433
440
|
:ANY: enables depth write in a fragment shader for any fragments
|
|
434
441
|
:GREATER: enables depth write in a fragment shader for depth values thatare greater than the depth value in the output buffer.
|
|
435
442
|
:LESS: enables depth write in a fragment shader for depth values thatare less than the depth value in the output buffer.
|
|
443
|
+
:type value: str
|
|
436
444
|
"""
|
|
437
445
|
|
|
438
446
|
def fragment_out(
|
|
@@ -991,7 +999,7 @@ class GPUStageInterfaceInfo:
|
|
|
991
999
|
"""
|
|
992
1000
|
|
|
993
1001
|
class GPUTexture:
|
|
994
|
-
"""This object gives access to
|
|
1002
|
+
"""This object gives access to GPU textures."""
|
|
995
1003
|
|
|
996
1004
|
format: str
|
|
997
1005
|
""" Format of the texture.
|
|
@@ -1011,6 +1019,13 @@ class GPUTexture:
|
|
|
1011
1019
|
:type: int
|
|
1012
1020
|
"""
|
|
1013
1021
|
|
|
1022
|
+
def anisotropic_filter(self, use_anisotropic: bool) -> None:
|
|
1023
|
+
"""Set anisotropic filter usage. This only has effect if mipmapping is enabled.
|
|
1024
|
+
|
|
1025
|
+
:param use_anisotropic: If set to true, the texture will use anisotropic filtering.
|
|
1026
|
+
:type use_anisotropic: bool
|
|
1027
|
+
"""
|
|
1028
|
+
|
|
1014
1029
|
def clear(
|
|
1015
1030
|
self,
|
|
1016
1031
|
format: str = "FLOAT",
|
|
@@ -1026,6 +1041,62 @@ class GPUTexture:
|
|
|
1026
1041
|
:type value: collections.abc.Sequence[float]
|
|
1027
1042
|
"""
|
|
1028
1043
|
|
|
1044
|
+
def extend_mode(
|
|
1045
|
+
self,
|
|
1046
|
+
extend_mode: typing.Literal[
|
|
1047
|
+
"EXTEND", "REPEAT", "MIRRORED_REPEAT", "CLAMP_TO_BORDER"
|
|
1048
|
+
] = "EXTEND",
|
|
1049
|
+
/,
|
|
1050
|
+
) -> None:
|
|
1051
|
+
"""Set texture sampling method for coordinates outside of the [0..1] uv range along
|
|
1052
|
+
both the x and y axis.
|
|
1053
|
+
|
|
1054
|
+
:param extend_mode: the specified extent mode.
|
|
1055
|
+
:type extend_mode: typing.Literal['EXTEND', 'REPEAT', 'MIRRORED_REPEAT', 'CLAMP_TO_BORDER']
|
|
1056
|
+
"""
|
|
1057
|
+
|
|
1058
|
+
def extend_mode_x(
|
|
1059
|
+
self,
|
|
1060
|
+
extend_mode: typing.Literal[
|
|
1061
|
+
"EXTEND", "REPEAT", "MIRRORED_REPEAT", "CLAMP_TO_BORDER"
|
|
1062
|
+
] = "EXTEND",
|
|
1063
|
+
/,
|
|
1064
|
+
) -> None:
|
|
1065
|
+
"""Set texture sampling method for coordinates outside of the [0..1] uv range along the x axis.
|
|
1066
|
+
|
|
1067
|
+
:param extend_mode: the specified extent mode.
|
|
1068
|
+
:type extend_mode: typing.Literal['EXTEND', 'REPEAT', 'MIRRORED_REPEAT', 'CLAMP_TO_BORDER']
|
|
1069
|
+
"""
|
|
1070
|
+
|
|
1071
|
+
def extend_mode_y(
|
|
1072
|
+
self,
|
|
1073
|
+
extend_mode: typing.Literal[
|
|
1074
|
+
"EXTEND", "REPEAT", "MIRRORED_REPEAT", "CLAMP_TO_BORDER"
|
|
1075
|
+
] = "EXTEND",
|
|
1076
|
+
/,
|
|
1077
|
+
) -> None:
|
|
1078
|
+
"""Set texture sampling method for coordinates outside of the [0..1] uv range along the y axis.
|
|
1079
|
+
|
|
1080
|
+
:param extend_mode: the specified extent mode.
|
|
1081
|
+
:type extend_mode: typing.Literal['EXTEND', 'REPEAT', 'MIRRORED_REPEAT', 'CLAMP_TO_BORDER']
|
|
1082
|
+
"""
|
|
1083
|
+
|
|
1084
|
+
def filter_mode(self, use_filter: bool) -> None:
|
|
1085
|
+
"""Set texture filter usage.
|
|
1086
|
+
|
|
1087
|
+
:param use_filter: If set to true, the texture will use linear interpolation between neighboring texels.
|
|
1088
|
+
:type use_filter: bool
|
|
1089
|
+
"""
|
|
1090
|
+
|
|
1091
|
+
def mipmap_mode(self, use_mipmap: bool = True, use_filter: bool = True) -> None:
|
|
1092
|
+
"""Set texture filter and mip-map usage.
|
|
1093
|
+
|
|
1094
|
+
:param use_mipmap: If set to true, the texture will use mip-mapping as anti-aliasing method.
|
|
1095
|
+
:type use_mipmap: bool
|
|
1096
|
+
:param use_filter: If set to true, the texture will use linear interpolation between neighboring texels.
|
|
1097
|
+
:type use_filter: bool
|
|
1098
|
+
"""
|
|
1099
|
+
|
|
1029
1100
|
def read(self) -> None:
|
|
1030
1101
|
"""Creates a buffer with the value of all pixels."""
|
|
1031
1102
|
|
gpu_extras/presets/__init__.pyi
CHANGED
|
@@ -32,6 +32,7 @@ def draw_texture_2d(
|
|
|
32
32
|
position: collections.abc.Sequence[float] | mathutils.Vector,
|
|
33
33
|
width: float,
|
|
34
34
|
height: float,
|
|
35
|
+
is_scene_linear_with_rec709_srgb_target: bool = False,
|
|
35
36
|
) -> None:
|
|
36
37
|
"""Draw a 2d texture.
|
|
37
38
|
|
|
@@ -44,4 +45,10 @@ def draw_texture_2d(
|
|
|
44
45
|
:type width: float
|
|
45
46
|
:param height: Height of the image when drawn.
|
|
46
47
|
:type height: float
|
|
48
|
+
:param is_scene_linear_with_rec709_srgb_target: True if the texture is stored in scene linear color space and
|
|
49
|
+
the destination frame-buffer uses the Rec.709 sRGB color space
|
|
50
|
+
(which is true when drawing textures acquired from `bpy.types.Image` inside a
|
|
51
|
+
PRE_VIEW, POST_VIEW or POST_PIXEL draw handler).
|
|
52
|
+
Otherwise the color space is assumed to match the one of the frame-buffer. (default=False)
|
|
53
|
+
:type is_scene_linear_with_rec709_srgb_target: bool
|
|
47
54
|
"""
|
idprop/types/__init__.pyi
CHANGED
|
@@ -27,8 +27,12 @@ class IDPropertyGroup:
|
|
|
27
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) ->
|
|
31
|
-
"""Return the keys associated with this group
|
|
30
|
+
def keys(self) -> IDPropertyGroupViewKeys:
|
|
31
|
+
"""Return the keys associated with this group.
|
|
32
|
+
|
|
33
|
+
:return: The keys.
|
|
34
|
+
:rtype: IDPropertyGroupViewKeys
|
|
35
|
+
"""
|
|
32
36
|
|
|
33
37
|
def pop(self, key: str, default: typing.Any) -> None:
|
|
34
38
|
"""Remove an item from the group, returning a Python representation.
|
imbuf/__init__.pyi
CHANGED
|
@@ -37,11 +37,11 @@ def load_from_buffer(buffer) -> imbuf.types.ImBuf:
|
|
|
37
37
|
"""
|
|
38
38
|
|
|
39
39
|
def new(size: tuple[int, int]) -> imbuf.types.ImBuf:
|
|
40
|
-
"""
|
|
40
|
+
"""Create a new image.
|
|
41
41
|
|
|
42
42
|
:param size: The size of the image in pixels.
|
|
43
43
|
:type size: tuple[int, int]
|
|
44
|
-
:return: the newly
|
|
44
|
+
:return: the newly created image.
|
|
45
45
|
:rtype: imbuf.types.ImBuf
|
|
46
46
|
"""
|
|
47
47
|
|
imbuf/types/__init__.pyi
CHANGED
|
@@ -14,7 +14,7 @@ import numpy.typing as npt
|
|
|
14
14
|
|
|
15
15
|
class ImBuf:
|
|
16
16
|
channels: int
|
|
17
|
-
""" Number of
|
|
17
|
+
""" Number of color channels.
|
|
18
18
|
|
|
19
19
|
:type: int
|
|
20
20
|
"""
|
|
@@ -26,7 +26,7 @@ class ImBuf:
|
|
|
26
26
|
"""
|
|
27
27
|
|
|
28
28
|
planes: int
|
|
29
|
-
""" Number of bits
|
|
29
|
+
""" Number of bits per pixel.
|
|
30
30
|
|
|
31
31
|
:type: int
|
|
32
32
|
"""
|
keyingsets_builtins/__init__.pyi
CHANGED
|
@@ -34,7 +34,7 @@ class BUILTIN_KSI_Available(_bpy_types.KeyingSetInfo):
|
|
|
34
34
|
"""
|
|
35
35
|
|
|
36
36
|
class BUILTIN_KSI_BendyBones(_bpy_types.KeyingSetInfo):
|
|
37
|
-
"""Insert a keyframe for each of the
|
|
37
|
+
"""Insert a keyframe for each of the B-Bone shape properties"""
|
|
38
38
|
|
|
39
39
|
bl_label: typing.Any
|
|
40
40
|
bl_rna: typing.Any
|