fake-bpy-module 20250828__py3-none-any.whl → 20260119__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.
Files changed (309) hide show
  1. {bl_console_utils → _bl_console_utils}/autocomplete/complete_calltip/__init__.pyi +0 -13
  2. {bl_console_utils → _bl_console_utils}/autocomplete/complete_import/__init__.pyi +0 -5
  3. {bl_console_utils → _bl_console_utils}/autocomplete/complete_namespace/__init__.pyi +0 -11
  4. {bl_console_utils → _bl_console_utils}/autocomplete/intellisense/__init__.pyi +0 -10
  5. {bl_i18n_utils → _bl_i18n_utils}/__init__.pyi +1 -0
  6. {bl_i18n_utils → _bl_i18n_utils}/bl_extract_messages/__init__.pyi +1 -0
  7. {bl_i18n_utils → _bl_i18n_utils}/settings/__init__.pyi +2 -0
  8. _bl_i18n_utils/utils_spell_check/__init__.pyi +22 -0
  9. {bl_ui_utils → _bl_ui_utils}/__init__.pyi +1 -0
  10. _bpy_internal/__init__.pyi +3 -1
  11. _bpy_internal/disk_file_hash_service/__init__.pyi +19 -0
  12. _bpy_internal/disk_file_hash_service/backend_sqlite/__init__.pyi +48 -0
  13. _bpy_internal/disk_file_hash_service/hash_service/__init__.pyi +64 -0
  14. _bpy_internal/disk_file_hash_service/types/__init__.pyi +53 -0
  15. _bpy_internal/filesystem/__init__.pyi +5 -0
  16. _bpy_internal/filesystem/locking/__init__.pyi +28 -0
  17. _bpy_internal/platform/__init__.pyi +5 -0
  18. _bpy_types/__init__.pyi +115 -117
  19. {rna_info → _rna_info}/__init__.pyi +0 -1
  20. addon_utils/__init__.pyi +0 -13
  21. aud/__init__.pyi +66 -142
  22. bl_app_templates_system/Storyboarding/__init__.pyi +11 -0
  23. bl_app_templates_system/__init__.pyi +5 -0
  24. bl_app_templates_system/py.typed +0 -0
  25. bl_math/__init__.pyi +2 -12
  26. bl_operators/__init__.pyi +1 -0
  27. bl_operators/add_mesh_torus/__init__.pyi +0 -2
  28. bl_operators/anim/__init__.pyi +47 -24
  29. bl_operators/assets/__init__.pyi +0 -6
  30. bl_operators/bone_selection_sets/__init__.pyi +0 -28
  31. bl_operators/clip/__init__.pyi +0 -20
  32. bl_operators/connect_to_output/__init__.pyi +0 -2
  33. bl_operators/console/__init__.pyi +0 -10
  34. bl_operators/constraint/__init__.pyi +0 -8
  35. bl_operators/copy_global_transform/__init__.pyi +261 -0
  36. bl_operators/file/__init__.pyi +0 -6
  37. bl_operators/freestyle/__init__.pyi +0 -8
  38. bl_operators/geometry_nodes/__init__.pyi +0 -8
  39. bl_operators/grease_pencil/__init__.pyi +0 -2
  40. bl_operators/image/__init__.pyi +0 -10
  41. bl_operators/image_as_planes/__init__.pyi +0 -4
  42. bl_operators/mesh/__init__.pyi +0 -47
  43. bl_operators/node/__init__.pyi +277 -57
  44. bl_operators/object/__init__.pyi +0 -37
  45. bl_operators/object_align/__init__.pyi +0 -2
  46. bl_operators/object_quick_effects/__init__.pyi +0 -8
  47. bl_operators/object_randomize_transform/__init__.pyi +0 -2
  48. bl_operators/presets/__init__.pyi +1 -51
  49. bl_operators/rigidbody/__init__.pyi +0 -6
  50. bl_operators/screen_play_rendered_anim/__init__.pyi +0 -2
  51. bl_operators/sequencer/__init__.pyi +0 -16
  52. bl_operators/spreadsheet/__init__.pyi +0 -2
  53. bl_operators/userpref/__init__.pyi +0 -50
  54. bl_operators/uvcalc_follow_active/__init__.pyi +1 -3
  55. bl_operators/uvcalc_lightmap/__init__.pyi +0 -2
  56. bl_operators/uvcalc_transform/__init__.pyi +21 -12
  57. bl_operators/vertexpaint_dirt/__init__.pyi +0 -2
  58. bl_operators/view3d/__init__.pyi +0 -16
  59. bl_operators/wm/__init__.pyi +0 -92
  60. bl_operators/world/__init__.pyi +0 -2
  61. bl_ui/__init__.pyi +3 -4
  62. bl_ui/anim/__init__.pyi +0 -2
  63. bl_ui/asset_shelf/__init__.pyi +0 -2
  64. bl_ui/generic_ui_list/__init__.pyi +1 -17
  65. bl_ui/node_add_menu/__init__.pyi +261 -6
  66. bl_ui/node_add_menu_compositor/__init__.pyi +96 -80
  67. bl_ui/node_add_menu_geometry/__init__.pyi +266 -306
  68. bl_ui/node_add_menu_shader/__init__.pyi +49 -50
  69. bl_ui/node_add_menu_texture/__init__.pyi +16 -62
  70. bl_ui/properties_collection/__init__.pyi +0 -14
  71. bl_ui/properties_constraint/__init__.pyi +55 -209
  72. bl_ui/properties_data_armature/__init__.pyi +0 -36
  73. bl_ui/properties_data_bone/__init__.pyi +0 -20
  74. bl_ui/properties_data_camera/__init__.pyi +0 -30
  75. bl_ui/properties_data_curve/__init__.pyi +0 -30
  76. bl_ui/properties_data_curves/__init__.pyi +0 -16
  77. bl_ui/properties_data_empty/__init__.pyi +0 -4
  78. bl_ui/properties_data_grease_pencil/__init__.pyi +0 -40
  79. bl_ui/properties_data_lattice/__init__.pyi +0 -8
  80. bl_ui/properties_data_light/__init__.pyi +0 -20
  81. bl_ui/properties_data_lightprobe/__init__.pyi +0 -28
  82. bl_ui/properties_data_mesh/__init__.pyi +1 -42
  83. bl_ui/properties_data_metaball/__init__.pyi +0 -12
  84. bl_ui/properties_data_modifier/__init__.pyi +12 -19
  85. bl_ui/properties_data_pointcloud/__init__.pyi +0 -12
  86. bl_ui/properties_data_shaderfx/__init__.pyi +0 -2
  87. bl_ui/properties_data_speaker/__init__.pyi +0 -12
  88. bl_ui/properties_data_volume/__init__.pyi +0 -18
  89. bl_ui/properties_freestyle/__init__.pyi +0 -50
  90. bl_ui/properties_grease_pencil_common/__init__.pyi +0 -159
  91. bl_ui/properties_mask_common/__init__.pyi +0 -14
  92. bl_ui/properties_material/__init__.pyi +0 -32
  93. bl_ui/properties_material_gpencil/__init__.pyi +23 -45
  94. bl_ui/properties_object/__init__.pyi +35 -42
  95. bl_ui/properties_output/__init__.pyi +0 -40
  96. bl_ui/properties_paint_common/__init__.pyi +23 -19
  97. bl_ui/properties_particle/__init__.pyi +0 -106
  98. bl_ui/properties_physics_cloth/__init__.pyi +0 -28
  99. bl_ui/properties_physics_common/__init__.pyi +0 -2
  100. bl_ui/properties_physics_dynamicpaint/__init__.pyi +0 -44
  101. bl_ui/properties_physics_field/__init__.pyi +0 -20
  102. bl_ui/properties_physics_fluid/__init__.pyi +0 -56
  103. bl_ui/properties_physics_geometry_nodes/__init__.pyi +0 -2
  104. bl_ui/properties_physics_rigidbody/__init__.pyi +0 -16
  105. bl_ui/properties_physics_rigidbody_constraint/__init__.pyi +0 -26
  106. bl_ui/properties_physics_softbody/__init__.pyi +0 -30
  107. bl_ui/properties_render/__init__.pyi +58 -86
  108. bl_ui/properties_scene/__init__.pyi +0 -34
  109. bl_ui/properties_strip/__init__.pyi +744 -0
  110. bl_ui/properties_strip_modifier/__init__.pyi +45 -0
  111. bl_ui/properties_texture/__init__.pyi +0 -54
  112. bl_ui/properties_view_layer/__init__.pyi +7 -28
  113. bl_ui/properties_workspace/__init__.pyi +0 -8
  114. bl_ui/properties_world/__init__.pyi +0 -22
  115. bl_ui/space_clip/__init__.pyi +82 -166
  116. bl_ui/space_console/__init__.pyi +0 -12
  117. bl_ui/space_dopesheet/__init__.pyi +67 -76
  118. bl_ui/space_filebrowser/__init__.pyi +0 -60
  119. bl_ui/space_graph/__init__.pyi +0 -66
  120. bl_ui/space_image/__init__.pyi +28 -162
  121. bl_ui/space_info/__init__.pyi +0 -12
  122. bl_ui/space_nla/__init__.pyi +0 -58
  123. bl_ui/space_node/__init__.pyi +99 -132
  124. bl_ui/space_outliner/__init__.pyi +0 -30
  125. bl_ui/space_properties/__init__.pyi +29 -6
  126. bl_ui/space_sequencer/__init__.pyi +159 -987
  127. bl_ui/space_spreadsheet/__init__.pyi +0 -6
  128. bl_ui/space_statusbar/__init__.pyi +0 -2
  129. bl_ui/space_text/__init__.pyi +0 -32
  130. bl_ui/space_time/__init__.pyi +29 -22
  131. bl_ui/space_toolsystem_toolbar/__init__.pyi +7 -2
  132. bl_ui/space_topbar/__init__.pyi +7 -52
  133. bl_ui/space_userpref/__init__.pyi +77 -225
  134. bl_ui/space_view3d/__init__.pyi +69 -551
  135. bl_ui/space_view3d_sidebar/__init__.pyi +127 -0
  136. bl_ui/space_view3d_toolbar/__init__.pyi +22 -799
  137. bl_ui/utils/__init__.pyi +0 -17
  138. blf/__init__.pyi +6 -50
  139. bmesh/__init__.pyi +0 -7
  140. bmesh/geometry/__init__.pyi +0 -3
  141. bmesh/ops/__init__.pyi +5 -450
  142. bmesh/types/__init__.pyi +298 -639
  143. bmesh/utils/__init__.pyi +16 -43
  144. bpy/app/__init__.pyi +66 -58
  145. bpy/app/icons/__init__.pyi +0 -6
  146. bpy/app/timers/__init__.pyi +0 -6
  147. bpy/app/translations/__init__.pyi +1 -16
  148. bpy/msgbus/__init__.pyi +1 -4
  149. bpy/ops/action/__init__.pyi +17 -186
  150. bpy/ops/anim/__init__.pyi +38 -279
  151. bpy/ops/armature/__init__.pyi +20 -191
  152. bpy/ops/asset/__init__.pyi +11 -97
  153. bpy/ops/boid/__init__.pyi +7 -38
  154. bpy/ops/brush/__init__.pyi +3 -104
  155. bpy/ops/buttons/__init__.pyi +4 -71
  156. bpy/ops/cachefile/__init__.pyi +2 -63
  157. bpy/ops/camera/__init__.pyi +0 -11
  158. bpy/ops/clip/__init__.pyi +43 -427
  159. bpy/ops/cloth/__init__.pyi +0 -5
  160. bpy/ops/collection/__init__.pyi +3 -35
  161. bpy/ops/console/__init__.pyi +10 -88
  162. bpy/ops/constraint/__init__.pyi +3 -80
  163. bpy/ops/curve/__init__.pyi +23 -254
  164. bpy/ops/curves/__init__.pyi +54 -149
  165. bpy/ops/cycles/__init__.pyi +1 -14
  166. bpy/ops/dpaint/__init__.pyi +3 -21
  167. bpy/ops/ed/__init__.pyi +10 -82
  168. bpy/ops/export_anim/__init__.pyi +2 -10
  169. bpy/ops/export_scene/__init__.pyi +1 -155
  170. bpy/ops/extensions/__init__.pyi +15 -150
  171. bpy/ops/file/__init__.pyi +29 -216
  172. bpy/ops/fluid/__init__.pyi +13 -70
  173. bpy/ops/font/__init__.pyi +10 -134
  174. bpy/ops/geometry/__init__.pyi +3 -124
  175. bpy/ops/gizmogroup/__init__.pyi +1 -12
  176. bpy/ops/gpencil/__init__.pyi +5 -49
  177. bpy/ops/graph/__init__.pyi +20 -315
  178. bpy/ops/grease_pencil/__init__.pyi +62 -523
  179. bpy/ops/image/__init__.pyi +19 -379
  180. bpy/ops/import_anim/__init__.pyi +2 -16
  181. bpy/ops/import_curve/__init__.pyi +0 -6
  182. bpy/ops/import_scene/__init__.pyi +0 -50
  183. bpy/ops/info/__init__.pyi +4 -35
  184. bpy/ops/lattice/__init__.pyi +3 -33
  185. bpy/ops/marker/__init__.pyi +4 -49
  186. bpy/ops/mask/__init__.pyi +17 -176
  187. bpy/ops/material/__init__.pyi +3 -15
  188. bpy/ops/mball/__init__.pyi +1 -30
  189. bpy/ops/mesh/__init__.pyi +34 -932
  190. bpy/ops/nla/__init__.pyi +22 -183
  191. bpy/ops/node/__init__.pyi +420 -625
  192. bpy/ops/object/__init__.pyi +197 -1239
  193. bpy/ops/outliner/__init__.pyi +47 -327
  194. bpy/ops/paint/__init__.pyi +29 -282
  195. bpy/ops/paintcurve/__init__.pyi +4 -36
  196. bpy/ops/palette/__init__.pyi +3 -27
  197. bpy/ops/particle/__init__.pyi +20 -160
  198. bpy/ops/pointcloud/__init__.pyi +3 -35
  199. bpy/ops/pose/__init__.pyi +29 -234
  200. bpy/ops/poselib/__init__.pyi +19 -66
  201. bpy/ops/preferences/__init__.pyi +9 -177
  202. bpy/ops/ptcache/__init__.pyi +5 -31
  203. bpy/ops/render/__init__.pyi +10 -68
  204. bpy/ops/rigidbody/__init__.pyi +6 -56
  205. bpy/ops/scene/__init__.pyi +23 -168
  206. bpy/ops/screen/__init__.pyi +36 -202
  207. bpy/ops/script/__init__.pyi +1 -12
  208. bpy/ops/sculpt/__init__.pyi +42 -313
  209. bpy/ops/sculpt_curves/__init__.pyi +6 -21
  210. bpy/ops/sequencer/__init__.pyi +187 -644
  211. bpy/ops/sound/__init__.pyi +3 -109
  212. bpy/ops/spreadsheet/__init__.pyi +5 -32
  213. bpy/ops/surface/__init__.pyi +0 -48
  214. bpy/ops/text/__init__.pyi +27 -225
  215. bpy/ops/text_editor/__init__.pyi +0 -5
  216. bpy/ops/texture/__init__.pyi +3 -18
  217. bpy/ops/transform/__init__.pyi +10 -382
  218. bpy/ops/ui/__init__.pyi +29 -154
  219. bpy/ops/uilist/__init__.pyi +0 -13
  220. bpy/ops/uv/__init__.pyi +195 -288
  221. bpy/ops/view2d/__init__.pyi +3 -73
  222. bpy/ops/view3d/__init__.pyi +37 -339
  223. bpy/ops/wm/__init__.pyi +129 -1317
  224. bpy/ops/workspace/__init__.pyi +7 -39
  225. bpy/ops/world/__init__.pyi +2 -10
  226. bpy/path/__init__.pyi +0 -34
  227. bpy/props/__init__.pyi +332 -203
  228. bpy/stub_internal/rna_enums/__init__.pyi +102 -82
  229. bpy/types/__init__.pyi +51712 -89245
  230. bpy/utils/__init__.pyi +4 -75
  231. bpy/utils/previews/__init__.pyi +1 -10
  232. bpy/utils/units/__init__.pyi +0 -12
  233. bpy_extras/anim_utils/__init__.pyi +24 -16
  234. bpy_extras/bmesh_utils/__init__.pyi +0 -1
  235. bpy_extras/id_map_utils/__init__.pyi +14 -6
  236. bpy_extras/image_utils/__init__.pyi +0 -9
  237. bpy_extras/io_utils/__init__.pyi +4 -23
  238. bpy_extras/keyconfig_utils/__init__.pyi +1 -1
  239. bpy_extras/mesh_utils/__init__.pyi +0 -12
  240. bpy_extras/node_shader_utils/__init__.pyi +0 -8
  241. bpy_extras/object_utils/__init__.pyi +0 -14
  242. bpy_extras/view3d_utils/__init__.pyi +0 -18
  243. {fake_bpy_module-20250828.dist-info → fake_bpy_module-20260119.dist-info}/METADATA +4 -1
  244. fake_bpy_module-20260119.dist-info/RECORD +385 -0
  245. {fake_bpy_module-20250828.dist-info → fake_bpy_module-20260119.dist-info}/top_level.txt +15 -14
  246. freestyle/chainingiterators/__init__.pyi +0 -22
  247. freestyle/functions/__init__.pyi +0 -139
  248. freestyle/predicates/__init__.pyi +0 -51
  249. freestyle/shaders/__init__.pyi +0 -65
  250. freestyle/types/__init__.pyi +139 -777
  251. freestyle/utils/ContextFunctions/__init__.pyi +0 -23
  252. freestyle/utils/__init__.pyi +0 -6
  253. gpu/capabilities/__init__.pyi +0 -21
  254. gpu/matrix/__init__.pyi +1 -10
  255. gpu/platform/__init__.pyi +0 -5
  256. gpu/shader/__init__.pyi +22 -6
  257. gpu/state/__init__.pyi +59 -38
  258. gpu/texture/__init__.pyi +0 -2
  259. gpu/types/__init__.pyi +84 -152
  260. gpu_extras/batch/__init__.pyi +0 -4
  261. gpu_extras/presets/__init__.pyi +6 -8
  262. idprop/types/__init__.pyi +6 -6
  263. imbuf/__init__.pyi +2 -9
  264. imbuf/types/__init__.pyi +5 -25
  265. keyingsets_builtins/__init__.pyi +1 -45
  266. mathutils/__init__.pyi +106 -2168
  267. mathutils/bvhtree/__init__.pyi +3 -25
  268. mathutils/geometry/__init__.pyi +41 -133
  269. mathutils/interpolate/__init__.pyi +3 -4
  270. mathutils/kdtree/__init__.pyi +0 -11
  271. mathutils/noise/__init__.pyi +0 -62
  272. fake_bpy_module-20250828.dist-info/RECORD +0 -370
  273. {animsys_refactor → _animsys_refactor}/__init__.pyi +0 -0
  274. {animsys_refactor → _animsys_refactor}/py.typed +0 -0
  275. {bl_console_utils → _bl_console_utils}/__init__.pyi +0 -0
  276. {bl_console_utils → _bl_console_utils}/autocomplete/__init__.pyi +0 -0
  277. {bl_console_utils → _bl_console_utils}/py.typed +0 -0
  278. {bl_i18n_utils → _bl_i18n_utils}/merge_po/__init__.pyi +0 -0
  279. {bl_i18n_utils → _bl_i18n_utils}/py.typed +0 -0
  280. {bl_i18n_utils → _bl_i18n_utils}/utils/__init__.pyi +0 -0
  281. {bl_i18n_utils → _bl_i18n_utils}/utils_cli/__init__.pyi +0 -0
  282. {bl_i18n_utils → _bl_i18n_utils}/utils_languages_menu/__init__.pyi +0 -0
  283. {bl_i18n_utils → _bl_i18n_utils}/utils_rtl/__init__.pyi +0 -0
  284. {bl_previews_utils → _bl_previews_utils}/__init__.pyi +0 -0
  285. {bl_previews_utils → _bl_previews_utils}/bl_previews_render/__init__.pyi +0 -0
  286. {bl_previews_utils → _bl_previews_utils}/py.typed +0 -0
  287. {bl_rna_utils → _bl_rna_utils}/__init__.pyi +0 -0
  288. {bl_rna_utils → _bl_rna_utils}/data_path/__init__.pyi +0 -0
  289. {bl_rna_utils → _bl_rna_utils}/py.typed +0 -0
  290. {bl_text_utils → _bl_text_utils}/__init__.pyi +0 -0
  291. {bl_text_utils → _bl_text_utils}/external_editor/__init__.pyi +0 -0
  292. {bl_text_utils → _bl_text_utils}/py.typed +0 -0
  293. {bl_ui_utils → _bl_ui_utils}/layout/__init__.pyi +0 -0
  294. {bl_ui_utils → _bl_ui_utils}/py.typed +0 -0
  295. /_bpy_internal/{freedesktop → platform/freedesktop}/__init__.pyi +0 -0
  296. {bpy_restrict_state → _bpy_restrict_state}/__init__.pyi +0 -0
  297. {bpy_restrict_state → _bpy_restrict_state}/py.typed +0 -0
  298. {console_python → _console_python}/__init__.pyi +0 -0
  299. {console_python → _console_python}/py.typed +0 -0
  300. {console_shell → _console_shell}/__init__.pyi +0 -0
  301. {console_shell → _console_shell}/py.typed +0 -0
  302. {graphviz_export → _graphviz_export}/__init__.pyi +0 -0
  303. {graphviz_export → _graphviz_export}/py.typed +0 -0
  304. {keyingsets_utils → _keyingsets_utils}/__init__.pyi +0 -0
  305. {keyingsets_utils → _keyingsets_utils}/py.typed +0 -0
  306. {rna_info → _rna_info}/py.typed +0 -0
  307. {rna_xml → _rna_xml}/__init__.pyi +0 -0
  308. {rna_xml → _rna_xml}/py.typed +0 -0
  309. {fake_bpy_module-20250828.dist-info → fake_bpy_module-20260119.dist-info}/WHEEL +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) -> 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.
@@ -29,13 +29,10 @@ class GPUBatch:
29
29
  number being drawn.
30
30
 
31
31
  :param program: Program that performs the drawing operations.
32
- :type program: GPUShader
33
32
  :param instance_start: Number of the first instance to draw.
34
- :type instance_start: int
35
33
  :param instance_count: Number of instances to draw. When not provided or set to 0
36
34
  the number of instances will be determined by the number of rows in the first
37
35
  vertex buffer.
38
- :type instance_count: int
39
36
  """
40
37
 
41
38
  def draw_range(
@@ -44,14 +41,11 @@ class GPUBatch:
44
41
  """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
42
 
46
43
  :param program: Program that performs the drawing operations.
47
- :type program: GPUShader
48
44
  :param elem_start: First index to draw. When not provided or set to 0 drawing
49
45
  will start from the first element of the index buffer.
50
- :type elem_start: int
51
46
  :param elem_count: Number of elements of the index buffer to draw. When not
52
47
  provided or set to 0 all elements from elem_start to the end of the
53
48
  index buffer will be drawn.
54
- :type elem_count: int
55
49
  """
56
50
 
57
51
  def program_set(self, program: GPUShader) -> None:
@@ -61,7 +55,6 @@ class GPUBatch:
61
55
  set the shader when calling `gpu.types.GPUBatch.draw`.
62
56
 
63
57
  :param program: The program/shader the batch will use in future draw calls.
64
- :type program: GPUShader
65
58
  """
66
59
 
67
60
  def vertbuf_add(self, buf: GPUVertBuf) -> None:
@@ -73,7 +66,6 @@ class GPUBatch:
73
66
  Current a batch can have at most GPU_BATCH_VBO_MAX_LEN vertex buffers.
74
67
 
75
68
  :param buf: The vertex buffer that will be added to the batch.
76
- :type buf: GPUVertBuf
77
69
  """
78
70
 
79
71
  class GPUFrameBuffer:
@@ -99,11 +91,8 @@ class GPUFrameBuffer:
99
91
  Common values: color=(0.0, 0.0, 0.0, 1.0), depth=1.0, stencil=0.
100
92
 
101
93
  :param color: Sequence of 3 or 4 floats representing (r, g, b, a).
102
- :type color: collections.abc.Sequence[float] | None
103
94
  :param depth: depth value.
104
- :type depth: float | None
105
95
  :param stencil: stencil value.
106
- :type stencil: int | None
107
96
  """
108
97
 
109
98
  def read_color(
@@ -116,44 +105,34 @@ class GPUFrameBuffer:
116
105
  slot: int,
117
106
  format: str,
118
107
  *,
119
- data: Buffer = data,
108
+ data: Buffer | None = None,
120
109
  ) -> Buffer:
121
110
  """Read a block of pixels from the frame buffer.
122
111
 
123
112
  :param x: Lower left corner of a rectangular block of pixels.
124
- :type x: int
125
113
  :param y:
126
114
  :param xsize: Dimensions of the pixel rectangle.
127
115
  :param ysize:
128
116
  :param channels: Number of components to read.
129
- :type channels: int
130
117
  :param slot: The framebuffer slot to read data from.
131
- :type slot: int
132
118
  :param format: The format that describes the content of a single channel.
133
119
  Possible values are FLOAT, INT, UINT, UBYTE, UINT_24_8 & 10_11_11_REV.
134
120
  UINT_24_8 is deprecated, use FLOAT instead.
135
- :type format: str
136
121
  :param data: Optional Buffer object to fill with the pixels values.
137
- :type data: Buffer
138
122
  :return: The Buffer with the read pixels.
139
- :rtype: Buffer
140
123
  """
141
124
 
142
125
  def read_depth(
143
- self, x: int, y, xsize: int, ysize, *, data: Buffer = data
126
+ self, x: int, y, xsize: int, ysize, *, data: Buffer | None = None
144
127
  ) -> Buffer:
145
128
  """Read a pixel depth block from the frame buffer.
146
129
 
147
130
  :param x: Lower left corner of a rectangular block of pixels.
148
- :type x: int
149
131
  :param y:
150
132
  :param xsize: Dimensions of the pixel rectangle.
151
- :type xsize: int
152
133
  :param ysize:
153
134
  :param data: Optional Buffer object to fill with the pixels values.
154
- :type data: Buffer
155
135
  :return: The Buffer with the read pixels.
156
- :rtype: Buffer
157
136
  """
158
137
 
159
138
  def viewport_get(self) -> None:
@@ -164,10 +143,8 @@ class GPUFrameBuffer:
164
143
  Note: The viewport state is not saved upon framebuffer rebind.
165
144
 
166
145
  :param x: lower left corner of the viewport_set rectangle, in pixels.
167
- :type x: int
168
146
  :param y:
169
147
  :param xsize: width and height of the viewport_set.
170
- :type xsize: int
171
148
  :param ysize:
172
149
  """
173
150
 
@@ -178,22 +155,13 @@ class GPUOffScreen:
178
155
  """This object gives access to off screen buffers."""
179
156
 
180
157
  height: int
181
- """ Height of the texture.
182
-
183
- :type: int
184
- """
158
+ """ Height of the texture."""
185
159
 
186
160
  texture_color: GPUTexture
187
- """ The color texture attached.
188
-
189
- :type: GPUTexture
190
- """
161
+ """ The color texture attached."""
191
162
 
192
163
  width: int
193
- """ Width of the texture.
194
-
195
- :type: int
196
- """
164
+ """ Width of the texture."""
197
165
 
198
166
  def bind(self) -> None:
199
167
  """Context manager to ensure balanced bind calls, even in the case of an error."""
@@ -215,21 +183,13 @@ class GPUOffScreen:
215
183
  """Draw the 3d viewport in the offscreen object.
216
184
 
217
185
  :param scene: Scene to draw.
218
- :type scene: bpy.types.Scene
219
186
  :param view_layer: View layer to draw.
220
- :type view_layer: bpy.types.ViewLayer
221
187
  :param view3d: 3D View to get the drawing settings from.
222
- :type view3d: bpy.types.SpaceView3D
223
188
  :param region: Region of the 3D View (required as temporary draw target).
224
- :type region: bpy.types.Region
225
189
  :param view_matrix: View Matrix (e.g. camera.matrix_world.inverted()).
226
- :type view_matrix: collections.abc.Sequence[collections.abc.Sequence[float]] | mathutils.Matrix
227
190
  :param projection_matrix: Projection Matrix (e.g. camera.calc_matrix_camera(...)).
228
- :type projection_matrix: collections.abc.Sequence[collections.abc.Sequence[float]] | mathutils.Matrix
229
191
  :param do_color_management: Color manage the output.
230
- :type do_color_management: bool
231
192
  :param draw_background: Draw background.
232
- :type draw_background: bool
233
193
  """
234
194
 
235
195
  def free(self) -> None:
@@ -242,37 +202,27 @@ class GPUOffScreen:
242
202
  """Unbind the offscreen object.
243
203
 
244
204
  :param restore: Restore the OpenGL state, can only be used when the state has been saved before.
245
- :type restore: bool
246
205
  """
247
206
 
248
207
  class GPUShader:
249
208
  name: str
250
- """ The name of the shader object for debugging purposes (read-only).
251
-
252
- :type: str
253
- """
209
+ """ The name of the shader object for debugging purposes (read-only)."""
254
210
 
255
211
  program: int
256
212
  """ The name of the program object for use by the OpenGL API (read-only).
257
- This is deprecated and will always return -1.
258
-
259
- :type: int
260
- """
213
+ This is deprecated and will always return -1."""
261
214
 
262
215
  def attr_from_name(self, name: str) -> int:
263
216
  """Get attribute location by name.
264
217
 
265
218
  :param name: The name of the attribute variable whose location is to be queried.
266
- :type name: str
267
219
  :return: The location of an attribute variable.
268
- :rtype: int
269
220
  """
270
221
 
271
222
  def attrs_info_get(self) -> tuple[tuple[str, str | None], ...]:
272
223
  """Information about the attributes used in the Shader.
273
224
 
274
225
  :return: tuples containing information about the attributes in order (name, type)
275
- :rtype: tuple[tuple[str, str | None], ...]
276
226
  """
277
227
 
278
228
  def bind(self) -> None:
@@ -282,23 +232,19 @@ This is deprecated and will always return -1.
282
232
  """Build a new format based on the attributes of the shader.
283
233
 
284
234
  :return: vertex attribute format for the shader
285
- :rtype: GPUVertFormat
286
235
  """
287
236
 
288
237
  def image(self, name: str, texture: GPUTexture) -> None:
289
238
  """Specify the value of an image variable for the current GPUShader.
290
239
 
291
240
  :param name: Name of the image variable to which the texture is to be bound.
292
- :type name: str
293
241
  :param texture: Texture to attach.
294
- :type texture: GPUTexture
295
242
  """
296
243
 
297
- def uniform_block(self, name: str, ubo) -> None:
298
- """Specify the value of an uniform buffer object variable for the current GPUShader.
244
+ def uniform_block(self, name: str, ubo: GPUUniformBuf) -> None:
245
+ """Specify the value of a uniform buffer object variable for the current GPUShader.
299
246
 
300
- :param name: name of the uniform variable whose UBO is to be specified.
301
- :type name: str
247
+ :param name: Name of the uniform variable whose UBO is to be specified.
302
248
  :param ubo: Uniform Buffer to attach.
303
249
  """
304
250
 
@@ -306,9 +252,7 @@ This is deprecated and will always return -1.
306
252
  """Get uniform block location by name.
307
253
 
308
254
  :param name: Name of the uniform block variable whose location is to be queried.
309
- :type name: str
310
255
  :return: The location of the uniform block variable.
311
- :rtype: int
312
256
  """
313
257
 
314
258
  def uniform_bool(
@@ -317,9 +261,7 @@ This is deprecated and will always return -1.
317
261
  """Specify the value of a uniform variable for the current program object.
318
262
 
319
263
  :param name: Name of the uniform variable whose value is to be changed.
320
- :type name: str
321
264
  :param value: Value that will be used to update the specified uniform variable.
322
- :type value: bool | collections.abc.Sequence[bool]
323
265
  """
324
266
 
325
267
  def uniform_float(
@@ -328,36 +270,28 @@ This is deprecated and will always return -1.
328
270
  """Specify the value of a uniform variable for the current program object.
329
271
 
330
272
  :param name: Name of the uniform variable whose value is to be changed.
331
- :type name: str
332
273
  :param value: Value that will be used to update the specified uniform variable.
333
- :type value: collections.abc.Sequence[float] | float
334
274
  """
335
275
 
336
276
  def uniform_from_name(self, name: str) -> int:
337
277
  """Get uniform location by name.
338
278
 
339
279
  :param name: Name of the uniform variable whose location is to be queried.
340
- :type name: str
341
280
  :return: Location of the uniform variable.
342
- :rtype: int
343
281
  """
344
282
 
345
- def uniform_int(self, name: str, seq: collections.abc.Sequence[int]) -> None:
283
+ def uniform_int(self, name: str, seq: collections.abc.Sequence[int] | int) -> None:
346
284
  """Specify the value of a uniform variable for the current program object.
347
285
 
348
- :param name: name of the uniform variable whose value is to be changed.
349
- :type name: str
286
+ :param name: Name of the uniform variable whose value is to be changed.
350
287
  :param seq: Value that will be used to update the specified uniform variable.
351
- :type seq: collections.abc.Sequence[int]
352
288
  """
353
289
 
354
290
  def uniform_sampler(self, name: str, texture: GPUTexture) -> None:
355
291
  """Specify the value of a texture uniform variable for the current GPUShader.
356
292
 
357
- :param name: name of the uniform variable whose texture is to be specified.
358
- :type name: str
293
+ :param name: Name of the uniform variable whose texture is to be specified.
359
294
  :param texture: Texture to attach.
360
- :type texture: GPUTexture
361
295
  """
362
296
 
363
297
  def uniform_vector_float(
@@ -370,9 +304,7 @@ This is deprecated and will always return -1.
370
304
  """Set the buffer to fill the uniform.
371
305
 
372
306
  :param location: Location of the uniform variable to be modified.
373
- :type location: int
374
307
  :param buffer: The data that should be set. Can support the buffer protocol.
375
- :type buffer: collections.abc.Sequence[float]
376
308
  :param length: Size of the uniform data type:
377
309
 
378
310
  1: float
@@ -386,18 +318,18 @@ This is deprecated and will always return -1.
386
318
  9: mat3
387
319
 
388
320
  16: mat4
389
- :type length: int
390
321
  :param count: Specifies the number of elements, vector or matrices that are to be modified.
391
- :type count: int
392
322
  """
393
323
 
394
- def uniform_vector_int(self, location, buffer, length, count) -> None:
395
- """See GPUShader.uniform_vector_float(...) description.
324
+ def uniform_vector_int(
325
+ self, location: int, buffer, length: int, count: int
326
+ ) -> None:
327
+ """Set the buffer to fill the uniform.
396
328
 
397
- :param location:
398
- :param buffer:
399
- :param length:
400
- :param count:
329
+ :param location: Location of the uniform variable to be modified.
330
+ :param buffer: Buffer object with format matching the uniform.
331
+ :param length: Size of the uniform data type.
332
+ :param count: Specifies the number of elements that are to be modified.
401
333
  """
402
334
 
403
335
  class GPUShaderCreateInfo:
@@ -407,19 +339,16 @@ class GPUShaderCreateInfo:
407
339
  """compute shader source code written in GLSL.Example:`GLSL Cross Compilation <https://developer.blender.org/docs/features/gpu/glsl_cross_compilation/>`__
408
340
 
409
341
  :param source: The compute shader source code.
410
- :type source: str
411
342
  """
412
343
 
413
344
  def define(self, name: str, value: str) -> None:
414
345
  """Add a preprocessing define directive. In GLSL it would be something like:
415
346
 
416
347
  :param name: Token name.
417
- :type name: str
418
348
  :param value: Text that replaces token occurrences.
419
- :type value: str
420
349
  """
421
350
 
422
- def depth_write(self, value) -> None:
351
+ def depth_write(self, value: str) -> None:
423
352
  """Specify a depth write behavior when modifying gl_FragDepth.There is a common optimization for GPUs that relies on an early depth
424
353
  test to be run before the fragment shader so that the shader evaluation
425
354
  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
@@ -441,7 +370,6 @@ class GPUShaderCreateInfo:
441
370
  """Specify a fragment output corresponding to a framebuffer target slot.
442
371
 
443
372
  :param slot: The attribute index.
444
- :type slot: int
445
373
  :param type: One of these types:
446
374
 
447
375
  FLOAT
@@ -473,18 +401,14 @@ class GPUShaderCreateInfo:
473
401
  IVEC4
474
402
 
475
403
  BOOL
476
- :type type: str
477
404
  :param name: Name of the attribute.
478
- :type name: str
479
405
  :param blend: Dual Source Blending Index. It can be NONE, SRC_0 or SRC_1.
480
- :type blend: str
481
406
  """
482
407
 
483
408
  def fragment_source(self, source: str) -> None:
484
409
  """Fragment shader source code written in GLSL.Example:`GLSL Cross Compilation <https://developer.blender.org/docs/features/gpu/glsl_cross_compilation/>`__
485
410
 
486
411
  :param source: The fragment shader source code.
487
- :type source: str
488
412
  """
489
413
 
490
414
  def image(
@@ -494,12 +418,11 @@ class GPUShaderCreateInfo:
494
418
  type: str,
495
419
  name: str,
496
420
  *,
497
- qualifiers={"NO_RESTRICT"},
421
+ qualifiers: set[str] = {"NO_RESTRICT"},
498
422
  ) -> None:
499
423
  """Specify an image resource used for arbitrary load and store operations.
500
424
 
501
425
  :param slot: The image resource index.
502
- :type slot: int
503
426
  :param format: The GPUTexture format that is passed to the shader. Possible values are:
504
427
 
505
428
  RGBA8UI
@@ -589,7 +512,6 @@ class GPUShaderCreateInfo:
589
512
  DEPTH_COMPONENT24 (deprecated, use DEPTH_COMPONENT32F)
590
513
 
591
514
  DEPTH_COMPONENT16
592
- :type format: str
593
515
  :param type: The data type describing how the image is to be read in the shader. Possible values are:
594
516
 
595
517
  FLOAT_BUFFER
@@ -655,9 +577,7 @@ class GPUShaderCreateInfo:
655
577
  DEPTH_CUBE
656
578
 
657
579
  DEPTH_CUBE_ARRAY
658
- :type type: str
659
580
  :param name: The image resource name.
660
- :type name: str
661
581
  :param qualifiers: Set containing values that describe how the image resource is to be read or written. Possible values are:
662
582
  - NO_RESTRICT
663
583
  - READ
@@ -668,11 +588,8 @@ class GPUShaderCreateInfo:
668
588
  """Specify the local group size for compute shaders.
669
589
 
670
590
  :param x: The local group size in the x dimension.
671
- :type x: int
672
591
  :param y: The local group size in the y dimension. Optional. Defaults to 1.
673
- :type y: int
674
592
  :param z: The local group size in the z dimension. Optional. Defaults to 1.
675
- :type z: int
676
593
  """
677
594
 
678
595
  def push_constant(self, type: str, name: str, size: int = 0) -> None:
@@ -709,18 +626,14 @@ class GPUShaderCreateInfo:
709
626
  IVEC4
710
627
 
711
628
  BOOL
712
- :type type: str
713
629
  :param name: Name of the constant.
714
- :type name: str
715
630
  :param size: If not zero, indicates that the constant is an array with the specified size.
716
- :type size: int
717
631
  """
718
632
 
719
633
  def sampler(self, slot: int, type: str, name: str) -> None:
720
634
  """Specify an image texture sampler.
721
635
 
722
636
  :param slot: The image texture sampler index.
723
- :type slot: int
724
637
  :param type: The data type describing the format of each sampler unit. Possible values are:
725
638
 
726
639
  FLOAT_BUFFER
@@ -786,34 +699,27 @@ class GPUShaderCreateInfo:
786
699
  DEPTH_CUBE
787
700
 
788
701
  DEPTH_CUBE_ARRAY
789
- :type type: str
790
702
  :param name: The image texture sampler name.
791
- :type name: str
792
703
  """
793
704
 
794
705
  def typedef_source(self, source: str) -> None:
795
706
  """Source code included before resource declaration. Useful for defining structs used by Uniform Buffers.Example:
796
707
 
797
708
  :param source: The source code defining types.
798
- :type source: str
799
709
  """
800
710
 
801
711
  def uniform_buf(self, slot: int, type_name: str, name: str) -> None:
802
712
  """Specify a uniform variable whose type can be one of those declared in `gpu.types.GPUShaderCreateInfo.typedef_source`.
803
713
 
804
714
  :param slot: The uniform variable index.
805
- :type slot: int
806
715
  :param type_name: Name of the data type. It can be a struct type defined in the source passed through the `gpu.types.GPUShaderCreateInfo.typedef_source`.
807
- :type type_name: str
808
716
  :param name: The uniform variable name.
809
- :type name: str
810
717
  """
811
718
 
812
719
  def vertex_in(self, slot: int, type: str, name: str) -> None:
813
720
  """Add a vertex shader input attribute.
814
721
 
815
722
  :param slot: The attribute index.
816
- :type slot: int
817
723
  :param type: One of these types:
818
724
 
819
725
  FLOAT
@@ -845,33 +751,26 @@ class GPUShaderCreateInfo:
845
751
  IVEC4
846
752
 
847
753
  BOOL
848
- :type type: str
849
754
  :param name: name of the attribute.
850
- :type name: str
851
755
  """
852
756
 
853
757
  def vertex_out(self, interface: GPUStageInterfaceInfo) -> None:
854
758
  """Add a vertex shader output interface block.
855
759
 
856
760
  :param interface: Object describing the block.
857
- :type interface: GPUStageInterfaceInfo
858
761
  """
859
762
 
860
763
  def vertex_source(self, source: str) -> None:
861
764
  """Vertex shader source code written in GLSL.Example:`GLSL Cross Compilation <https://developer.blender.org/docs/features/gpu/glsl_cross_compilation/>`__
862
765
 
863
766
  :param source: The vertex shader source code.
864
- :type source: str
865
767
  """
866
768
 
867
769
  class GPUStageInterfaceInfo:
868
770
  """List of varyings between shader stages."""
869
771
 
870
772
  name: str
871
- """ Name of the interface block.
872
-
873
- :type: str
874
- """
773
+ """ Name of the interface block."""
875
774
 
876
775
  def flat(self, type: str, name: str) -> None:
877
776
  """Add an attribute with qualifier of type flat to the interface block.
@@ -907,9 +806,7 @@ class GPUStageInterfaceInfo:
907
806
  IVEC4
908
807
 
909
808
  BOOL
910
- :type type: str
911
809
  :param name: name of the attribute.
912
- :type name: str
913
810
  """
914
811
 
915
812
  def no_perspective(self, type: str, name: str) -> None:
@@ -946,9 +843,7 @@ class GPUStageInterfaceInfo:
946
843
  IVEC4
947
844
 
948
845
  BOOL
949
- :type type: str
950
846
  :param name: name of the attribute.
951
- :type name: str
952
847
  """
953
848
 
954
849
  def smooth(self, type: str, name: str) -> None:
@@ -985,31 +880,26 @@ class GPUStageInterfaceInfo:
985
880
  IVEC4
986
881
 
987
882
  BOOL
988
- :type type: str
989
883
  :param name: name of the attribute.
990
- :type name: str
991
884
  """
992
885
 
993
886
  class GPUTexture:
994
- """This object gives access to off GPU textures."""
887
+ """This object gives access to GPU textures."""
995
888
 
996
889
  format: str
997
- """ Format of the texture.
998
-
999
- :type: str
1000
- """
890
+ """ Format of the texture."""
1001
891
 
1002
892
  height: int
1003
- """ Height of the texture.
1004
-
1005
- :type: int
1006
- """
893
+ """ Height of the texture."""
1007
894
 
1008
895
  width: int
1009
- """ Width of the texture.
896
+ """ Width of the texture."""
1010
897
 
1011
- :type: int
1012
- """
898
+ def anisotropic_filter(self, use_anisotropic: bool) -> None:
899
+ """Set anisotropic filter usage. This only has effect if mipmapping is enabled.
900
+
901
+ :param use_anisotropic: If set to true, the texture will use anisotropic filtering.
902
+ """
1013
903
 
1014
904
  def clear(
1015
905
  self,
@@ -1021,9 +911,57 @@ class GPUTexture:
1021
911
  :param format: The format that describes the content of a single item.
1022
912
  Possible values are FLOAT, INT, UINT, UBYTE, UINT_24_8 & 10_11_11_REV.
1023
913
  UINT_24_8 is deprecated, use FLOAT instead.
1024
- :type format: str
1025
914
  :param value: Sequence each representing the value to fill. Sizes 1..4 are supported.
1026
- :type value: collections.abc.Sequence[float]
915
+ """
916
+
917
+ def extend_mode(
918
+ self,
919
+ extend_mode: typing.Literal[
920
+ "EXTEND", "REPEAT", "MIRRORED_REPEAT", "CLAMP_TO_BORDER"
921
+ ] = "EXTEND",
922
+ /,
923
+ ) -> None:
924
+ """Set texture sampling method for coordinates outside of the [0..1] uv range along
925
+ both the x and y axis.
926
+
927
+ :param extend_mode: the specified extent mode.
928
+ """
929
+
930
+ def extend_mode_x(
931
+ self,
932
+ extend_mode: typing.Literal[
933
+ "EXTEND", "REPEAT", "MIRRORED_REPEAT", "CLAMP_TO_BORDER"
934
+ ] = "EXTEND",
935
+ /,
936
+ ) -> None:
937
+ """Set texture sampling method for coordinates outside of the [0..1] uv range along the x axis.
938
+
939
+ :param extend_mode: the specified extent mode.
940
+ """
941
+
942
+ def extend_mode_y(
943
+ self,
944
+ extend_mode: typing.Literal[
945
+ "EXTEND", "REPEAT", "MIRRORED_REPEAT", "CLAMP_TO_BORDER"
946
+ ] = "EXTEND",
947
+ /,
948
+ ) -> None:
949
+ """Set texture sampling method for coordinates outside of the [0..1] uv range along the y axis.
950
+
951
+ :param extend_mode: the specified extent mode.
952
+ """
953
+
954
+ def filter_mode(self, use_filter: bool) -> None:
955
+ """Set texture filter usage.
956
+
957
+ :param use_filter: If set to true, the texture will use linear interpolation between neighboring texels.
958
+ """
959
+
960
+ def mipmap_mode(self, use_mipmap: bool = True, use_filter: bool = True) -> None:
961
+ """Set texture filter and mip-map usage.
962
+
963
+ :param use_mipmap: If set to true, the texture will use mip-mapping as anti-aliasing method.
964
+ :param use_filter: If set to true, the texture will use linear interpolation between neighboring texels.
1027
965
  """
1028
966
 
1029
967
  def read(self) -> None:
@@ -1053,9 +991,7 @@ class GPUVertBuf:
1053
991
  """Insert data into the buffer for a single attribute.
1054
992
 
1055
993
  :param id: Either the name or the id of the attribute.
1056
- :type id: int | str
1057
994
  :param data: Buffer or sequence of data that should be stored in the buffer
1058
- :type data: Buffer | collections.abc.Sequence[collections.abc.Sequence[float]] | collections.abc.Sequence[collections.abc.Sequence[int]] | collections.abc.Sequence[float] | collections.abc.Sequence[int]
1059
995
  """
1060
996
 
1061
997
  class GPUVertFormat:
@@ -1065,17 +1001,13 @@ class GPUVertFormat:
1065
1001
  """Add a new attribute to the format.
1066
1002
 
1067
1003
  :param id: Name the attribute. Often position, normal, ...
1068
- :type id: str
1069
1004
  :param comp_type: The data type that will be used store the value in memory.
1070
1005
  Possible values are I8, U8, I16, U16, I32, U32, F32 & I10.
1071
- :type comp_type: str
1072
1006
  :param len: How many individual values the attribute consists of
1073
1007
  (e.g. 2 for uv coordinates).
1074
- :type len: int
1075
1008
  :param fetch_mode: How values from memory will be converted when used in the shader.
1076
1009
  This is mainly useful for memory optimizations when you want to store values with
1077
1010
  reduced precision. E.g. you can store a float in only 1 byte but it will be
1078
1011
  converted to a normal 4 byte float when used.
1079
1012
  Possible values are FLOAT, INT or INT_TO_FLOAT_UNIT.
1080
- :type fetch_mode: str
1081
1013
  """
@@ -21,12 +21,8 @@ def batch_for_shader(
21
21
  """Return a batch already configured and compatible with the shader.
22
22
 
23
23
  :param shader: shader for which a compatible format will be computed.
24
- :type shader: gpu.types.GPUShader
25
24
  :param type: "POINTS, LINES, TRIS or LINES_ADJ".
26
- :type type: str
27
25
  :param content: Maps the name of the shader attribute with the data to fill the vertex buffer.
28
26
  For the dictionary values see documentation for `gpu.types.GPUVertBuf.attr_fill` data argument.
29
- :type content: dict[str, gpu.types.Buffer | collections.abc.Sequence[float] | collections.abc.Sequence[int] | collections.abc.Sequence[collections.abc.Sequence[float]] | collections.abc.Sequence[collections.abc.Sequence[int]]]
30
27
  :return: compatible batch
31
- :rtype: gpu.types.GPUBatch
32
28
  """