fake-bpy-module 20250629__py3-none-any.whl → 20250830__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/__init__.pyi +1 -0
- _bpy_internal/assets/__init__.pyi +5 -0
- _bpy_internal/assets/remote_library_listing/__init__.pyi +5 -0
- _bpy_internal/assets/remote_library_listing/blender_asset_library_openapi/__init__.pyi +13 -0
- _bpy_internal/extensions/wheel_manager/__init__.pyi +1 -1
- _bpy_internal/grease_pencil/stroke/__init__.pyi +2 -2
- _bpy_types/__init__.pyi +1594 -0
- aud/__init__.pyi +84 -31
- bl_i18n_utils/settings/__init__.pyi +1 -1
- bl_i18n_utils/utils/__init__.pyi +4 -4
- bl_math/__init__.pyi +1 -1
- bl_operators/add_mesh_torus/__init__.pyi +2 -1
- bl_operators/anim/__init__.pyi +15 -14
- bl_operators/assets/__init__.pyi +4 -3
- bl_operators/bone_selection_sets/__init__.pyi +15 -14
- bl_operators/clip/__init__.pyi +12 -11
- bl_operators/connect_to_output/__init__.pyi +2 -1
- bl_operators/console/__init__.pyi +6 -5
- bl_operators/constraint/__init__.pyi +6 -5
- bl_operators/file/__init__.pyi +6 -5
- bl_operators/freestyle/__init__.pyi +5 -4
- bl_operators/geometry_nodes/__init__.pyi +5 -4
- bl_operators/grease_pencil/__init__.pyi +2 -1
- bl_operators/image/__init__.pyi +6 -5
- bl_operators/image_as_planes/__init__.pyi +3 -2
- bl_operators/mesh/__init__.pyi +4 -3
- bl_operators/node/__init__.pyi +18 -17
- bl_operators/object/__init__.pyi +17 -16
- bl_operators/object_align/__init__.pyi +2 -1
- bl_operators/object_quick_effects/__init__.pyi +5 -4
- bl_operators/object_randomize_transform/__init__.pyi +2 -1
- bl_operators/presets/__init__.pyi +26 -25
- bl_operators/rigidbody/__init__.pyi +4 -3
- bl_operators/screen_play_rendered_anim/__init__.pyi +2 -1
- bl_operators/sequencer/__init__.pyi +12 -11
- bl_operators/spreadsheet/__init__.pyi +2 -1
- bl_operators/userpref/__init__.pyi +26 -25
- bl_operators/uvcalc_follow_active/__init__.pyi +2 -1
- bl_operators/uvcalc_lightmap/__init__.pyi +3 -2
- bl_operators/uvcalc_transform/__init__.pyi +5 -4
- bl_operators/vertexpaint_dirt/__init__.pyi +2 -1
- bl_operators/view3d/__init__.pyi +9 -8
- bl_operators/wm/__init__.pyi +48 -47
- bl_operators/world/__init__.pyi +3 -2
- bl_ui/__init__.pyi +4 -3
- bl_ui/anim/__init__.pyi +2 -1
- bl_ui/asset_shelf/__init__.pyi +2 -1
- bl_ui/generic_ui_list/__init__.pyi +4 -3
- bl_ui/node_add_menu/__init__.pyi +6 -2
- bl_ui/node_add_menu_compositor/__init__.pyi +19 -18
- bl_ui/node_add_menu_geometry/__init__.pyi +133 -54
- bl_ui/node_add_menu_shader/__init__.pyi +11 -10
- bl_ui/node_add_menu_texture/__init__.pyi +10 -9
- bl_ui/properties_collection/__init__.pyi +9 -8
- bl_ui/properties_constraint/__init__.pyi +78 -77
- bl_ui/properties_data_armature/__init__.pyi +22 -21
- bl_ui/properties_data_bone/__init__.pyi +12 -11
- bl_ui/properties_data_camera/__init__.pyi +18 -17
- bl_ui/properties_data_curve/__init__.pyi +18 -17
- bl_ui/properties_data_curves/__init__.pyi +11 -10
- bl_ui/properties_data_empty/__init__.pyi +3 -2
- bl_ui/properties_data_grease_pencil/__init__.pyi +23 -22
- bl_ui/properties_data_lattice/__init__.pyi +7 -6
- bl_ui/properties_data_light/__init__.pyi +13 -12
- bl_ui/properties_data_lightprobe/__init__.pyi +16 -15
- bl_ui/properties_data_mesh/__init__.pyi +48 -22
- bl_ui/properties_data_metaball/__init__.pyi +9 -8
- bl_ui/properties_data_modifier/__init__.pyi +10 -9
- bl_ui/properties_data_pointcloud/__init__.pyi +8 -7
- bl_ui/properties_data_shaderfx/__init__.pyi +2 -1
- bl_ui/properties_data_speaker/__init__.pyi +9 -8
- bl_ui/properties_data_volume/__init__.pyi +12 -11
- bl_ui/properties_freestyle/__init__.pyi +27 -26
- bl_ui/properties_grease_pencil_common/__init__.pyi +11 -10
- bl_ui/properties_mask_common/__init__.pyi +8 -7
- bl_ui/properties_material/__init__.pyi +19 -18
- bl_ui/properties_material_gpencil/__init__.pyi +14 -13
- bl_ui/properties_object/__init__.pyi +24 -23
- bl_ui/properties_output/__init__.pyi +21 -20
- bl_ui/properties_paint_common/__init__.pyi +8 -4
- bl_ui/properties_particle/__init__.pyi +58 -55
- bl_ui/properties_physics_cloth/__init__.pyi +15 -14
- bl_ui/properties_physics_common/__init__.pyi +2 -1
- bl_ui/properties_physics_dynamicpaint/__init__.pyi +23 -22
- bl_ui/properties_physics_field/__init__.pyi +11 -10
- bl_ui/properties_physics_fluid/__init__.pyi +29 -28
- bl_ui/properties_physics_geometry_nodes/__init__.pyi +2 -1
- bl_ui/properties_physics_rigidbody/__init__.pyi +9 -8
- bl_ui/properties_physics_rigidbody_constraint/__init__.pyi +14 -13
- bl_ui/properties_physics_softbody/__init__.pyi +16 -15
- bl_ui/properties_render/__init__.pyi +44 -74
- bl_ui/properties_scene/__init__.pyi +48 -18
- bl_ui/properties_texture/__init__.pyi +30 -29
- bl_ui/properties_view_layer/__init__.pyi +52 -14
- bl_ui/properties_workspace/__init__.pyi +6 -5
- bl_ui/properties_world/__init__.pyi +14 -13
- bl_ui/space_clip/__init__.pyi +76 -73
- bl_ui/space_console/__init__.pyi +7 -6
- bl_ui/space_dopesheet/__init__.pyi +32 -31
- bl_ui/space_filebrowser/__init__.pyi +33 -30
- bl_ui/space_graph/__init__.pyi +24 -23
- bl_ui/space_image/__init__.pyi +88 -72
- bl_ui/space_info/__init__.pyi +7 -6
- bl_ui/space_nla/__init__.pyi +22 -19
- bl_ui/space_node/__init__.pyi +66 -31
- bl_ui/space_outliner/__init__.pyi +16 -15
- bl_ui/space_properties/__init__.pyi +5 -4
- bl_ui/space_sequencer/__init__.pyi +131 -91
- bl_ui/space_spreadsheet/__init__.pyi +4 -3
- bl_ui/space_statusbar/__init__.pyi +2 -1
- bl_ui/space_text/__init__.pyi +17 -16
- bl_ui/space_time/__init__.pyi +7 -6
- bl_ui/space_toolsystem_common/__init__.pyi +2 -2
- bl_ui/space_toolsystem_toolbar/__init__.pyi +23 -5
- bl_ui/space_topbar/__init__.pyi +28 -27
- bl_ui/space_userpref/__init__.pyi +103 -92
- bl_ui/space_view3d/__init__.pyi +268 -266
- bl_ui/space_view3d_toolbar/__init__.pyi +106 -99
- blf/__init__.pyi +3 -5
- bmesh/__init__.pyi +2 -2
- bmesh/geometry/__init__.pyi +1 -1
- bmesh/ops/__init__.pyi +29 -14
- bmesh/types/__init__.pyi +34 -40
- bmesh/utils/__init__.pyi +1 -0
- bpy/__init__.pyi +1 -1
- bpy/app/__init__.pyi +34 -37
- bpy/app/handlers/__init__.pyi +19 -19
- bpy/app/timers/__init__.pyi +2 -1
- bpy/app/translations/__init__.pyi +8 -8
- bpy/msgbus/__init__.pyi +3 -2
- bpy/ops/action/__init__.pyi +58 -20
- bpy/ops/anim/__init__.pyi +115 -31
- bpy/ops/armature/__init__.pyi +59 -19
- bpy/ops/asset/__init__.pyi +35 -11
- bpy/ops/boid/__init__.pyi +21 -7
- bpy/ops/brush/__init__.pyi +10 -4
- bpy/ops/buttons/__init__.pyi +12 -4
- bpy/ops/cachefile/__init__.pyi +6 -2
- bpy/ops/clip/__init__.pyi +132 -46
- bpy/ops/collection/__init__.pyi +23 -4
- bpy/ops/console/__init__.pyi +30 -10
- bpy/ops/constraint/__init__.pyi +12 -6
- bpy/ops/curve/__init__.pyi +72 -24
- bpy/ops/curves/__init__.pyi +69 -21
- bpy/ops/cycles/__init__.pyi +4 -2
- bpy/ops/dpaint/__init__.pyi +11 -3
- bpy/ops/ed/__init__.pyi +34 -10
- bpy/ops/export_scene/__init__.pyi +15 -15
- bpy/ops/extensions/__init__.pyi +45 -15
- bpy/ops/file/__init__.pyi +81 -30
- bpy/ops/fluid/__init__.pyi +39 -13
- bpy/ops/font/__init__.pyi +30 -10
- bpy/ops/geometry/__init__.pyi +9 -3
- bpy/ops/gizmogroup/__init__.pyi +3 -1
- bpy/ops/gpencil/__init__.pyi +20 -8
- bpy/ops/graph/__init__.pyi +67 -29
- bpy/ops/grease_pencil/__init__.pyi +178 -49
- bpy/ops/image/__init__.pyi +68 -58
- bpy/ops/import_anim/__init__.pyi +2 -2
- bpy/ops/import_curve/__init__.pyi +3 -0
- bpy/ops/import_scene/__init__.pyi +15 -2
- bpy/ops/info/__init__.pyi +12 -4
- bpy/ops/lattice/__init__.pyi +9 -3
- bpy/ops/marker/__init__.pyi +8 -2
- bpy/ops/mask/__init__.pyi +53 -19
- bpy/ops/material/__init__.pyi +15 -3
- bpy/ops/mball/__init__.pyi +3 -1
- bpy/ops/mesh/__init__.pyi +116 -45
- bpy/ops/nla/__init__.pyi +67 -25
- bpy/ops/node/__init__.pyi +285 -119
- bpy/ops/object/__init__.pyi +278 -116
- bpy/ops/outliner/__init__.pyi +145 -49
- bpy/ops/paint/__init__.pyi +65 -37
- bpy/ops/paintcurve/__init__.pyi +16 -4
- bpy/ops/palette/__init__.pyi +11 -3
- bpy/ops/particle/__init__.pyi +66 -24
- bpy/ops/pointcloud/__init__.pyi +9 -3
- bpy/ops/pose/__init__.pyi +80 -28
- bpy/ops/poselib/__init__.pyi +40 -7
- bpy/ops/preferences/__init__.pyi +29 -11
- bpy/ops/ptcache/__init__.pyi +17 -5
- bpy/ops/render/__init__.pyi +10 -4
- bpy/ops/rigidbody/__init__.pyi +19 -7
- bpy/ops/scene/__init__.pyi +93 -22
- bpy/ops/screen/__init__.pyi +58 -20
- bpy/ops/script/__init__.pyi +3 -1
- bpy/ops/sculpt/__init__.pyi +30 -14
- bpy/ops/sculpt_curves/__init__.pyi +4 -2
- bpy/ops/sequencer/__init__.pyi +262 -125
- bpy/ops/sound/__init__.pyi +13 -5
- bpy/ops/spreadsheet/__init__.pyi +15 -5
- bpy/ops/text/__init__.pyi +85 -25
- bpy/ops/texture/__init__.pyi +11 -3
- bpy/ops/transform/__init__.pyi +7 -3
- bpy/ops/ui/__init__.pyi +98 -53
- bpy/ops/uv/__init__.pyi +43 -17
- bpy/ops/view2d/__init__.pyi +13 -3
- bpy/ops/view3d/__init__.pyi +116 -38
- bpy/ops/wm/__init__.pyi +144 -86
- bpy/ops/workspace/__init__.pyi +31 -6
- bpy/ops/world/__init__.pyi +9 -3
- bpy/path/__init__.pyi +1 -1
- bpy/props/__init__.pyi +31 -31
- bpy/stub_internal/rna_enums/__init__.pyi +54 -34
- bpy/types/__init__.pyi +55981 -39705
- bpy/utils/__init__.pyi +8 -8
- bpy/utils/previews/__init__.pyi +2 -2
- bpy/utils/units/__init__.pyi +5 -3
- bpy_extras/anim_utils/__init__.pyi +1 -1
- bpy_extras/id_map_utils/__init__.pyi +1 -1
- bpy_extras/image_utils/__init__.pyi +2 -2
- bpy_extras/io_utils/__init__.pyi +5 -5
- bpy_extras/keyconfig_utils/__init__.pyi +1 -1
- bpy_extras/node_shader_utils/__init__.pyi +1 -1
- bpy_extras/object_utils/__init__.pyi +1 -1
- bpy_extras/wm_utils/progress_report/__init__.pyi +1 -1
- {fake_bpy_module-20250629.dist-info → fake_bpy_module-20250830.dist-info}/METADATA +1 -1
- fake_bpy_module-20250830.dist-info/RECORD +370 -0
- {fake_bpy_module-20250629.dist-info → fake_bpy_module-20250830.dist-info}/top_level.txt +1 -1
- freestyle/chainingiterators/__init__.pyi +5 -5
- freestyle/predicates/__init__.pyi +2 -2
- freestyle/shaders/__init__.pyi +16 -17
- freestyle/types/__init__.pyi +25 -27
- freestyle/utils/__init__.pyi +6 -6
- gpu/platform/__init__.pyi +2 -2
- gpu/shader/__init__.pyi +3 -3
- gpu/state/__init__.pyi +1 -1
- gpu/texture/__init__.pyi +3 -3
- gpu/types/__init__.pyi +25 -14
- gpu_extras/batch/__init__.pyi +1 -1
- idprop/types/__init__.pyi +2 -2
- imbuf/__init__.pyi +1 -1
- imbuf/types/__init__.pyi +12 -6
- keyingsets_builtins/__init__.pyi +23 -22
- mathutils/__init__.pyi +157 -61
- mathutils/bvhtree/__init__.pyi +17 -4
- mathutils/geometry/__init__.pyi +54 -12
- mathutils/interpolate/__init__.pyi +4 -2
- mathutils/kdtree/__init__.pyi +1 -0
- mathutils/noise/__init__.pyi +61 -44
- rna_info/__init__.pyi +4 -1
- rna_prop_ui/__init__.pyi +1 -1
- bpy_types/__init__.pyi +0 -30
- fake_bpy_module-20250629.dist-info/RECORD +0 -367
- {bpy_types → _bpy_types}/py.typed +0 -0
- {fake_bpy_module-20250629.dist-info → fake_bpy_module-20250830.dist-info}/WHEEL +0 -0
|
@@ -52,9 +52,9 @@ class ChainPredicateIterator:
|
|
|
52
52
|
:type restrict_to_unvisited: bool
|
|
53
53
|
:param begin: The ViewEdge from where to start the iteration.
|
|
54
54
|
:type begin: None | freestyle.types.ViewEdge | None
|
|
55
|
-
:param orientation: If true,
|
|
55
|
+
:param orientation: If true, well look for the next ViewEdge among
|
|
56
56
|
the ViewEdges that surround the ending ViewVertex of begin. If
|
|
57
|
-
false,
|
|
57
|
+
false, well search over the ViewEdges surrounding the ending
|
|
58
58
|
ViewVertex of begin.
|
|
59
59
|
:type orientation: bool
|
|
60
60
|
"""
|
|
@@ -93,9 +93,9 @@ class ChainSilhouetteIterator:
|
|
|
93
93
|
:type restrict_to_selection: bool
|
|
94
94
|
:param begin: The ViewEdge from where to start the iteration.
|
|
95
95
|
:type begin: None | freestyle.types.ViewEdge | None
|
|
96
|
-
:param orientation: If true,
|
|
96
|
+
:param orientation: If true, well look for the next ViewEdge among
|
|
97
97
|
the ViewEdges that surround the ending ViewVertex of begin. If
|
|
98
|
-
false,
|
|
98
|
+
false, well search over the ViewEdges surrounding the ending
|
|
99
99
|
ViewVertex of begin.
|
|
100
100
|
:type orientation: bool
|
|
101
101
|
"""
|
|
@@ -247,7 +247,7 @@ class pyNoIdChainSilhouetteIterator:
|
|
|
247
247
|
"""Natural chaining iterator that follows the edges of the same nature
|
|
248
248
|
following the topology of objects, with decreasing priority for
|
|
249
249
|
silhouettes, then borders, then suggestive contours, then all other edge
|
|
250
|
-
types. It
|
|
250
|
+
types. It wont chain the same ViewEdge twice.
|
|
251
251
|
"""
|
|
252
252
|
|
|
253
253
|
def __init__(self, stayInSelection: bool = True) -> None:
|
|
@@ -71,7 +71,7 @@ class EqualToChainingTimeStampUP1D:
|
|
|
71
71
|
"""
|
|
72
72
|
|
|
73
73
|
def __call__(self, inter: freestyle.types.Interface1D) -> bool:
|
|
74
|
-
"""Returns true if the
|
|
74
|
+
"""Returns true if the Interface1Ds time stamp is equal to a certain
|
|
75
75
|
user-defined value.
|
|
76
76
|
|
|
77
77
|
:param inter: An Interface1D object.
|
|
@@ -91,7 +91,7 @@ class EqualToTimeStampUP1D:
|
|
|
91
91
|
"""
|
|
92
92
|
|
|
93
93
|
def __call__(self, inter: freestyle.types.Interface1D) -> bool:
|
|
94
|
-
"""Returns true if the
|
|
94
|
+
"""Returns true if the Interface1Ds time stamp is equal to a certain
|
|
95
95
|
user-defined value.
|
|
96
96
|
|
|
97
97
|
:param inter: An Interface1D object.
|
freestyle/shaders/__init__.pyi
CHANGED
|
@@ -40,7 +40,7 @@ class BezierCurveShader:
|
|
|
40
40
|
def __init__(self, error: float = 4.0) -> None:
|
|
41
41
|
"""Builds a BezierCurveShader object.
|
|
42
42
|
|
|
43
|
-
:param error: The error
|
|
43
|
+
:param error: The error were allowing for the approximation. This
|
|
44
44
|
error is the max distance allowed between the new curve and the
|
|
45
45
|
original geometry.
|
|
46
46
|
:type error: float
|
|
@@ -62,9 +62,8 @@ class BlenderTextureShader:
|
|
|
62
62
|
) -> None:
|
|
63
63
|
"""Builds a BlenderTextureShader object.
|
|
64
64
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
:type texture: bpy.types.LineStyleTextureSlot | bpy.types.ShaderNodeTree
|
|
65
|
+
:param texture: A line style texture slot or a shader node tree to define a set of textures.
|
|
66
|
+
:type texture: bpy.types.LineStyleTextureSlot | bpy.types.ShaderNodeTree
|
|
68
67
|
"""
|
|
69
68
|
|
|
70
69
|
def shade(self, stroke: freestyle.types.Stroke) -> None:
|
|
@@ -184,13 +183,13 @@ class ConstrainedIncreasingThicknessShader:
|
|
|
184
183
|
:type thickness_min: float
|
|
185
184
|
:param thickness_max: The maximum thickness.
|
|
186
185
|
:type thickness_max: float
|
|
187
|
-
:param ratio: The thickness/length ratio that we
|
|
186
|
+
:param ratio: The thickness/length ratio that we dont want to exceed.
|
|
188
187
|
:type ratio: float
|
|
189
188
|
"""
|
|
190
189
|
|
|
191
190
|
def shade(self, stroke: freestyle.types.Stroke) -> None:
|
|
192
191
|
"""Same as the `IncreasingThicknessShader`, but here we allow
|
|
193
|
-
the user to control the thickness/length ratio so that we
|
|
192
|
+
the user to control the thickness/length ratio so that we dont get
|
|
194
193
|
fat short lines.
|
|
195
194
|
|
|
196
195
|
:param stroke: A Stroke object.
|
|
@@ -215,7 +214,7 @@ class GuidingLinesShader:
|
|
|
215
214
|
main direction line. This shader must be used together with the
|
|
216
215
|
splitting operator using the curvature criterion. Indeed, the
|
|
217
216
|
precision of the approximation will depend on the size of the
|
|
218
|
-
|
|
217
|
+
strokes pieces. The bigger the pieces are, the rougher the
|
|
219
218
|
approximation is.
|
|
220
219
|
|
|
221
220
|
:param stroke: A Stroke object.
|
|
@@ -407,7 +406,7 @@ class SpatialNoiseShader:
|
|
|
407
406
|
:type num_octaves: int
|
|
408
407
|
:param smooth: True if you want the noise to be smooth.
|
|
409
408
|
:type smooth: bool
|
|
410
|
-
:param pure_random: True if you
|
|
409
|
+
:param pure_random: True if you dont want any coherence.
|
|
411
410
|
:type pure_random: bool
|
|
412
411
|
"""
|
|
413
412
|
|
|
@@ -474,7 +473,7 @@ class TipRemoverShader:
|
|
|
474
473
|
"""
|
|
475
474
|
|
|
476
475
|
def shade(self, stroke: freestyle.types.Stroke) -> None:
|
|
477
|
-
"""Removes the
|
|
476
|
+
"""Removes the strokes extremities.
|
|
478
477
|
|
|
479
478
|
:param stroke: A Stroke object.
|
|
480
479
|
:type stroke: freestyle.types.Stroke
|
|
@@ -492,7 +491,7 @@ class py2DCurvatureColorShader:
|
|
|
492
491
|
"""
|
|
493
492
|
|
|
494
493
|
class pyBackboneStretcherNoCuspShader:
|
|
495
|
-
"""Stretches the
|
|
494
|
+
"""Stretches the strokes backbone, excluding cusp vertices (end junctions)."""
|
|
496
495
|
|
|
497
496
|
def shade(self, stroke) -> None:
|
|
498
497
|
"""
|
|
@@ -501,7 +500,7 @@ class pyBackboneStretcherNoCuspShader:
|
|
|
501
500
|
"""
|
|
502
501
|
|
|
503
502
|
class pyBackboneStretcherShader:
|
|
504
|
-
"""Stretches the
|
|
503
|
+
"""Stretches the strokes backbone by a given length (in pixels)."""
|
|
505
504
|
|
|
506
505
|
def shade(self, stroke) -> None:
|
|
507
506
|
"""
|
|
@@ -561,7 +560,7 @@ class pyConstantThicknessShader:
|
|
|
561
560
|
|
|
562
561
|
class pyConstrainedIncreasingThicknessShader:
|
|
563
562
|
"""Increasingly thickens the stroke, constrained by a ratio of the
|
|
564
|
-
|
|
563
|
+
strokes length.
|
|
565
564
|
"""
|
|
566
565
|
|
|
567
566
|
def shade(self, stroke) -> None:
|
|
@@ -580,7 +579,7 @@ class pyDecreasingThicknessShader:
|
|
|
580
579
|
"""
|
|
581
580
|
|
|
582
581
|
class pyDepthDiscontinuityThicknessShader:
|
|
583
|
-
"""Assigns a thickness to the stroke based on the
|
|
582
|
+
"""Assigns a thickness to the stroke based on the strokes distance
|
|
584
583
|
to the camera (Z-value).
|
|
585
584
|
"""
|
|
586
585
|
|
|
@@ -679,8 +678,8 @@ class pyInterpolateColorShader:
|
|
|
679
678
|
"""
|
|
680
679
|
|
|
681
680
|
class pyLengthDependingBackboneStretcherShader:
|
|
682
|
-
"""Stretches the
|
|
683
|
-
NOTE:
|
|
681
|
+
"""Stretches the strokes backbone proportional to the strokes length
|
|
682
|
+
NOTE: youll probably want an l somewhere between (0.5 - 0). A value that
|
|
684
683
|
is too high may yield unexpected results.
|
|
685
684
|
"""
|
|
686
685
|
|
|
@@ -700,7 +699,7 @@ class pyMaterialColorShader:
|
|
|
700
699
|
"""
|
|
701
700
|
|
|
702
701
|
class pyModulateAlphaShader:
|
|
703
|
-
"""Limits the
|
|
702
|
+
"""Limits the strokes alpha between a min and max value."""
|
|
704
703
|
|
|
705
704
|
def shade(self, stroke) -> None:
|
|
706
705
|
"""
|
|
@@ -818,7 +817,7 @@ class pyTipRemoverShader:
|
|
|
818
817
|
"""
|
|
819
818
|
|
|
820
819
|
class pyZDependingThicknessShader:
|
|
821
|
-
"""Assigns thickness based on an
|
|
820
|
+
"""Assigns thickness based on an objects local Z depth (point
|
|
822
821
|
closest to camera is 1, point furthest from camera is zero).
|
|
823
822
|
"""
|
|
824
823
|
|
freestyle/types/__init__.pyi
CHANGED
|
@@ -224,11 +224,10 @@ class Chain:
|
|
|
224
224
|
def push_viewedge_back(self, viewedge: ViewEdge, orientation: bool) -> None:
|
|
225
225
|
"""Adds a ViewEdge at the end of the Chain.
|
|
226
226
|
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
:type orientation: bool
|
|
227
|
+
:param viewedge: The ViewEdge that must be added.
|
|
228
|
+
:type viewedge: ViewEdge
|
|
229
|
+
:param orientation: The orientation with which the ViewEdge must be processed.
|
|
230
|
+
:type orientation: bool
|
|
232
231
|
"""
|
|
233
232
|
|
|
234
233
|
def push_viewedge_front(self, viewedge: ViewEdge, orientation: bool) -> None:
|
|
@@ -328,7 +327,7 @@ class Curve:
|
|
|
328
327
|
"""
|
|
329
328
|
|
|
330
329
|
is_empty: bool
|
|
331
|
-
""" True if the Curve
|
|
330
|
+
""" True if the Curve doesnt have any Vertex yet.
|
|
332
331
|
|
|
333
332
|
:type: bool
|
|
334
333
|
"""
|
|
@@ -377,7 +376,7 @@ class Curve:
|
|
|
377
376
|
|
|
378
377
|
class CurvePoint:
|
|
379
378
|
"""Class hierarchy: `Interface0D` > `CurvePoint`Class to represent a point of a curve. A CurvePoint can be any point
|
|
380
|
-
of a 1D curve (it
|
|
379
|
+
of a 1D curve (it doesnt have to be a vertex of the curve). Any
|
|
381
380
|
`Interface1D` is built upon ViewEdges, themselves built upon
|
|
382
381
|
FEdges. Therefore, a curve is basically a polyline made of a list of
|
|
383
382
|
`SVertex` objects. Thus, a CurvePoint is built by linearly
|
|
@@ -595,7 +594,7 @@ class FEdgeSharp:
|
|
|
595
594
|
edge of the input mesh. It can be a silhouette, a crease or a border.
|
|
596
595
|
If it is a crease edge, then it is bordered by two faces of the mesh.
|
|
597
596
|
Face a lies on its right whereas Face b lies on its left. If it is a
|
|
598
|
-
border edge, then it
|
|
597
|
+
border edge, then it doesnt have any face on its right, and thus Face
|
|
599
598
|
a is None.
|
|
600
599
|
"""
|
|
601
600
|
|
|
@@ -866,21 +865,20 @@ class, the .object property refers to a `StrokeVertex` object.
|
|
|
866
865
|
|
|
867
866
|
def __init__(self, brother: typing_extensions.Self) -> None:
|
|
868
867
|
"""Construct a nested Interface0DIterator using either the copy constructor
|
|
869
|
-
or the constructor that takes an
|
|
868
|
+
or the constructor that takes an argument of a Function0D.
|
|
870
869
|
|
|
871
870
|
:param brother: An Interface0DIterator object.
|
|
872
871
|
:type brother: typing_extensions.Self
|
|
873
872
|
"""
|
|
874
873
|
|
|
875
874
|
def __init__(
|
|
876
|
-
self,
|
|
877
|
-
it: CurvePointIterator | SVertexIterator | StrokeVertexIterator | typing.Any,
|
|
875
|
+
self, it: CurvePointIterator | SVertexIterator | StrokeVertexIterator
|
|
878
876
|
) -> None:
|
|
879
877
|
"""Construct a nested Interface0DIterator using either the copy constructor
|
|
880
|
-
or the constructor that takes an
|
|
878
|
+
or the constructor that takes an argument of a Function0D.
|
|
881
879
|
|
|
882
880
|
:param it: An iterator object to be nested.
|
|
883
|
-
:type it: CurvePointIterator | SVertexIterator | StrokeVertexIterator
|
|
881
|
+
:type it: CurvePointIterator | SVertexIterator | StrokeVertexIterator
|
|
884
882
|
"""
|
|
885
883
|
|
|
886
884
|
class Interface1D:
|
|
@@ -1398,15 +1396,15 @@ class Operators:
|
|
|
1398
1396
|
point and the two new chains are processed in the same way. The
|
|
1399
1397
|
recursivity level is controlled through a predicate 1D that expresses
|
|
1400
1398
|
a stopping condition on the chain that is about to be processed.The user can also specify a 0D predicate to make a first selection on the points
|
|
1401
|
-
that can potentially be split. A point that
|
|
1402
|
-
predicate
|
|
1399
|
+
that can potentially be split. A point that doesnt verify the 0D
|
|
1400
|
+
predicate wont be candidate in realizing the min.
|
|
1403
1401
|
|
|
1404
1402
|
:param func: The Unary Function evaluated at each point of the chain.
|
|
1405
1403
|
The splitting point is the point minimizing this function.
|
|
1406
1404
|
:type func: UnaryFunction0DDouble
|
|
1407
1405
|
:param pred_1d: The Unary Predicate expressing the recursivity stopping
|
|
1408
1406
|
condition. This predicate is evaluated for each curve before it
|
|
1409
|
-
actually gets split. If pred_1d(chain) is true, the curve
|
|
1407
|
+
actually gets split. If pred_1d(chain) is true, the curve wont be
|
|
1410
1408
|
split anymore.
|
|
1411
1409
|
:type pred_1d: UnaryPredicate1D
|
|
1412
1410
|
:param sampling: The resolution used to sample the chain for the
|
|
@@ -1429,8 +1427,8 @@ class Operators:
|
|
|
1429
1427
|
point and the two new chains are processed in the same way. The
|
|
1430
1428
|
recursivity level is controlled through a predicate 1D that expresses
|
|
1431
1429
|
a stopping condition on the chain that is about to be processed.The user can also specify a 0D predicate to make a first selection on the points
|
|
1432
|
-
that can potentially be split. A point that
|
|
1433
|
-
predicate
|
|
1430
|
+
that can potentially be split. A point that doesnt verify the 0D
|
|
1431
|
+
predicate wont be candidate in realizing the min.
|
|
1434
1432
|
|
|
1435
1433
|
:param func: The Unary Function evaluated at each point of the chain.
|
|
1436
1434
|
The splitting point is the point minimizing this function.
|
|
@@ -1443,7 +1441,7 @@ class Operators:
|
|
|
1443
1441
|
:type pred_0d: UnaryPredicate0D
|
|
1444
1442
|
:param pred_1d: The Unary Predicate expressing the recursivity stopping
|
|
1445
1443
|
condition. This predicate is evaluated for each curve before it
|
|
1446
|
-
actually gets split. If pred_1d(chain) is true, the curve
|
|
1444
|
+
actually gets split. If pred_1d(chain) is true, the curve wont be
|
|
1447
1445
|
split anymore.
|
|
1448
1446
|
:type pred_1d: UnaryPredicate1D
|
|
1449
1447
|
:param sampling: The resolution used to sample the chain for the
|
|
@@ -1683,7 +1681,7 @@ ViewVertex, and None otherwise.
|
|
|
1683
1681
|
| mathutils.Vector
|
|
1684
1682
|
| tuple[float, float, float],
|
|
1685
1683
|
) -> None:
|
|
1686
|
-
"""Adds a normal to the
|
|
1684
|
+
"""Adds a normal to the SVertexs set of normals. If the same normal
|
|
1687
1685
|
is already in the set, nothing changes.
|
|
1688
1686
|
|
|
1689
1687
|
:param normal: A three-dimensional vector.
|
|
@@ -1749,8 +1747,8 @@ class SVertexIterator:
|
|
|
1749
1747
|
class Stroke:
|
|
1750
1748
|
"""Class hierarchy: `Interface1D` > `Stroke`Class to define a stroke. A stroke is made of a set of 2D vertices
|
|
1751
1749
|
(`StrokeVertex`), regularly spaced out. This set of vertices
|
|
1752
|
-
defines the
|
|
1753
|
-
defines the
|
|
1750
|
+
defines the strokes backbone geometry. Each of these stroke vertices
|
|
1751
|
+
defines the strokes shape and appearance at this vertex position.
|
|
1754
1752
|
"""
|
|
1755
1753
|
|
|
1756
1754
|
id: Id
|
|
@@ -2124,7 +2122,7 @@ class StrokeVertex:
|
|
|
2124
2122
|
|
|
2125
2123
|
stroke_length: float
|
|
2126
2124
|
""" Stroke length (it is only a value retained by the StrokeVertex,
|
|
2127
|
-
and it
|
|
2125
|
+
and it wont change the real stroke length).
|
|
2128
2126
|
|
|
2129
2127
|
:type: float
|
|
2130
2128
|
"""
|
|
@@ -2327,7 +2325,7 @@ class UnaryFunction0D:
|
|
|
2327
2325
|
`Interface0DIterator`. A unary function will be used by
|
|
2328
2326
|
invoking __call__() on an Interface0DIterator. In Python, several
|
|
2329
2327
|
different subclasses of UnaryFunction0D are used depending on the
|
|
2330
|
-
types of functors
|
|
2328
|
+
types of functors return values. For example, you would inherit from
|
|
2331
2329
|
a `UnaryFunction0DDouble` if you wish to define a function that
|
|
2332
2330
|
returns a double value. Available UnaryFunction0D subclasses are:
|
|
2333
2331
|
"""
|
|
@@ -2423,7 +2421,7 @@ class UnaryFunction1D:
|
|
|
2423
2421
|
"""Base class for Unary Functions (functors) working on
|
|
2424
2422
|
`Interface1D`. A unary function will be used by invoking
|
|
2425
2423
|
__call__() on an Interface1D. In Python, several different subclasses
|
|
2426
|
-
of UnaryFunction1D are used depending on the types of functors
|
|
2424
|
+
of UnaryFunction1D are used depending on the types of functors return
|
|
2427
2425
|
values. For example, you would inherit from a
|
|
2428
2426
|
`UnaryFunction1DDouble` if you wish to define a function that
|
|
2429
2427
|
returns a double value. Available UnaryFunction1D subclasses are:
|
|
@@ -2820,9 +2818,9 @@ of the "begin" ViewEdge.
|
|
|
2820
2818
|
|
|
2821
2819
|
:param begin: The ViewEdge from where to start the iteration.
|
|
2822
2820
|
:type begin: None | ViewEdge | None
|
|
2823
|
-
:param orientation: If true,
|
|
2821
|
+
:param orientation: If true, well look for the next ViewEdge among
|
|
2824
2822
|
the ViewEdges that surround the ending ViewVertex of begin. If
|
|
2825
|
-
false,
|
|
2823
|
+
false, well search over the ViewEdges surrounding the ending
|
|
2826
2824
|
ViewVertex of begin.
|
|
2827
2825
|
:type orientation: bool
|
|
2828
2826
|
"""
|
freestyle/utils/__init__.pyi
CHANGED
|
@@ -37,11 +37,11 @@ class StrokeCollector:
|
|
|
37
37
|
"""
|
|
38
38
|
|
|
39
39
|
def angle_x_normal(it) -> None:
|
|
40
|
-
"""unsigned angle between a
|
|
40
|
+
"""unsigned angle between a Points normal and the X axis, in radians"""
|
|
41
41
|
|
|
42
42
|
def bound(lower, x, higher) -> None: ...
|
|
43
43
|
def bounding_box(stroke) -> None:
|
|
44
|
-
"""Returns the maximum and minimum coordinates (the bounding box) of the
|
|
44
|
+
"""Returns the maximum and minimum coordinates (the bounding box) of the strokes vertices"""
|
|
45
45
|
|
|
46
46
|
def curvature_from_stroke_vertex(svert) -> None: ...
|
|
47
47
|
def find_matching_vertex(id, it) -> None:
|
|
@@ -116,7 +116,7 @@ def iter_distance_from_object(stroke, location, range_min, range_max, normfac) -
|
|
|
116
116
|
"""
|
|
117
117
|
|
|
118
118
|
def iter_material_value(stroke, func, attribute) -> None:
|
|
119
|
-
"""Yields a specific material attribute from the vertex
|
|
119
|
+
"""Yields a specific material attribute from the vertex underlying material."""
|
|
120
120
|
|
|
121
121
|
def iter_t2d_along_stroke(stroke) -> None:
|
|
122
122
|
"""Yields the progress along the stroke."""
|
|
@@ -125,7 +125,7 @@ def material_from_fedge(fe) -> None:
|
|
|
125
125
|
"""get the diffuse RGBA color from an FEdge"""
|
|
126
126
|
|
|
127
127
|
def normal_at_I0D(it) -> None: ...
|
|
128
|
-
def pairwise(iterable, types={
|
|
128
|
+
def pairwise(iterable, types={StrokeVertexIterator, Stroke}) -> None:
|
|
129
129
|
"""Yields a tuple containing the previous and current object"""
|
|
130
130
|
|
|
131
131
|
def rgb_to_bw(r, g, b) -> None:
|
|
@@ -135,7 +135,7 @@ def simplify(points, tolerance) -> None:
|
|
|
135
135
|
"""Simplifies a set of points"""
|
|
136
136
|
|
|
137
137
|
def stroke_curvature(it) -> None:
|
|
138
|
-
"""Compute the 2D curvature at the stroke vertex pointed by the iterator
|
|
138
|
+
"""Compute the 2D curvature at the stroke vertex pointed by the iterator it.
|
|
139
139
|
K = 1 / R
|
|
140
140
|
where R is the radius of the circle going through the current vertex and its neighbors
|
|
141
141
|
|
|
@@ -143,7 +143,7 @@ def stroke_curvature(it) -> None:
|
|
|
143
143
|
|
|
144
144
|
def stroke_normal(stroke) -> None:
|
|
145
145
|
"""Compute the 2D normal at the stroke vertex pointed by the iterator
|
|
146
|
-
|
|
146
|
+
it. It is noted that Normal2DF0D computes normals based on
|
|
147
147
|
underlying FEdges instead, which is inappropriate for strokes when
|
|
148
148
|
they have already been modified by stroke geometry modifiers.The returned normals are dynamic: they update when the
|
|
149
149
|
vertex position (and therefore the vertex normal) changes.
|
gpu/platform/__init__.pyi
CHANGED
|
@@ -11,14 +11,14 @@ import numpy.typing as npt
|
|
|
11
11
|
def backend_type_get() -> str:
|
|
12
12
|
"""Get actuve GPU backend.
|
|
13
13
|
|
|
14
|
-
:return: Backend type (
|
|
14
|
+
:return: Backend type (OPENGL, VULKAN, METAL, NONE, UNKNOWN).
|
|
15
15
|
:rtype: str
|
|
16
16
|
"""
|
|
17
17
|
|
|
18
18
|
def device_type_get() -> str:
|
|
19
19
|
"""Get GPU device type.
|
|
20
20
|
|
|
21
|
-
:return: Device type (
|
|
21
|
+
:return: Device type (APPLE, NVIDIA, AMD, INTEL, SOFTWARE, QUALCOMM, UNKNOWN).
|
|
22
22
|
:rtype: str
|
|
23
23
|
"""
|
|
24
24
|
|
gpu/shader/__init__.pyi
CHANGED
|
@@ -69,7 +69,7 @@ POLYLINE_UNIFORM_COLOR
|
|
|
69
69
|
|
|
70
70
|
|
|
71
71
|
Attributes: vec3 pos
|
|
72
|
-
Uniforms: vec2 viewportSize, float lineWidth
|
|
72
|
+
Uniforms: vec2 viewportSize, float lineWidth, vec4 color
|
|
73
73
|
|
|
74
74
|
|
|
75
75
|
|
|
@@ -81,7 +81,7 @@ POINT_FLAT_COLOR
|
|
|
81
81
|
|
|
82
82
|
|
|
83
83
|
|
|
84
|
-
|
|
84
|
+
POINT_UNIFORM_COLOR
|
|
85
85
|
|
|
86
86
|
|
|
87
87
|
Attributes: vec3 pos
|
|
@@ -106,7 +106,7 @@ def create_from_info(shader_info: gpu.types.GPUShaderCreateInfo) -> gpu.types.GP
|
|
|
106
106
|
:rtype: gpu.types.GPUShader
|
|
107
107
|
"""
|
|
108
108
|
|
|
109
|
-
def from_builtin(shader_name: str, config: str = "DEFAULT") -> gpu.types.GPUShader:
|
|
109
|
+
def from_builtin(shader_name: str, *, config: str = "DEFAULT") -> gpu.types.GPUShader:
|
|
110
110
|
"""Shaders that are embedded in the blender internal code (see `built-in-shaders`).
|
|
111
111
|
They all read the uniform mat4 ModelViewProjectionMatrix,
|
|
112
112
|
which can be edited by the `gpu.matrix` module.You can also choose a shader configuration that uses clip_planes by setting the CLIPPED value to the config parameter. Note that in this case you also need to manually set the value of mat4 ModelMatrix.
|
gpu/state/__init__.pyi
CHANGED
|
@@ -101,7 +101,7 @@ def program_point_size_set(enable: bool) -> None:
|
|
|
101
101
|
|
|
102
102
|
def scissor_get() -> tuple[int, int, int, int]:
|
|
103
103
|
"""Retrieve the scissors of the active framebuffer.
|
|
104
|
-
Note: Only valid between
|
|
104
|
+
Note: Only valid between scissor_set and a framebuffer rebind.
|
|
105
105
|
|
|
106
106
|
:return: The scissor of the active framebuffer as a tuple
|
|
107
107
|
(x, y, xsize, ysize).
|
gpu/texture/__init__.pyi
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"""
|
|
2
|
-
This module provides
|
|
2
|
+
This module provides utilities for textures.
|
|
3
3
|
|
|
4
4
|
"""
|
|
5
5
|
|
|
@@ -11,10 +11,10 @@ import bpy.types
|
|
|
11
11
|
import gpu.types
|
|
12
12
|
|
|
13
13
|
def from_image(image: bpy.types.Image) -> gpu.types.GPUTexture:
|
|
14
|
-
"""Get GPUTexture corresponding to an Image
|
|
14
|
+
"""Get GPUTexture corresponding to an Image data-block. The GPUTexture memory is shared with Blender.
|
|
15
15
|
Note: Colors read from the texture will be in scene linear color space and have premultiplied or straight alpha matching the image alpha mode.
|
|
16
16
|
|
|
17
|
-
:param image: The Image
|
|
17
|
+
:param image: The Image data-block.
|
|
18
18
|
:type image: bpy.types.Image
|
|
19
19
|
:return: The GPUTexture used by the image.
|
|
20
20
|
:rtype: gpu.types.GPUTexture
|
gpu/types/__init__.pyi
CHANGED
|
@@ -78,18 +78,19 @@ class GPUBatch:
|
|
|
78
78
|
|
|
79
79
|
class GPUFrameBuffer:
|
|
80
80
|
"""This object gives access to framebuffer functionalities.
|
|
81
|
-
When a
|
|
81
|
+
When a layer is specified in a argument, a single layer of a 3D or array texture is attached to the frame-buffer.
|
|
82
82
|
For cube map textures, layer is translated into a cube map face.
|
|
83
83
|
"""
|
|
84
84
|
|
|
85
85
|
is_bound: typing.Any
|
|
86
|
-
""" Checks if this is the active
|
|
86
|
+
""" Checks if this is the active frame-buffer in the context."""
|
|
87
87
|
|
|
88
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(
|
|
92
92
|
self,
|
|
93
|
+
*,
|
|
93
94
|
color: collections.abc.Sequence[float] | None = None,
|
|
94
95
|
depth: float | None = None,
|
|
95
96
|
stencil: int | None = None,
|
|
@@ -114,6 +115,7 @@ class GPUFrameBuffer:
|
|
|
114
115
|
channels: int,
|
|
115
116
|
slot: int,
|
|
116
117
|
format: str,
|
|
118
|
+
*,
|
|
117
119
|
data: Buffer = data,
|
|
118
120
|
) -> Buffer:
|
|
119
121
|
"""Read a block of pixels from the frame buffer.
|
|
@@ -128,7 +130,7 @@ class GPUFrameBuffer:
|
|
|
128
130
|
:param slot: The framebuffer slot to read data from.
|
|
129
131
|
:type slot: int
|
|
130
132
|
:param format: The format that describes the content of a single channel.
|
|
131
|
-
Possible values are FLOAT, INT, UINT, UBYTE, UINT_24_8
|
|
133
|
+
Possible values are FLOAT, INT, UINT, UBYTE, UINT_24_8 & 10_11_11_REV.
|
|
132
134
|
UINT_24_8 is deprecated, use FLOAT instead.
|
|
133
135
|
:type format: str
|
|
134
136
|
:param data: Optional Buffer object to fill with the pixels values.
|
|
@@ -137,7 +139,9 @@ class GPUFrameBuffer:
|
|
|
137
139
|
:rtype: Buffer
|
|
138
140
|
"""
|
|
139
141
|
|
|
140
|
-
def read_depth(
|
|
142
|
+
def read_depth(
|
|
143
|
+
self, x: int, y, xsize: int, ysize, *, data: Buffer = data
|
|
144
|
+
) -> Buffer:
|
|
141
145
|
"""Read a pixel depth block from the frame buffer.
|
|
142
146
|
|
|
143
147
|
:param x: Lower left corner of a rectangular block of pixels.
|
|
@@ -204,6 +208,7 @@ class GPUOffScreen:
|
|
|
204
208
|
| mathutils.Matrix,
|
|
205
209
|
projection_matrix: collections.abc.Sequence[collections.abc.Sequence[float]]
|
|
206
210
|
| mathutils.Matrix,
|
|
211
|
+
*,
|
|
207
212
|
do_color_management: bool = False,
|
|
208
213
|
draw_background: bool = True,
|
|
209
214
|
) -> None:
|
|
@@ -233,7 +238,7 @@ class GPUOffScreen:
|
|
|
233
238
|
|
|
234
239
|
"""
|
|
235
240
|
|
|
236
|
-
def unbind(self, restore: bool = True) -> None:
|
|
241
|
+
def unbind(self, *, restore: bool = True) -> None:
|
|
237
242
|
"""Unbind the offscreen object.
|
|
238
243
|
|
|
239
244
|
:param restore: Restore the OpenGL state, can only be used when the state has been saved before.
|
|
@@ -423,7 +428,7 @@ class GPUShaderCreateInfo:
|
|
|
423
428
|
could still be performed while allowing the early depth test to operate.This function alters the behavior of the optimization to allow those operations
|
|
424
429
|
to be performed.
|
|
425
430
|
|
|
426
|
-
:param value: Depth write value. It can be
|
|
431
|
+
:param value: Depth write value. It can be UNCHANGED (default), ANY, GREATER or LESS.
|
|
427
432
|
:UNCHANGED: disables depth write in a fragment shader and execution of thefragments can be optimized away.
|
|
428
433
|
:ANY: enables depth write in a fragment shader for any fragments
|
|
429
434
|
:GREATER: enables depth write in a fragment shader for depth values thatare greater than the depth value in the output buffer.
|
|
@@ -431,7 +436,7 @@ class GPUShaderCreateInfo:
|
|
|
431
436
|
"""
|
|
432
437
|
|
|
433
438
|
def fragment_out(
|
|
434
|
-
self, slot: int, type: str, name: str, blend: str = "NONE"
|
|
439
|
+
self, slot: int, type: str, name: str, *, blend: str = "NONE"
|
|
435
440
|
) -> None:
|
|
436
441
|
"""Specify a fragment output corresponding to a framebuffer target slot.
|
|
437
442
|
|
|
@@ -471,7 +476,7 @@ class GPUShaderCreateInfo:
|
|
|
471
476
|
:type type: str
|
|
472
477
|
:param name: Name of the attribute.
|
|
473
478
|
:type name: str
|
|
474
|
-
:param blend: Dual Source Blending Index. It can be
|
|
479
|
+
:param blend: Dual Source Blending Index. It can be NONE, SRC_0 or SRC_1.
|
|
475
480
|
:type blend: str
|
|
476
481
|
"""
|
|
477
482
|
|
|
@@ -483,7 +488,13 @@ class GPUShaderCreateInfo:
|
|
|
483
488
|
"""
|
|
484
489
|
|
|
485
490
|
def image(
|
|
486
|
-
self,
|
|
491
|
+
self,
|
|
492
|
+
slot: int,
|
|
493
|
+
format: str,
|
|
494
|
+
type: str,
|
|
495
|
+
name: str,
|
|
496
|
+
*,
|
|
497
|
+
qualifiers={"NO_RESTRICT"},
|
|
487
498
|
) -> None:
|
|
488
499
|
"""Specify an image resource used for arbitrary load and store operations.
|
|
489
500
|
|
|
@@ -653,14 +664,14 @@ class GPUShaderCreateInfo:
|
|
|
653
664
|
- WRITE
|
|
654
665
|
"""
|
|
655
666
|
|
|
656
|
-
def local_group_size(self, x: int, y: int =
|
|
667
|
+
def local_group_size(self, x: int, y: int = 1, z: int = 1) -> None:
|
|
657
668
|
"""Specify the local group size for compute shaders.
|
|
658
669
|
|
|
659
670
|
:param x: The local group size in the x dimension.
|
|
660
671
|
:type x: int
|
|
661
|
-
:param y: The local group size in the y dimension. Optional. Defaults to
|
|
672
|
+
:param y: The local group size in the y dimension. Optional. Defaults to 1.
|
|
662
673
|
:type y: int
|
|
663
|
-
:param z: The local group size in the z dimension. Optional. Defaults to
|
|
674
|
+
:param z: The local group size in the z dimension. Optional. Defaults to 1.
|
|
664
675
|
:type z: int
|
|
665
676
|
"""
|
|
666
677
|
|
|
@@ -1008,7 +1019,7 @@ class GPUTexture:
|
|
|
1008
1019
|
"""Fill texture with specific value.
|
|
1009
1020
|
|
|
1010
1021
|
:param format: The format that describes the content of a single item.
|
|
1011
|
-
Possible values are FLOAT, INT, UINT, UBYTE, UINT_24_8
|
|
1022
|
+
Possible values are FLOAT, INT, UINT, UBYTE, UINT_24_8 & 10_11_11_REV.
|
|
1012
1023
|
UINT_24_8 is deprecated, use FLOAT instead.
|
|
1013
1024
|
:type format: str
|
|
1014
1025
|
:param value: Sequence each representing the value to fill. Sizes 1..4 are supported.
|
|
@@ -1056,7 +1067,7 @@ class GPUVertFormat:
|
|
|
1056
1067
|
:param id: Name the attribute. Often position, normal, ...
|
|
1057
1068
|
:type id: str
|
|
1058
1069
|
:param comp_type: The data type that will be used store the value in memory.
|
|
1059
|
-
Possible values are I8, U8, I16, U16, I32, U32, F32
|
|
1070
|
+
Possible values are I8, U8, I16, U16, I32, U32, F32 & I10.
|
|
1060
1071
|
:type comp_type: str
|
|
1061
1072
|
:param len: How many individual values the attribute consists of
|
|
1062
1073
|
(e.g. 2 for uv coordinates).
|
gpu_extras/batch/__init__.pyi
CHANGED
|
@@ -22,7 +22,7 @@ def batch_for_shader(
|
|
|
22
22
|
|
|
23
23
|
:param shader: shader for which a compatible format will be computed.
|
|
24
24
|
:type shader: gpu.types.GPUShader
|
|
25
|
-
:param type: "
|
|
25
|
+
:param type: "POINTS, LINES, TRIS or LINES_ADJ".
|
|
26
26
|
:type type: str
|
|
27
27
|
:param content: Maps the name of the shader attribute with the data to fill the vertex buffer.
|
|
28
28
|
For the dictionary values see documentation for `gpu.types.GPUVertBuf.attr_fill` data argument.
|
idprop/types/__init__.pyi
CHANGED
|
@@ -5,7 +5,7 @@ import numpy.typing as npt
|
|
|
5
5
|
|
|
6
6
|
class IDPropertyArray:
|
|
7
7
|
typecode: typing.Any
|
|
8
|
-
""" The type of the data in the array {
|
|
8
|
+
""" The type of the data in the array {f: float, d: double, i: int, b: bool}."""
|
|
9
9
|
|
|
10
10
|
def to_list(self) -> None:
|
|
11
11
|
"""Return the array as a list."""
|
|
@@ -35,7 +35,7 @@ class IDPropertyGroup:
|
|
|
35
35
|
|
|
36
36
|
:param key: Name of item to remove.
|
|
37
37
|
:type key: str
|
|
38
|
-
:param default: Value to return when key
|
|
38
|
+
:param default: Value to return when key isnt found, otherwise raise an exception.
|
|
39
39
|
:type default: typing.Any
|
|
40
40
|
"""
|
|
41
41
|
|