fake-bpy-module 20231205__py3-none-any.whl → 20231207__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.
- addon_utils/__init__.pyi +84 -0
- animsys_refactor/__init__.pyi +55 -0
- aud/__init__.pyi +1190 -0
- bgl/__init__.pyi +5084 -0
- bl_app_override/__init__.pyi +31 -0
- bl_app_override/helpers/__init__.pyi +42 -0
- bl_app_override/helpers/py.typed +0 -0
- bl_app_template_utils/__init__.pyi +36 -0
- bl_console_utils/autocomplete/__init__.pyi +8 -0
- bl_console_utils/autocomplete/complete_calltip/__init__.pyi +44 -0
- bl_console_utils/autocomplete/complete_calltip/py.typed +0 -0
- bl_console_utils/autocomplete/complete_import/__init__.pyi +28 -0
- bl_console_utils/autocomplete/complete_import/py.typed +0 -0
- bl_console_utils/autocomplete/complete_namespace/__init__.pyi +44 -0
- bl_console_utils/autocomplete/complete_namespace/py.typed +0 -0
- bl_console_utils/autocomplete/intellisense/__init__.pyi +20 -0
- bl_console_utils/autocomplete/intellisense/py.typed +0 -0
- bl_i18n_utils/__init__.pyi +11 -0
- bl_i18n_utils/bl_extract_messages/__init__.pyi +124 -0
- bl_i18n_utils/bl_extract_messages/py.typed +0 -0
- bl_i18n_utils/merge_po/__init__.pyi +12 -0
- bl_i18n_utils/merge_po/py.typed +0 -0
- bl_i18n_utils/settings/__init__.pyi +66 -0
- bl_i18n_utils/settings/py.typed +0 -0
- bl_i18n_utils/utils/__init__.pyi +338 -0
- bl_i18n_utils/utils/py.typed +0 -0
- bl_i18n_utils/utils_cli/__init__.pyi +52 -0
- bl_i18n_utils/utils_cli/py.typed +0 -0
- bl_i18n_utils/utils_languages_menu/__init__.pyi +12 -0
- bl_i18n_utils/utils_languages_menu/py.typed +0 -0
- bl_i18n_utils/utils_rtl/__init__.pyi +20 -0
- bl_i18n_utils/utils_rtl/py.typed +0 -0
- bl_keymap_utils/__init__.pyi +9 -0
- bl_keymap_utils/io/__init__.pyi +76 -0
- bl_keymap_utils/io/py.typed +0 -0
- bl_keymap_utils/keymap_from_toolbar/__init__.pyi +12 -0
- bl_keymap_utils/keymap_from_toolbar/py.typed +0 -0
- bl_keymap_utils/keymap_hierarchy/__init__.pyi +12 -0
- bl_keymap_utils/keymap_hierarchy/py.typed +0 -0
- bl_keymap_utils/platform_helpers/__init__.pyi +20 -0
- bl_keymap_utils/platform_helpers/py.typed +0 -0
- bl_keymap_utils/versioning/__init__.pyi +12 -0
- bl_keymap_utils/versioning/py.typed +0 -0
- bl_math/__init__.pyi +52 -0
- bl_operators/__init__.pyi +49 -0
- bl_operators/add_mesh_torus/__init__.pyi +231 -0
- bl_operators/add_mesh_torus/py.typed +0 -0
- bl_operators/anim/__init__.pyi +1291 -0
- bl_operators/anim/py.typed +0 -0
- bl_operators/assets/__init__.pyi +586 -0
- bl_operators/assets/py.typed +0 -0
- bl_operators/bmesh/find_adjacent/__init__.pyi +76 -0
- bl_operators/bmesh/find_adjacent/py.typed +0 -0
- bl_operators/clip/__init__.pyi +1898 -0
- bl_operators/clip/py.typed +0 -0
- bl_operators/console/__init__.pyi +918 -0
- bl_operators/console/py.typed +0 -0
- bl_operators/constraint/__init__.pyi +745 -0
- bl_operators/constraint/py.typed +0 -0
- bl_operators/file/__init__.pyi +560 -0
- bl_operators/file/py.typed +0 -0
- bl_operators/freestyle/__init__.pyi +751 -0
- bl_operators/freestyle/py.typed +0 -0
- bl_operators/geometry_nodes/__init__.pyi +2553 -0
- bl_operators/geometry_nodes/py.typed +0 -0
- bl_operators/image/__init__.pyi +548 -0
- bl_operators/image/py.typed +0 -0
- bl_operators/mesh/__init__.pyi +566 -0
- bl_operators/mesh/py.typed +0 -0
- bl_operators/node/__init__.pyi +1814 -0
- bl_operators/node/py.typed +0 -0
- bl_operators/object/__init__.pyi +3212 -0
- bl_operators/object/py.typed +0 -0
- bl_operators/object_align/__init__.pyi +215 -0
- bl_operators/object_align/py.typed +0 -0
- bl_operators/object_quick_effects/__init__.pyi +777 -0
- bl_operators/object_quick_effects/py.typed +0 -0
- bl_operators/object_randomize_transform/__init__.pyi +199 -0
- bl_operators/object_randomize_transform/py.typed +0 -0
- bl_operators/presets/__init__.pyi +3776 -0
- bl_operators/presets/py.typed +0 -0
- bl_operators/rigidbody/__init__.pyi +566 -0
- bl_operators/rigidbody/py.typed +0 -0
- bl_operators/screen_play_rendered_anim/__init__.pyi +192 -0
- bl_operators/screen_play_rendered_anim/py.typed +0 -0
- bl_operators/sequencer/__init__.pyi +1001 -0
- bl_operators/sequencer/py.typed +0 -0
- bl_operators/spreadsheet/__init__.pyi +202 -0
- bl_operators/spreadsheet/py.typed +0 -0
- bl_operators/userpref/__init__.pyi +4701 -0
- bl_operators/userpref/py.typed +0 -0
- bl_operators/uvcalc_follow_active/__init__.pyi +212 -0
- bl_operators/uvcalc_follow_active/py.typed +0 -0
- bl_operators/uvcalc_lightmap/__init__.pyi +257 -0
- bl_operators/uvcalc_lightmap/py.typed +0 -0
- bl_operators/uvcalc_transform/__init__.pyi +501 -0
- bl_operators/uvcalc_transform/py.typed +0 -0
- bl_operators/vertexpaint_dirt/__init__.pyi +207 -0
- bl_operators/vertexpaint_dirt/py.typed +0 -0
- bl_operators/view3d/__init__.pyi +955 -0
- bl_operators/view3d/py.typed +0 -0
- bl_operators/wm/__init__.pyi +8409 -0
- bl_operators/wm/py.typed +0 -0
- bl_previews_utils/bl_previews_render/__init__.pyi +60 -0
- bl_previews_utils/bl_previews_render/py.typed +0 -0
- bl_rna_utils/data_path/__init__.pyi +25 -0
- bl_rna_utils/data_path/py.typed +0 -0
- bl_text_utils/external_editor/__init__.pyi +12 -0
- bl_text_utils/external_editor/py.typed +0 -0
- bl_ui/__init__.pyi +706 -0
- bl_ui/asset_shelf/__init__.pyi +202 -0
- bl_ui/asset_shelf/py.typed +0 -0
- bl_ui/generic_ui_list/__init__.pyi +629 -0
- bl_ui/generic_ui_list/py.typed +0 -0
- bl_ui/node_add_menu/__init__.pyi +260 -0
- bl_ui/node_add_menu/py.typed +0 -0
- bl_ui/node_add_menu_compositor/__init__.pyi +3739 -0
- bl_ui/node_add_menu_compositor/py.typed +0 -0
- bl_ui/node_add_menu_geometry/__init__.pyi +8520 -0
- bl_ui/node_add_menu_geometry/py.typed +0 -0
- bl_ui/node_add_menu_shader/__init__.pyi +2139 -0
- bl_ui/node_add_menu_shader/py.typed +0 -0
- bl_ui/node_add_menu_texture/__init__.pyi +1868 -0
- bl_ui/node_add_menu_texture/py.typed +0 -0
- bl_ui/properties_animviz/__init__.pyi +38 -0
- bl_ui/properties_animviz/py.typed +0 -0
- bl_ui/properties_collection/__init__.pyi +1051 -0
- bl_ui/properties_collection/py.typed +0 -0
- bl_ui/properties_constraint/__init__.pyi +29694 -0
- bl_ui/properties_constraint/py.typed +0 -0
- bl_ui/properties_data_armature/__init__.pyi +2274 -0
- bl_ui/properties_data_armature/py.typed +0 -0
- bl_ui/properties_data_bone/__init__.pyi +2087 -0
- bl_ui/properties_data_bone/py.typed +0 -0
- bl_ui/properties_data_camera/__init__.pyi +3004 -0
- bl_ui/properties_data_camera/py.typed +0 -0
- bl_ui/properties_data_curve/__init__.pyi +3164 -0
- bl_ui/properties_data_curve/py.typed +0 -0
- bl_ui/properties_data_curves/__init__.pyi +1247 -0
- bl_ui/properties_data_curves/py.typed +0 -0
- bl_ui/properties_data_empty/__init__.pyi +426 -0
- bl_ui/properties_data_empty/py.typed +0 -0
- bl_ui/properties_data_gpencil/__init__.pyi +3758 -0
- bl_ui/properties_data_gpencil/py.typed +0 -0
- bl_ui/properties_data_grease_pencil/__init__.pyi +632 -0
- bl_ui/properties_data_grease_pencil/py.typed +0 -0
- bl_ui/properties_data_lattice/__init__.pyi +637 -0
- bl_ui/properties_data_lattice/py.typed +0 -0
- bl_ui/properties_data_light/__init__.pyi +2111 -0
- bl_ui/properties_data_light/py.typed +0 -0
- bl_ui/properties_data_lightprobe/__init__.pyi +1264 -0
- bl_ui/properties_data_lightprobe/py.typed +0 -0
- bl_ui/properties_data_mesh/__init__.pyi +4052 -0
- bl_ui/properties_data_mesh/py.typed +0 -0
- bl_ui/properties_data_metaball/__init__.pyi +1047 -0
- bl_ui/properties_data_metaball/py.typed +0 -0
- bl_ui/properties_data_modifier/__init__.pyi +1741 -0
- bl_ui/properties_data_modifier/py.typed +0 -0
- bl_ui/properties_data_pointcloud/__init__.pyi +1045 -0
- bl_ui/properties_data_pointcloud/py.typed +0 -0
- bl_ui/properties_data_shaderfx/__init__.pyi +214 -0
- bl_ui/properties_data_shaderfx/py.typed +0 -0
- bl_ui/properties_data_speaker/__init__.pyi +1056 -0
- bl_ui/properties_data_speaker/py.typed +0 -0
- bl_ui/properties_data_volume/__init__.pyi +1652 -0
- bl_ui/properties_data_volume/py.typed +0 -0
- bl_ui/properties_freestyle/__init__.pyi +5309 -0
- bl_ui/properties_freestyle/py.typed +0 -0
- bl_ui/properties_grease_pencil_common/__init__.pyi +2780 -0
- bl_ui/properties_grease_pencil_common/py.typed +0 -0
- bl_ui/properties_mask_common/__init__.pyi +1554 -0
- bl_ui/properties_mask_common/py.typed +0 -0
- bl_ui/properties_material/__init__.pyi +3117 -0
- bl_ui/properties_material/py.typed +0 -0
- bl_ui/properties_material_gpencil/__init__.pyi +2086 -0
- bl_ui/properties_material_gpencil/py.typed +0 -0
- bl_ui/properties_object/__init__.pyi +2875 -0
- bl_ui/properties_object/py.typed +0 -0
- bl_ui/properties_output/__init__.pyi +3799 -0
- bl_ui/properties_output/py.typed +0 -0
- bl_ui/properties_paint_common/__init__.pyi +814 -0
- bl_ui/properties_paint_common/py.typed +0 -0
- bl_ui/properties_particle/__init__.pyi +10938 -0
- bl_ui/properties_particle/py.typed +0 -0
- bl_ui/properties_physics_cloth/__init__.pyi +2984 -0
- bl_ui/properties_physics_cloth/py.typed +0 -0
- bl_ui/properties_physics_common/__init__.pyi +277 -0
- bl_ui/properties_physics_common/py.typed +0 -0
- bl_ui/properties_physics_dynamicpaint/__init__.pyi +5431 -0
- bl_ui/properties_physics_dynamicpaint/py.typed +0 -0
- bl_ui/properties_physics_field/__init__.pyi +2220 -0
- bl_ui/properties_physics_field/py.typed +0 -0
- bl_ui/properties_physics_fluid/__init__.pyi +7296 -0
- bl_ui/properties_physics_fluid/py.typed +0 -0
- bl_ui/properties_physics_geometry_nodes/__init__.pyi +214 -0
- bl_ui/properties_physics_geometry_nodes/py.typed +0 -0
- bl_ui/properties_physics_rigidbody/__init__.pyi +1698 -0
- bl_ui/properties_physics_rigidbody/py.typed +0 -0
- bl_ui/properties_physics_rigidbody_constraint/__init__.pyi +2734 -0
- bl_ui/properties_physics_rigidbody_constraint/py.typed +0 -0
- bl_ui/properties_physics_softbody/__init__.pyi +3198 -0
- bl_ui/properties_physics_softbody/py.typed +0 -0
- bl_ui/properties_render/__init__.pyi +12664 -0
- bl_ui/properties_render/py.typed +0 -0
- bl_ui/properties_scene/__init__.pyi +2872 -0
- bl_ui/properties_scene/py.typed +0 -0
- bl_ui/properties_texture/__init__.pyi +5470 -0
- bl_ui/properties_texture/py.typed +0 -0
- bl_ui/properties_view_layer/__init__.pyi +3493 -0
- bl_ui/properties_view_layer/py.typed +0 -0
- bl_ui/properties_workspace/__init__.pyi +630 -0
- bl_ui/properties_workspace/py.typed +0 -0
- bl_ui/properties_world/__init__.pyi +1478 -0
- bl_ui/properties_world/py.typed +0 -0
- bl_ui/space_clip/__init__.pyi +14313 -0
- bl_ui/space_clip/py.typed +0 -0
- bl_ui/space_console/__init__.pyi +1221 -0
- bl_ui/space_console/py.typed +0 -0
- bl_ui/space_dopesheet/__init__.pyi +5388 -0
- bl_ui/space_dopesheet/py.typed +0 -0
- bl_ui/space_filebrowser/__init__.pyi +5996 -0
- bl_ui/space_filebrowser/py.typed +0 -0
- bl_ui/space_graph/__init__.pyi +4053 -0
- bl_ui/space_graph/py.typed +0 -0
- bl_ui/space_image/__init__.pyi +14801 -0
- bl_ui/space_image/py.typed +0 -0
- bl_ui/space_info/__init__.pyi +1216 -0
- bl_ui/space_info/py.typed +0 -0
- bl_ui/space_nla/__init__.pyi +3460 -0
- bl_ui/space_nla/py.typed +0 -0
- bl_ui/space_node/__init__.pyi +6519 -0
- bl_ui/space_node/py.typed +0 -0
- bl_ui/space_outliner/__init__.pyi +2864 -0
- bl_ui/space_outliner/py.typed +0 -0
- bl_ui/space_properties/__init__.pyi +575 -0
- bl_ui/space_properties/py.typed +0 -0
- bl_ui/space_sequencer/__init__.pyi +15360 -0
- bl_ui/space_sequencer/py.typed +0 -0
- bl_ui/space_spreadsheet/__init__.pyi +226 -0
- bl_ui/space_spreadsheet/py.typed +0 -0
- bl_ui/space_statusbar/__init__.pyi +190 -0
- bl_ui/space_statusbar/py.typed +0 -0
- bl_ui/space_text/__init__.pyi +3223 -0
- bl_ui/space_text/py.typed +0 -0
- bl_ui/space_time/__init__.pyi +1472 -0
- bl_ui/space_time/py.typed +0 -0
- bl_ui/space_toolsystem_common/__init__.pyi +435 -0
- bl_ui/space_toolsystem_common/py.typed +0 -0
- bl_ui/space_toolsystem_toolbar/__init__.pyi +1671 -0
- bl_ui/space_toolsystem_toolbar/py.typed +0 -0
- bl_ui/space_topbar/__init__.pyi +5296 -0
- bl_ui/space_topbar/py.typed +0 -0
- bl_ui/space_userpref/__init__.pyi +17826 -0
- bl_ui/space_userpref/py.typed +0 -0
- bl_ui/space_view3d/__init__.pyi +51846 -0
- bl_ui/space_view3d/py.typed +0 -0
- bl_ui/space_view3d_toolbar/__init__.pyi +18993 -0
- bl_ui/space_view3d_toolbar/py.typed +0 -0
- bl_ui/utils/__init__.pyi +40 -0
- bl_ui/utils/py.typed +0 -0
- bl_ui_utils/__init__.pyi +6 -0
- bl_ui_utils/bug_report_url/__init__.pyi +12 -0
- bl_ui_utils/bug_report_url/py.typed +0 -0
- bl_ui_utils/layout/__init__.pyi +12 -0
- bl_ui_utils/layout/py.typed +0 -0
- blend_render_info/__init__.pyi +24 -0
- blf/__init__.pyi +231 -0
- bmesh/__init__.pyi +51 -0
- bmesh/geometry/__init__.pyi +23 -0
- bmesh/geometry/py.typed +0 -0
- bmesh/ops/__init__.pyi +1935 -0
- bmesh/ops/py.typed +0 -0
- bmesh/types/__init__.pyi +1399 -0
- bmesh/types/py.typed +0 -0
- bmesh/utils/__init__.pyi +207 -0
- bmesh/utils/py.typed +0 -0
- bpy/__init__.pyi +18 -0
- bpy/app/__init__.pyi +247 -0
- bpy/app/handlers/__init__.pyi +151 -0
- bpy/app/handlers/py.typed +0 -0
- bpy/app/icons/__init__.pyi +42 -0
- bpy/app/icons/py.typed +0 -0
- bpy/app/timers/__init__.pyi +42 -0
- bpy/app/timers/py.typed +0 -0
- bpy/app/translations/__init__.pyi +107 -0
- bpy/app/translations/py.typed +0 -0
- bpy/msgbus/__init__.pyi +40 -0
- bpy/msgbus/py.typed +0 -0
- bpy/ops/__init__.pyi +81 -0
- bpy/ops/action/__init__.pyi +723 -0
- bpy/ops/action/py.typed +0 -0
- bpy/ops/anim/__init__.pyi +978 -0
- bpy/ops/anim/py.typed +0 -0
- bpy/ops/armature/__init__.pyi +858 -0
- bpy/ops/armature/py.typed +0 -0
- bpy/ops/asset/__init__.pyi +339 -0
- bpy/ops/asset/py.typed +0 -0
- bpy/ops/boid/__init__.pyi +127 -0
- bpy/ops/boid/py.typed +0 -0
- bpy/ops/brush/__init__.pyi +171 -0
- bpy/ops/brush/py.typed +0 -0
- bpy/ops/buttons/__init__.pyi +255 -0
- bpy/ops/buttons/py.typed +0 -0
- bpy/ops/cachefile/__init__.pyi +241 -0
- bpy/ops/cachefile/py.typed +0 -0
- bpy/ops/camera/__init__.pyi +60 -0
- bpy/ops/camera/py.typed +0 -0
- bpy/ops/clip/__init__.pyi +1782 -0
- bpy/ops/clip/py.typed +0 -0
- bpy/ops/cloth/__init__.pyi +31 -0
- bpy/ops/cloth/py.typed +0 -0
- bpy/ops/collection/__init__.pyi +95 -0
- bpy/ops/collection/py.typed +0 -0
- bpy/ops/console/__init__.pyi +370 -0
- bpy/ops/console/py.typed +0 -0
- bpy/ops/constraint/__init__.pyi +391 -0
- bpy/ops/constraint/py.typed +0 -0
- bpy/ops/curve/__init__.pyi +1052 -0
- bpy/ops/curve/py.typed +0 -0
- bpy/ops/curves/__init__.pyi +259 -0
- bpy/ops/curves/py.typed +0 -0
- bpy/ops/cycles/__init__.pyi +67 -0
- bpy/ops/cycles/py.typed +0 -0
- bpy/ops/dpaint/__init__.pyi +87 -0
- bpy/ops/dpaint/py.typed +0 -0
- bpy/ops/ed/__init__.pyi +276 -0
- bpy/ops/ed/py.typed +0 -0
- bpy/ops/export_anim/__init__.pyi +45 -0
- bpy/ops/export_anim/py.typed +0 -0
- bpy/ops/export_mesh/__init__.pyi +62 -0
- bpy/ops/export_mesh/py.typed +0 -0
- bpy/ops/export_scene/__init__.pyi +577 -0
- bpy/ops/export_scene/py.typed +0 -0
- bpy/ops/file/__init__.pyi +787 -0
- bpy/ops/file/py.typed +0 -0
- bpy/ops/fluid/__init__.pyi +224 -0
- bpy/ops/fluid/py.typed +0 -0
- bpy/ops/font/__init__.pyi +537 -0
- bpy/ops/font/py.typed +0 -0
- bpy/ops/geometry/__init__.pyi +219 -0
- bpy/ops/geometry/py.typed +0 -0
- bpy/ops/gizmogroup/__init__.pyi +52 -0
- bpy/ops/gizmogroup/py.typed +0 -0
- bpy/ops/gpencil/__init__.pyi +3247 -0
- bpy/ops/gpencil/py.typed +0 -0
- bpy/ops/graph/__init__.pyi +1392 -0
- bpy/ops/graph/py.typed +0 -0
- bpy/ops/grease_pencil/__init__.pyi +724 -0
- bpy/ops/grease_pencil/py.typed +0 -0
- bpy/ops/image/__init__.pyi +1261 -0
- bpy/ops/image/py.typed +0 -0
- bpy/ops/import_anim/__init__.pyi +58 -0
- bpy/ops/import_anim/py.typed +0 -0
- bpy/ops/import_curve/__init__.pyi +26 -0
- bpy/ops/import_curve/py.typed +0 -0
- bpy/ops/import_mesh/__init__.pyi +50 -0
- bpy/ops/import_mesh/py.typed +0 -0
- bpy/ops/import_scene/__init__.pyi +191 -0
- bpy/ops/import_scene/py.typed +0 -0
- bpy/ops/info/__init__.pyi +140 -0
- bpy/ops/info/py.typed +0 -0
- bpy/ops/lattice/__init__.pyi +153 -0
- bpy/ops/lattice/py.typed +0 -0
- bpy/ops/marker/__init__.pyi +238 -0
- bpy/ops/marker/py.typed +0 -0
- bpy/ops/mask/__init__.pyi +747 -0
- bpy/ops/mask/py.typed +0 -0
- bpy/ops/material/__init__.pyi +47 -0
- bpy/ops/material/py.typed +0 -0
- bpy/ops/mball/__init__.pyi +168 -0
- bpy/ops/mball/py.typed +0 -0
- bpy/ops/mesh/__init__.pyi +4168 -0
- bpy/ops/mesh/py.typed +0 -0
- bpy/ops/nla/__init__.pyi +756 -0
- bpy/ops/nla/py.typed +0 -0
- bpy/ops/node/__init__.pyi +1894 -0
- bpy/ops/node/py.typed +0 -0
- bpy/ops/object/__init__.pyi +5343 -0
- bpy/ops/object/py.typed +0 -0
- bpy/ops/outliner/__init__.pyi +1172 -0
- bpy/ops/outliner/py.typed +0 -0
- bpy/ops/paint/__init__.pyi +1067 -0
- bpy/ops/paint/py.typed +0 -0
- bpy/ops/paintcurve/__init__.pyi +148 -0
- bpy/ops/paintcurve/py.typed +0 -0
- bpy/ops/palette/__init__.pyi +123 -0
- bpy/ops/palette/py.typed +0 -0
- bpy/ops/particle/__init__.pyi +635 -0
- bpy/ops/particle/py.typed +0 -0
- bpy/ops/pose/__init__.pyi +763 -0
- bpy/ops/pose/py.typed +0 -0
- bpy/ops/poselib/__init__.pyi +173 -0
- bpy/ops/poselib/py.typed +0 -0
- bpy/ops/preferences/__init__.pyi +849 -0
- bpy/ops/preferences/py.typed +0 -0
- bpy/ops/ptcache/__init__.pyi +114 -0
- bpy/ops/ptcache/py.typed +0 -0
- bpy/ops/render/__init__.pyi +262 -0
- bpy/ops/render/py.typed +0 -0
- bpy/ops/rigidbody/__init__.pyi +244 -0
- bpy/ops/rigidbody/py.typed +0 -0
- bpy/ops/scene/__init__.pyi +675 -0
- bpy/ops/scene/py.typed +0 -0
- bpy/ops/screen/__init__.pyi +846 -0
- bpy/ops/screen/py.typed +0 -0
- bpy/ops/script/__init__.pyi +60 -0
- bpy/ops/script/py.typed +0 -0
- bpy/ops/sculpt/__init__.pyi +862 -0
- bpy/ops/sculpt/py.typed +0 -0
- bpy/ops/sculpt_curves/__init__.pyi +94 -0
- bpy/ops/sculpt_curves/py.typed +0 -0
- bpy/ops/sequencer/__init__.pyi +2165 -0
- bpy/ops/sequencer/py.typed +0 -0
- bpy/ops/sound/__init__.pyi +395 -0
- bpy/ops/sound/py.typed +0 -0
- bpy/ops/spreadsheet/__init__.pyi +76 -0
- bpy/ops/spreadsheet/py.typed +0 -0
- bpy/ops/surface/__init__.pyi +215 -0
- bpy/ops/surface/py.typed +0 -0
- bpy/ops/text/__init__.pyi +863 -0
- bpy/ops/text/py.typed +0 -0
- bpy/ops/text_editor/__init__.pyi +31 -0
- bpy/ops/text_editor/py.typed +0 -0
- bpy/ops/texture/__init__.pyi +68 -0
- bpy/ops/texture/py.typed +0 -0
- bpy/ops/transform/__init__.pyi +1545 -0
- bpy/ops/transform/py.typed +0 -0
- bpy/ops/ui/__init__.pyi +536 -0
- bpy/ops/ui/py.typed +0 -0
- bpy/ops/uilist/__init__.pyi +74 -0
- bpy/ops/uilist/py.typed +0 -0
- bpy/ops/uv/__init__.pyi +1251 -0
- bpy/ops/uv/py.typed +0 -0
- bpy/ops/view2d/__init__.pyi +329 -0
- bpy/ops/view2d/py.typed +0 -0
- bpy/ops/view3d/__init__.pyi +1392 -0
- bpy/ops/view3d/py.typed +0 -0
- bpy/ops/wm/__init__.pyi +4821 -0
- bpy/ops/wm/py.typed +0 -0
- bpy/ops/workspace/__init__.pyi +115 -0
- bpy/ops/workspace/py.typed +0 -0
- bpy/ops/world/__init__.pyi +19 -0
- bpy/ops/world/py.typed +0 -0
- bpy/path/__init__.pyi +194 -0
- bpy/path/py.typed +0 -0
- bpy/props/__init__.pyi +509 -0
- bpy/props/py.typed +0 -0
- bpy/types/__init__.pyi +131533 -0
- bpy/types/py.typed +0 -0
- bpy/utils/__init__.pyi +429 -0
- bpy/utils/previews/__init__.pyi +73 -0
- bpy/utils/previews/py.typed +0 -0
- bpy/utils/units/__init__.pyi +61 -0
- bpy/utils/units/py.typed +0 -0
- bpy_extras/__init__.pyi +18 -0
- bpy_extras/anim_utils/__init__.pyi +108 -0
- bpy_extras/anim_utils/py.typed +0 -0
- bpy_extras/asset_utils/__init__.pyi +39 -0
- bpy_extras/asset_utils/py.typed +0 -0
- bpy_extras/bmesh_utils/__init__.pyi +20 -0
- bpy_extras/bmesh_utils/py.typed +0 -0
- bpy_extras/extensions/junction_module/__init__.pyi +48 -0
- bpy_extras/extensions/junction_module/py.typed +0 -0
- bpy_extras/id_map_utils/__init__.pyi +28 -0
- bpy_extras/id_map_utils/py.typed +0 -0
- bpy_extras/image_utils/__init__.pyi +42 -0
- bpy_extras/image_utils/py.typed +0 -0
- bpy_extras/io_utils/__init__.pyi +165 -0
- bpy_extras/io_utils/py.typed +0 -0
- bpy_extras/keyconfig_utils/__init__.pyi +28 -0
- bpy_extras/keyconfig_utils/py.typed +0 -0
- bpy_extras/mesh_utils/__init__.pyi +91 -0
- bpy_extras/mesh_utils/py.typed +0 -0
- bpy_extras/node_shader_utils/__init__.pyi +562 -0
- bpy_extras/node_shader_utils/py.typed +0 -0
- bpy_extras/node_utils/__init__.pyi +28 -0
- bpy_extras/node_utils/py.typed +0 -0
- bpy_extras/object_utils/__init__.pyi +87 -0
- bpy_extras/object_utils/py.typed +0 -0
- bpy_extras/view3d_utils/__init__.pyi +90 -0
- bpy_extras/view3d_utils/py.typed +0 -0
- bpy_extras/wm_utils/progress_report/__init__.pyi +98 -0
- bpy_extras/wm_utils/progress_report/py.typed +0 -0
- bpy_restrict_state/__init__.pyi +24 -0
- bpy_types/__init__.pyi +5189 -0
- console_python/__init__.pyi +71 -0
- console_shell/__init__.pyi +44 -0
- fake_bpy_module-20231207.dist-info/METADATA +175 -0
- fake_bpy_module-20231207.dist-info/RECORD +610 -0
- freestyle/chainingiterators/__init__.pyi +306 -0
- freestyle/chainingiterators/py.typed +0 -0
- freestyle/functions/__init__.pyi +1270 -0
- freestyle/functions/py.typed +0 -0
- freestyle/predicates/__init__.pyi +535 -0
- freestyle/predicates/py.typed +0 -0
- freestyle/shaders/__init__.pyi +872 -0
- freestyle/shaders/py.typed +0 -0
- freestyle/types/__init__.pyi +2407 -0
- freestyle/types/py.typed +0 -0
- freestyle/utils/ContextFunctions/__init__.pyi +127 -0
- freestyle/utils/ContextFunctions/py.typed +0 -0
- freestyle/utils/__init__.pyi +246 -0
- gpu/capabilities/__init__.pyi +186 -0
- gpu/capabilities/py.typed +0 -0
- gpu/matrix/__init__.pyi +162 -0
- gpu/matrix/py.typed +0 -0
- gpu/platform/__init__.pyi +54 -0
- gpu/platform/py.typed +0 -0
- gpu/select/__init__.pyi +15 -0
- gpu/select/py.typed +0 -0
- gpu/shader/__init__.pyi +38 -0
- gpu/shader/py.typed +0 -0
- gpu/state/__init__.pyi +214 -0
- gpu/state/py.typed +0 -0
- gpu/texture/__init__.pyi +18 -0
- gpu/texture/py.typed +0 -0
- gpu/types/__init__.pyi +698 -0
- gpu/types/py.typed +0 -0
- gpu_extras/batch/__init__.pyi +25 -0
- gpu_extras/batch/py.typed +0 -0
- gpu_extras/presets/__init__.pyi +43 -0
- gpu_extras/presets/py.typed +0 -0
- graphviz_export/__init__.pyi +21 -0
- idprop/types/__init__.pyi +98 -0
- idprop/types/py.typed +0 -0
- imbuf/__init__.pyi +44 -0
- imbuf/types/__init__.pyi +70 -0
- imbuf/types/py.typed +0 -0
- keyingsets_builtins/__init__.pyi +4028 -0
- keyingsets_utils/__init__.pyi +116 -0
- mathutils/__init__.pyi +2917 -0
- mathutils/bvhtree/__init__.pyi +124 -0
- mathutils/bvhtree/py.typed +0 -0
- mathutils/geometry/__init__.pyi +526 -0
- mathutils/geometry/py.typed +0 -0
- mathutils/interpolate/__init__.pyi +16 -0
- mathutils/interpolate/py.typed +0 -0
- mathutils/kdtree/__init__.pyi +77 -0
- mathutils/kdtree/py.typed +0 -0
- mathutils/noise/__init__.pyi +342 -0
- mathutils/noise/py.typed +0 -0
- nodeitems_builtins/__init__.pyi +69 -0
- nodeitems_utils/__init__.pyi +86 -0
- rna_info/__init__.pyi +343 -0
- rna_keymap_ui/__init__.pyi +52 -0
- rna_prop_ui/__init__.pyi +109 -0
- rna_xml/__init__.pyi +53 -0
- sys_info/__init__.pyi +12 -0
- addon_utils/__init__.py +0 -84
- animsys_refactor/__init__.py +0 -55
- aud/__init__.py +0 -1190
- bgl/__init__.py +0 -5084
- bl_app_override/__init__.py +0 -31
- bl_app_override/helpers.py +0 -42
- bl_app_template_utils/__init__.py +0 -36
- bl_console_utils/autocomplete/__init__.py +0 -8
- bl_console_utils/autocomplete/complete_calltip.py +0 -44
- bl_console_utils/autocomplete/complete_import.py +0 -28
- bl_console_utils/autocomplete/complete_namespace.py +0 -44
- bl_console_utils/autocomplete/intellisense.py +0 -20
- bl_i18n_utils/__init__.py +0 -11
- bl_i18n_utils/bl_extract_messages.py +0 -124
- bl_i18n_utils/merge_po.py +0 -12
- bl_i18n_utils/settings.py +0 -66
- bl_i18n_utils/utils.py +0 -338
- bl_i18n_utils/utils_cli.py +0 -52
- bl_i18n_utils/utils_languages_menu.py +0 -12
- bl_i18n_utils/utils_rtl.py +0 -20
- bl_keymap_utils/__init__.py +0 -9
- bl_keymap_utils/io.py +0 -76
- bl_keymap_utils/keymap_from_toolbar.py +0 -12
- bl_keymap_utils/keymap_hierarchy.py +0 -12
- bl_keymap_utils/platform_helpers.py +0 -20
- bl_keymap_utils/versioning.py +0 -12
- bl_math/__init__.py +0 -52
- bl_operators/__init__.py +0 -49
- bl_operators/add_mesh_torus.py +0 -231
- bl_operators/anim.py +0 -1291
- bl_operators/assets.py +0 -586
- bl_operators/bmesh/find_adjacent.py +0 -76
- bl_operators/clip.py +0 -1898
- bl_operators/console.py +0 -918
- bl_operators/constraint.py +0 -745
- bl_operators/file.py +0 -560
- bl_operators/freestyle.py +0 -751
- bl_operators/geometry_nodes.py +0 -2553
- bl_operators/image.py +0 -548
- bl_operators/mesh.py +0 -566
- bl_operators/node.py +0 -1814
- bl_operators/object.py +0 -3212
- bl_operators/object_align.py +0 -215
- bl_operators/object_quick_effects.py +0 -777
- bl_operators/object_randomize_transform.py +0 -199
- bl_operators/presets.py +0 -3776
- bl_operators/rigidbody.py +0 -566
- bl_operators/screen_play_rendered_anim.py +0 -192
- bl_operators/sequencer.py +0 -1001
- bl_operators/spreadsheet.py +0 -202
- bl_operators/userpref.py +0 -4701
- bl_operators/uvcalc_follow_active.py +0 -212
- bl_operators/uvcalc_lightmap.py +0 -257
- bl_operators/uvcalc_transform.py +0 -501
- bl_operators/vertexpaint_dirt.py +0 -207
- bl_operators/view3d.py +0 -955
- bl_operators/wm.py +0 -8409
- bl_previews_utils/bl_previews_render.py +0 -60
- bl_rna_utils/data_path.py +0 -25
- bl_text_utils/external_editor.py +0 -12
- bl_ui/__init__.py +0 -706
- bl_ui/asset_shelf.py +0 -202
- bl_ui/generic_ui_list.py +0 -629
- bl_ui/node_add_menu.py +0 -260
- bl_ui/node_add_menu_compositor.py +0 -3739
- bl_ui/node_add_menu_geometry.py +0 -8520
- bl_ui/node_add_menu_shader.py +0 -2139
- bl_ui/node_add_menu_texture.py +0 -1868
- bl_ui/properties_animviz.py +0 -38
- bl_ui/properties_collection.py +0 -1051
- bl_ui/properties_constraint.py +0 -29694
- bl_ui/properties_data_armature.py +0 -2274
- bl_ui/properties_data_bone.py +0 -2087
- bl_ui/properties_data_camera.py +0 -3004
- bl_ui/properties_data_curve.py +0 -3164
- bl_ui/properties_data_curves.py +0 -1247
- bl_ui/properties_data_empty.py +0 -426
- bl_ui/properties_data_gpencil.py +0 -3758
- bl_ui/properties_data_grease_pencil.py +0 -632
- bl_ui/properties_data_lattice.py +0 -637
- bl_ui/properties_data_light.py +0 -2111
- bl_ui/properties_data_lightprobe.py +0 -1264
- bl_ui/properties_data_mesh.py +0 -4052
- bl_ui/properties_data_metaball.py +0 -1047
- bl_ui/properties_data_modifier.py +0 -1741
- bl_ui/properties_data_pointcloud.py +0 -1045
- bl_ui/properties_data_shaderfx.py +0 -214
- bl_ui/properties_data_speaker.py +0 -1056
- bl_ui/properties_data_volume.py +0 -1652
- bl_ui/properties_freestyle.py +0 -5309
- bl_ui/properties_grease_pencil_common.py +0 -2780
- bl_ui/properties_mask_common.py +0 -1554
- bl_ui/properties_material.py +0 -3117
- bl_ui/properties_material_gpencil.py +0 -2086
- bl_ui/properties_object.py +0 -2875
- bl_ui/properties_output.py +0 -3799
- bl_ui/properties_paint_common.py +0 -814
- bl_ui/properties_particle.py +0 -10938
- bl_ui/properties_physics_cloth.py +0 -2984
- bl_ui/properties_physics_common.py +0 -277
- bl_ui/properties_physics_dynamicpaint.py +0 -5431
- bl_ui/properties_physics_field.py +0 -2220
- bl_ui/properties_physics_fluid.py +0 -7296
- bl_ui/properties_physics_geometry_nodes.py +0 -214
- bl_ui/properties_physics_rigidbody.py +0 -1698
- bl_ui/properties_physics_rigidbody_constraint.py +0 -2734
- bl_ui/properties_physics_softbody.py +0 -3198
- bl_ui/properties_render.py +0 -12664
- bl_ui/properties_scene.py +0 -2872
- bl_ui/properties_texture.py +0 -5470
- bl_ui/properties_view_layer.py +0 -3493
- bl_ui/properties_workspace.py +0 -630
- bl_ui/properties_world.py +0 -1478
- bl_ui/space_clip.py +0 -14313
- bl_ui/space_console.py +0 -1221
- bl_ui/space_dopesheet.py +0 -5388
- bl_ui/space_filebrowser.py +0 -5996
- bl_ui/space_graph.py +0 -4053
- bl_ui/space_image.py +0 -14801
- bl_ui/space_info.py +0 -1216
- bl_ui/space_nla.py +0 -3460
- bl_ui/space_node.py +0 -6519
- bl_ui/space_outliner.py +0 -2864
- bl_ui/space_properties.py +0 -575
- bl_ui/space_sequencer.py +0 -15360
- bl_ui/space_spreadsheet.py +0 -226
- bl_ui/space_statusbar.py +0 -190
- bl_ui/space_text.py +0 -3223
- bl_ui/space_time.py +0 -1472
- bl_ui/space_toolsystem_common.py +0 -435
- bl_ui/space_toolsystem_toolbar.py +0 -1671
- bl_ui/space_topbar.py +0 -5296
- bl_ui/space_userpref.py +0 -17826
- bl_ui/space_view3d.py +0 -51846
- bl_ui/space_view3d_toolbar.py +0 -18993
- bl_ui/utils.py +0 -40
- bl_ui_utils/__init__.py +0 -6
- bl_ui_utils/bug_report_url.py +0 -12
- bl_ui_utils/layout.py +0 -12
- blend_render_info/__init__.py +0 -24
- blf/__init__.py +0 -231
- bmesh/__init__.py +0 -51
- bmesh/geometry.py +0 -23
- bmesh/ops.py +0 -1935
- bmesh/types.py +0 -1399
- bmesh/utils.py +0 -207
- bpy/__init__.py +0 -18
- bpy/app/__init__.py +0 -247
- bpy/app/handlers.py +0 -160
- bpy/app/icons.py +0 -42
- bpy/app/timers.py +0 -42
- bpy/app/translations.py +0 -107
- bpy/msgbus.py +0 -40
- bpy/ops/__init__.py +0 -81
- bpy/ops/action.py +0 -723
- bpy/ops/anim.py +0 -978
- bpy/ops/armature.py +0 -858
- bpy/ops/asset.py +0 -339
- bpy/ops/boid.py +0 -127
- bpy/ops/brush.py +0 -171
- bpy/ops/buttons.py +0 -255
- bpy/ops/cachefile.py +0 -241
- bpy/ops/camera.py +0 -60
- bpy/ops/clip.py +0 -1782
- bpy/ops/cloth.py +0 -31
- bpy/ops/collection.py +0 -95
- bpy/ops/console.py +0 -370
- bpy/ops/constraint.py +0 -391
- bpy/ops/curve.py +0 -1052
- bpy/ops/curves.py +0 -259
- bpy/ops/cycles.py +0 -67
- bpy/ops/dpaint.py +0 -87
- bpy/ops/ed.py +0 -276
- bpy/ops/export_anim.py +0 -45
- bpy/ops/export_mesh.py +0 -62
- bpy/ops/export_scene.py +0 -577
- bpy/ops/file.py +0 -787
- bpy/ops/fluid.py +0 -224
- bpy/ops/font.py +0 -537
- bpy/ops/geometry.py +0 -219
- bpy/ops/gizmogroup.py +0 -52
- bpy/ops/gpencil.py +0 -3247
- bpy/ops/graph.py +0 -1392
- bpy/ops/grease_pencil.py +0 -724
- bpy/ops/image.py +0 -1261
- bpy/ops/import_anim.py +0 -58
- bpy/ops/import_curve.py +0 -26
- bpy/ops/import_mesh.py +0 -50
- bpy/ops/import_scene.py +0 -191
- bpy/ops/info.py +0 -140
- bpy/ops/lattice.py +0 -153
- bpy/ops/marker.py +0 -238
- bpy/ops/mask.py +0 -747
- bpy/ops/material.py +0 -47
- bpy/ops/mball.py +0 -168
- bpy/ops/mesh.py +0 -4168
- bpy/ops/nla.py +0 -756
- bpy/ops/node.py +0 -1894
- bpy/ops/object.py +0 -5343
- bpy/ops/outliner.py +0 -1172
- bpy/ops/paint.py +0 -1067
- bpy/ops/paintcurve.py +0 -148
- bpy/ops/palette.py +0 -123
- bpy/ops/particle.py +0 -635
- bpy/ops/pose.py +0 -763
- bpy/ops/poselib.py +0 -173
- bpy/ops/preferences.py +0 -849
- bpy/ops/ptcache.py +0 -114
- bpy/ops/render.py +0 -262
- bpy/ops/rigidbody.py +0 -244
- bpy/ops/scene.py +0 -675
- bpy/ops/screen.py +0 -846
- bpy/ops/script.py +0 -60
- bpy/ops/sculpt.py +0 -862
- bpy/ops/sculpt_curves.py +0 -94
- bpy/ops/sequencer.py +0 -2165
- bpy/ops/sound.py +0 -395
- bpy/ops/spreadsheet.py +0 -76
- bpy/ops/surface.py +0 -215
- bpy/ops/text.py +0 -863
- bpy/ops/text_editor.py +0 -31
- bpy/ops/texture.py +0 -68
- bpy/ops/transform.py +0 -1545
- bpy/ops/ui.py +0 -536
- bpy/ops/uilist.py +0 -74
- bpy/ops/uv.py +0 -1251
- bpy/ops/view2d.py +0 -329
- bpy/ops/view3d.py +0 -1392
- bpy/ops/wm.py +0 -4821
- bpy/ops/workspace.py +0 -115
- bpy/ops/world.py +0 -19
- bpy/path.py +0 -194
- bpy/props.py +0 -509
- bpy/types.py +0 -131806
- bpy/utils/__init__.py +0 -429
- bpy/utils/previews.py +0 -73
- bpy/utils/units.py +0 -61
- bpy_extras/__init__.py +0 -18
- bpy_extras/anim_utils.py +0 -108
- bpy_extras/asset_utils.py +0 -39
- bpy_extras/bmesh_utils.py +0 -20
- bpy_extras/extensions/junction_module.py +0 -48
- bpy_extras/id_map_utils.py +0 -28
- bpy_extras/image_utils.py +0 -42
- bpy_extras/io_utils.py +0 -165
- bpy_extras/keyconfig_utils.py +0 -28
- bpy_extras/mesh_utils.py +0 -91
- bpy_extras/node_shader_utils.py +0 -562
- bpy_extras/node_utils.py +0 -28
- bpy_extras/object_utils.py +0 -87
- bpy_extras/view3d_utils.py +0 -90
- bpy_extras/wm_utils/progress_report.py +0 -98
- bpy_restrict_state/__init__.py +0 -24
- bpy_types/__init__.py +0 -5189
- console_python/__init__.py +0 -71
- console_shell/__init__.py +0 -44
- fake_bpy_module-20231205.dist-info/METADATA +0 -175
- fake_bpy_module-20231205.dist-info/RECORD +0 -356
- freestyle/chainingiterators.py +0 -306
- freestyle/functions.py +0 -1270
- freestyle/predicates.py +0 -535
- freestyle/shaders.py +0 -872
- freestyle/types.py +0 -2409
- freestyle/utils/ContextFunctions.py +0 -127
- freestyle/utils/__init__.py +0 -246
- gpu/capabilities.py +0 -186
- gpu/matrix.py +0 -162
- gpu/platform.py +0 -54
- gpu/select.py +0 -15
- gpu/shader.py +0 -38
- gpu/state.py +0 -214
- gpu/texture.py +0 -18
- gpu/types.py +0 -698
- gpu_extras/batch.py +0 -25
- gpu_extras/presets.py +0 -43
- graphviz_export/__init__.py +0 -21
- idprop/types.py +0 -98
- imbuf/__init__.py +0 -44
- imbuf/types.py +0 -70
- keyingsets_builtins/__init__.py +0 -4028
- keyingsets_utils/__init__.py +0 -116
- mathutils/__init__.py +0 -2917
- mathutils/bvhtree.py +0 -124
- mathutils/geometry.py +0 -526
- mathutils/interpolate.py +0 -16
- mathutils/kdtree.py +0 -77
- mathutils/noise.py +0 -342
- nodeitems_builtins/__init__.py +0 -69
- nodeitems_utils/__init__.py +0 -86
- rna_info/__init__.py +0 -343
- rna_keymap_ui/__init__.py +0 -52
- rna_prop_ui/__init__.py +0 -109
- rna_xml/__init__.py +0 -53
- sys_info/__init__.py +0 -12
- /bl_console_utils/{__init__.py → __init__.pyi} +0 -0
- /bl_operators/bmesh/{__init__.py → __init__.pyi} +0 -0
- /bl_previews_utils/{__init__.py → __init__.pyi} +0 -0
- /bl_rna_utils/{__init__.py → __init__.pyi} +0 -0
- /bl_text_utils/{__init__.py → __init__.pyi} +0 -0
- /bpy_extras/extensions/{__init__.py → __init__.pyi} +0 -0
- /bpy_extras/wm_utils/{__init__.py → __init__.pyi} +0 -0
- {fake_bpy_module-20231205.dist-info → fake_bpy_module-20231207.dist-info}/WHEEL +0 -0
- {fake_bpy_module-20231205.dist-info → fake_bpy_module-20231207.dist-info}/top_level.txt +0 -0
- /freestyle/{__init__.py → __init__.pyi} +0 -0
- /gpu/{__init__.py → __init__.pyi} +0 -0
- /gpu_extras/{__init__.py → __init__.pyi} +0 -0
- /idprop/{__init__.py → __init__.pyi} +0 -0
gpu/types/__init__.pyi
ADDED
|
@@ -0,0 +1,698 @@
|
|
|
1
|
+
import sys
|
|
2
|
+
import typing
|
|
3
|
+
import bpy.types
|
|
4
|
+
import mathutils
|
|
5
|
+
|
|
6
|
+
GenericType = typing.TypeVar("GenericType")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class Buffer:
|
|
10
|
+
''' For Python access to GPU functions requiring a pointer. :arg format: Format type to interpret the buffer. Possible values are `FLOAT`, `INT`, `UINT`, `UBYTE`, `UINT_24_8` and `10_11_11_REV`. :type format: str :arg dimensions: Array describing the dimensions. :type dimensions: int :arg data: Optional data array. :type data: sequence return the buffer as a list
|
|
11
|
+
'''
|
|
12
|
+
|
|
13
|
+
dimensions: typing.Any
|
|
14
|
+
''' Undocumented, consider `contributing <https://developer.blender.org/>`__.'''
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class GPUBatch:
|
|
18
|
+
''' Reusable container for drawable geometry. :arg type: The primitive type of geometry to be drawn. Possible values are `POINTS`, `LINES`, `TRIS`, `LINE_STRIP`, `LINE_LOOP`, `TRI_STRIP`, `TRI_FAN`, `LINES_ADJ`, `TRIS_ADJ` and `LINE_STRIP_ADJ`. :type type: str :arg buf: Vertex buffer containing all or some of the attributes required for drawing. :type buf: `gpu.types.GPUVertBuf` :arg elem: An optional index buffer. :type elem: `gpu.types.GPUIndexBuf`
|
|
19
|
+
'''
|
|
20
|
+
|
|
21
|
+
def draw(self, program: 'GPUShader' = None):
|
|
22
|
+
''' Run the drawing program with the parameters assigned to the batch.
|
|
23
|
+
|
|
24
|
+
:param program: Program that performs the drawing operations. If ``None`` is passed, the last program set to this batch will run.
|
|
25
|
+
:type program: 'GPUShader'
|
|
26
|
+
'''
|
|
27
|
+
...
|
|
28
|
+
|
|
29
|
+
def draw_instanced(self,
|
|
30
|
+
program: 'GPUShader',
|
|
31
|
+
*,
|
|
32
|
+
instance_start: int = 0,
|
|
33
|
+
instance_count: int = 0):
|
|
34
|
+
''' Draw multiple instances of the drawing program with the parameters assigned to the batch. In the vertex shader, `gl_InstanceID` will contain the instance number being drawn.
|
|
35
|
+
|
|
36
|
+
:param program: Program that performs the drawing operations.
|
|
37
|
+
:type program: 'GPUShader'
|
|
38
|
+
:param instance_start: Number of the first instance to draw.
|
|
39
|
+
:type instance_start: int
|
|
40
|
+
:param instance_count: Number of instances to draw. When not provided or set to 0 the number of instances will be determined by the number of rows in the first vertex buffer.
|
|
41
|
+
:type instance_count: int
|
|
42
|
+
'''
|
|
43
|
+
...
|
|
44
|
+
|
|
45
|
+
def draw_range(self,
|
|
46
|
+
program: 'GPUShader',
|
|
47
|
+
*,
|
|
48
|
+
elem_start: int = 0,
|
|
49
|
+
elem_count: int = 0):
|
|
50
|
+
''' 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`
|
|
51
|
+
|
|
52
|
+
:param program: Program that performs the drawing operations.
|
|
53
|
+
:type program: 'GPUShader'
|
|
54
|
+
:param elem_start: First index to draw. When not provided or set to 0 drawing will start from the first element of the index buffer.
|
|
55
|
+
:type elem_start: int
|
|
56
|
+
:param elem_count: Number of elements of the index buffer to draw. When not provided or set to 0 all elements from `elem_start` to the end of the index buffer will be drawn.
|
|
57
|
+
:type elem_count: int
|
|
58
|
+
'''
|
|
59
|
+
...
|
|
60
|
+
|
|
61
|
+
def program_set(self, program: 'GPUShader'):
|
|
62
|
+
''' Assign a shader to this batch that will be used for drawing when not overwritten later. Note: This method has to be called in the draw context that the batch will be drawn in. This function does not need to be called when you always set the shader when calling :meth:`gpu.types.GPUBatch.draw`.
|
|
63
|
+
|
|
64
|
+
:param program: The program/shader the batch will use in future draw calls.
|
|
65
|
+
:type program: 'GPUShader'
|
|
66
|
+
'''
|
|
67
|
+
...
|
|
68
|
+
|
|
69
|
+
def vertbuf_add(self, buf: 'GPUVertBuf'):
|
|
70
|
+
''' Add another vertex buffer to the Batch. It is not possible to add more vertices to the batch using this method. Instead it can be used to add more attributes to the existing vertices. A good use case would be when you have a separate vertex buffer for vertex positions and vertex normals. Current a batch can have at most 16 vertex buffers.
|
|
71
|
+
|
|
72
|
+
:param buf: The vertex buffer that will be added to the batch.
|
|
73
|
+
:type buf: 'GPUVertBuf'
|
|
74
|
+
'''
|
|
75
|
+
...
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
class GPUFrameBuffer:
|
|
79
|
+
''' This object gives access to framebuffer functionalities. When a 'layer' is specified in a argument, a single layer of a 3D or array texture is attached to the frame-buffer. For cube map textures, layer is translated into a cube map face. :arg depth_slot: GPUTexture to attach or a `dict` containing keywords: 'texture', 'layer' and 'mip'. :type depth_slot: `gpu.types.GPUTexture`, dict or Nonetype :arg color_slots: Tuple where each item can be a GPUTexture or a `dict` containing keywords: 'texture', 'layer' and 'mip'. :type color_slots: tuple or Nonetype
|
|
80
|
+
'''
|
|
81
|
+
|
|
82
|
+
is_bound: typing.Any
|
|
83
|
+
''' Checks if this is the active framebuffer in the context.'''
|
|
84
|
+
|
|
85
|
+
@staticmethod
|
|
86
|
+
def bind():
|
|
87
|
+
''' Context manager to ensure balanced bind calls, even in the case of an error.
|
|
88
|
+
|
|
89
|
+
'''
|
|
90
|
+
...
|
|
91
|
+
|
|
92
|
+
def clear(self,
|
|
93
|
+
color: typing.List = None,
|
|
94
|
+
depth: float = None,
|
|
95
|
+
stencil: int = None):
|
|
96
|
+
''' Fill color, depth and stencil textures with specific value. Common values: color=(0.0, 0.0, 0.0, 1.0), depth=1.0, stencil=0.
|
|
97
|
+
|
|
98
|
+
:param color: float sequence each representing ``(r, g, b, a)``.
|
|
99
|
+
:type color: typing.List
|
|
100
|
+
:param depth: depth value.
|
|
101
|
+
:type depth: float
|
|
102
|
+
:param stencil: stencil value.
|
|
103
|
+
:type stencil: int
|
|
104
|
+
'''
|
|
105
|
+
...
|
|
106
|
+
|
|
107
|
+
@staticmethod
|
|
108
|
+
def read_color(x: int,
|
|
109
|
+
y: int,
|
|
110
|
+
xsize: int,
|
|
111
|
+
ysize: int,
|
|
112
|
+
channels: int,
|
|
113
|
+
slot: int,
|
|
114
|
+
format: str,
|
|
115
|
+
data: 'Buffer' = 'data') -> 'Buffer':
|
|
116
|
+
''' Read a block of pixels from the frame buffer.
|
|
117
|
+
|
|
118
|
+
:param x: Lower left corner of a rectangular block of pixels.
|
|
119
|
+
:type x: int
|
|
120
|
+
:param y: Lower left corner of a rectangular block of pixels.
|
|
121
|
+
:type y: int
|
|
122
|
+
:param xsize: Dimensions of the pixel rectangle.
|
|
123
|
+
:type xsize: int
|
|
124
|
+
:param ysize: Dimensions of the pixel rectangle.
|
|
125
|
+
:type ysize: int
|
|
126
|
+
:param channels: Number of components to read.
|
|
127
|
+
:type channels: int
|
|
128
|
+
:param slot: The framebuffer slot to read data from.
|
|
129
|
+
:type slot: int
|
|
130
|
+
:param format: The format that describes the content of a single channel. Possible values are `FLOAT`, `INT`, `UINT`, `UBYTE`, `UINT_24_8` and `10_11_11_REV`.
|
|
131
|
+
:type format: str
|
|
132
|
+
:param data: Optional Buffer object to fill with the pixels values.
|
|
133
|
+
:type data: 'Buffer'
|
|
134
|
+
:rtype: 'Buffer'
|
|
135
|
+
:return: The Buffer with the read pixels.
|
|
136
|
+
'''
|
|
137
|
+
...
|
|
138
|
+
|
|
139
|
+
@staticmethod
|
|
140
|
+
def read_depth(x: int,
|
|
141
|
+
y: int,
|
|
142
|
+
xsize: int,
|
|
143
|
+
ysize: int,
|
|
144
|
+
data: 'Buffer' = 'data') -> 'Buffer':
|
|
145
|
+
''' Read a pixel depth block from the frame buffer.
|
|
146
|
+
|
|
147
|
+
:param x: Lower left corner of a rectangular block of pixels.
|
|
148
|
+
:type x: int
|
|
149
|
+
:param y: Lower left corner of a rectangular block of pixels.
|
|
150
|
+
:type y: int
|
|
151
|
+
:param xsize: Dimensions of the pixel rectangle.
|
|
152
|
+
:type xsize: int
|
|
153
|
+
:param ysize: Dimensions of the pixel rectangle.
|
|
154
|
+
:type ysize: int
|
|
155
|
+
:param data: Optional Buffer object to fill with the pixels values.
|
|
156
|
+
:type data: 'Buffer'
|
|
157
|
+
:rtype: 'Buffer'
|
|
158
|
+
:return: The Buffer with the read pixels.
|
|
159
|
+
'''
|
|
160
|
+
...
|
|
161
|
+
|
|
162
|
+
@staticmethod
|
|
163
|
+
def viewport_get():
|
|
164
|
+
''' Returns position and dimension to current viewport.
|
|
165
|
+
|
|
166
|
+
'''
|
|
167
|
+
...
|
|
168
|
+
|
|
169
|
+
@staticmethod
|
|
170
|
+
def viewport_set(x: int, y: int, xsize: int, ysize: int):
|
|
171
|
+
''' Set the viewport for this framebuffer object. Note: The viewport state is not saved upon framebuffer rebind.
|
|
172
|
+
|
|
173
|
+
:param x: lower left corner of the viewport_set rectangle, in pixels.
|
|
174
|
+
:type x: int
|
|
175
|
+
:param y: lower left corner of the viewport_set rectangle, in pixels.
|
|
176
|
+
:type y: int
|
|
177
|
+
:param xsize: width and height of the viewport_set.
|
|
178
|
+
:type xsize: int
|
|
179
|
+
:param ysize: width and height of the viewport_set.
|
|
180
|
+
:type ysize: int
|
|
181
|
+
'''
|
|
182
|
+
...
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
class GPUIndexBuf:
|
|
186
|
+
''' Contains an index buffer. :arg type: The primitive type this index buffer is composed of. Possible values are `POINTS`, `LINES`, `TRIS` and `LINE_STRIP_ADJ`. :type type: str :arg seq: Indices this index buffer will contain. Whether a 1D or 2D sequence is required depends on the type. Optionally the sequence can support the buffer protocol. :type seq: 1D or 2D sequence
|
|
187
|
+
'''
|
|
188
|
+
|
|
189
|
+
...
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
class GPUOffScreen:
|
|
193
|
+
''' This object gives access to off screen buffers. :arg width: Horizontal dimension of the buffer. :type width: int :arg height: Vertical dimension of the buffer. :type height: int :arg format: Internal data format inside GPU memory for color attachment texture. Possible values are: `RGBA8`, `RGBA16`, `RGBA16F`, `RGBA32F`, :type format: str
|
|
194
|
+
'''
|
|
195
|
+
|
|
196
|
+
color_texture: int
|
|
197
|
+
''' OpenGL bindcode for the color texture.
|
|
198
|
+
|
|
199
|
+
:type: int
|
|
200
|
+
'''
|
|
201
|
+
|
|
202
|
+
height: int
|
|
203
|
+
''' Height of the texture.
|
|
204
|
+
|
|
205
|
+
:type: int
|
|
206
|
+
'''
|
|
207
|
+
|
|
208
|
+
texture_color: 'GPUTexture'
|
|
209
|
+
''' The color texture attached.
|
|
210
|
+
|
|
211
|
+
:type: 'GPUTexture'
|
|
212
|
+
'''
|
|
213
|
+
|
|
214
|
+
width: int
|
|
215
|
+
''' Width of the texture.
|
|
216
|
+
|
|
217
|
+
:type: int
|
|
218
|
+
'''
|
|
219
|
+
|
|
220
|
+
@staticmethod
|
|
221
|
+
def bind():
|
|
222
|
+
''' Context manager to ensure balanced bind calls, even in the case of an error.
|
|
223
|
+
|
|
224
|
+
'''
|
|
225
|
+
...
|
|
226
|
+
|
|
227
|
+
def draw_view3d(self,
|
|
228
|
+
scene: 'bpy.types.Scene',
|
|
229
|
+
view_layer: 'bpy.types.ViewLayer',
|
|
230
|
+
view3d: 'bpy.types.SpaceView3D',
|
|
231
|
+
region: 'bpy.types.Region',
|
|
232
|
+
view_matrix: typing.
|
|
233
|
+
Union[typing.Sequence[float], 'mathutils.Matrix'],
|
|
234
|
+
projection_matrix: typing.
|
|
235
|
+
Union[typing.Sequence[float], 'mathutils.Matrix'],
|
|
236
|
+
do_color_management: bool = False,
|
|
237
|
+
draw_background: bool = True):
|
|
238
|
+
''' Draw the 3d viewport in the offscreen object.
|
|
239
|
+
|
|
240
|
+
:param scene: Scene to draw.
|
|
241
|
+
:type scene: 'bpy.types.Scene'
|
|
242
|
+
:param view_layer: View layer to draw.
|
|
243
|
+
:type view_layer: 'bpy.types.ViewLayer'
|
|
244
|
+
:param view3d: 3D View to get the drawing settings from.
|
|
245
|
+
:type view3d: 'bpy.types.SpaceView3D'
|
|
246
|
+
:param region: Region of the 3D View (required as temporary draw target).
|
|
247
|
+
:type region: 'bpy.types.Region'
|
|
248
|
+
:param view_matrix: View Matrix (e.g. ``camera.matrix_world.inverted()``).
|
|
249
|
+
:type view_matrix: typing.Union[typing.Sequence[float], 'mathutils.Matrix']
|
|
250
|
+
:param projection_matrix: Projection Matrix (e.g. ``camera.calc_matrix_camera(...)``).
|
|
251
|
+
:type projection_matrix: typing.Union[typing.Sequence[float], 'mathutils.Matrix']
|
|
252
|
+
:param do_color_management: Color manage the output.
|
|
253
|
+
:type do_color_management: bool
|
|
254
|
+
:param draw_background: Draw background.
|
|
255
|
+
:type draw_background: bool
|
|
256
|
+
'''
|
|
257
|
+
...
|
|
258
|
+
|
|
259
|
+
def free(self):
|
|
260
|
+
''' Free the offscreen object. The framebuffer, texture and render objects will no longer be accessible.
|
|
261
|
+
|
|
262
|
+
'''
|
|
263
|
+
...
|
|
264
|
+
|
|
265
|
+
def unbind(self, restore: bool = True):
|
|
266
|
+
''' Unbind the offscreen object.
|
|
267
|
+
|
|
268
|
+
:param restore: Restore the OpenGL state, can only be used when the state has been saved before.
|
|
269
|
+
:type restore: bool
|
|
270
|
+
'''
|
|
271
|
+
...
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
class GPUShader:
|
|
275
|
+
''' GPUShader combines multiple GLSL shaders into a program used for drawing. It must contain at least a vertex and fragment shaders. The GLSL ``#version`` directive is automatically included at the top of shaders, and set to 330. Some preprocessor directives are automatically added according to the Operating System or availability: ``GPU_ATI``, ``GPU_NVIDIA`` and ``GPU_INTEL``. The following extensions are enabled by default if supported by the GPU: ``GL_ARB_texture_gather``, ``GL_ARB_texture_cube_map_array`` and ``GL_ARB_shader_draw_parameters``. For drawing user interface elements and gizmos, use ``fragOutput = blender_srgb_to_framebuffer_space(fragOutput)`` to transform the output sRGB colors to the frame-buffer color-space. :arg vertexcode: Vertex shader code. :type vertexcode: str :arg fragcode: Fragment shader code. :type value: str :arg geocode: Geometry shader code. :type value: str :arg libcode: Code with functions and presets to be shared between shaders. :type value: str :arg defines: Preprocessor directives. :type value: str :arg name: Name of shader code, for debugging purposes. :type value: str
|
|
276
|
+
'''
|
|
277
|
+
|
|
278
|
+
name: str
|
|
279
|
+
''' The name of the shader object for debugging purposes (read-only).
|
|
280
|
+
|
|
281
|
+
:type: str
|
|
282
|
+
'''
|
|
283
|
+
|
|
284
|
+
program: int
|
|
285
|
+
''' The name of the program object for use by the OpenGL API (read-only).
|
|
286
|
+
|
|
287
|
+
:type: int
|
|
288
|
+
'''
|
|
289
|
+
|
|
290
|
+
def attr_from_name(self, name: str) -> int:
|
|
291
|
+
''' Get attribute location by name.
|
|
292
|
+
|
|
293
|
+
:param name: The name of the attribute variable whose location is to be queried.
|
|
294
|
+
:type name: str
|
|
295
|
+
:rtype: int
|
|
296
|
+
:return: The location of an attribute variable.
|
|
297
|
+
'''
|
|
298
|
+
...
|
|
299
|
+
|
|
300
|
+
def attrs_info_get(self) -> typing.Tuple:
|
|
301
|
+
''' Information about the attributes used in the Shader.
|
|
302
|
+
|
|
303
|
+
:rtype: typing.Tuple
|
|
304
|
+
:return: tuples containing information about the attributes in order (name, type)
|
|
305
|
+
'''
|
|
306
|
+
...
|
|
307
|
+
|
|
308
|
+
def bind(self):
|
|
309
|
+
''' Bind the shader object. Required to be able to change uniforms of this shader.
|
|
310
|
+
|
|
311
|
+
'''
|
|
312
|
+
...
|
|
313
|
+
|
|
314
|
+
def format_calc(self) -> 'GPUVertFormat':
|
|
315
|
+
''' Build a new format based on the attributes of the shader.
|
|
316
|
+
|
|
317
|
+
:rtype: 'GPUVertFormat'
|
|
318
|
+
:return: vertex attribute format for the shader
|
|
319
|
+
'''
|
|
320
|
+
...
|
|
321
|
+
|
|
322
|
+
def image(self, name: str, texture: 'GPUTexture'):
|
|
323
|
+
''' Specify the value of an image variable for the current GPUShader.
|
|
324
|
+
|
|
325
|
+
:param name: Name of the image variable to which the texture is to be bound.
|
|
326
|
+
:type name: str
|
|
327
|
+
:param texture: Texture to attach.
|
|
328
|
+
:type texture: 'GPUTexture'
|
|
329
|
+
'''
|
|
330
|
+
...
|
|
331
|
+
|
|
332
|
+
def uniform_block(self, name: str, ubo: typing.Any):
|
|
333
|
+
''' Specify the value of an uniform buffer object variable for the current GPUShader.
|
|
334
|
+
|
|
335
|
+
:param name: name of the uniform variable whose UBO is to be specified.
|
|
336
|
+
:type name: str
|
|
337
|
+
:param texture:
|
|
338
|
+
:type texture: 'GPUUniformBuf'
|
|
339
|
+
:param ubo: Uniform Buffer to attach.
|
|
340
|
+
:type ubo: typing.Any
|
|
341
|
+
'''
|
|
342
|
+
...
|
|
343
|
+
|
|
344
|
+
def uniform_block_from_name(self, name: str) -> int:
|
|
345
|
+
''' Get uniform block location by name.
|
|
346
|
+
|
|
347
|
+
:param name: Name of the uniform block variable whose location is to be queried.
|
|
348
|
+
:type name: str
|
|
349
|
+
:rtype: int
|
|
350
|
+
:return: The location of the uniform block variable.
|
|
351
|
+
'''
|
|
352
|
+
...
|
|
353
|
+
|
|
354
|
+
def uniform_bool(self, name: str, value: bool):
|
|
355
|
+
''' Specify the value of a uniform variable for the current program object.
|
|
356
|
+
|
|
357
|
+
:param name: Name of the uniform variable whose value is to be changed.
|
|
358
|
+
:type name: str
|
|
359
|
+
:param value: Value that will be used to update the specified uniform variable.
|
|
360
|
+
:type value: bool
|
|
361
|
+
'''
|
|
362
|
+
...
|
|
363
|
+
|
|
364
|
+
def uniform_float(self, name: str, value: typing.List):
|
|
365
|
+
''' Specify the value of a uniform variable for the current program object.
|
|
366
|
+
|
|
367
|
+
:param name: Name of the uniform variable whose value is to be changed.
|
|
368
|
+
:type name: str
|
|
369
|
+
:param value: Value that will be used to update the specified uniform variable.
|
|
370
|
+
:type value: typing.List
|
|
371
|
+
'''
|
|
372
|
+
...
|
|
373
|
+
|
|
374
|
+
def uniform_from_name(self, name: str) -> int:
|
|
375
|
+
''' Get uniform location by name.
|
|
376
|
+
|
|
377
|
+
:param name: Name of the uniform variable whose location is to be queried.
|
|
378
|
+
:type name: str
|
|
379
|
+
:rtype: int
|
|
380
|
+
:return: Location of the uniform variable.
|
|
381
|
+
'''
|
|
382
|
+
...
|
|
383
|
+
|
|
384
|
+
def uniform_int(self, name: str, seq: typing.List):
|
|
385
|
+
''' Specify the value of a uniform variable for the current program object.
|
|
386
|
+
|
|
387
|
+
:param name: name of the uniform variable whose value is to be changed.
|
|
388
|
+
:type name: str
|
|
389
|
+
:param seq: Value that will be used to update the specified uniform variable.
|
|
390
|
+
:type seq: typing.List
|
|
391
|
+
'''
|
|
392
|
+
...
|
|
393
|
+
|
|
394
|
+
def uniform_sampler(self, name: str, texture: 'GPUTexture'):
|
|
395
|
+
''' Specify the value of a texture uniform variable for the current GPUShader.
|
|
396
|
+
|
|
397
|
+
:param name: name of the uniform variable whose texture is to be specified.
|
|
398
|
+
:type name: str
|
|
399
|
+
:param texture: Texture to attach.
|
|
400
|
+
:type texture: 'GPUTexture'
|
|
401
|
+
'''
|
|
402
|
+
...
|
|
403
|
+
|
|
404
|
+
def uniform_vector_float(self, location: int, buffer: typing.List[float],
|
|
405
|
+
length: int, count: int):
|
|
406
|
+
''' Set the buffer to fill the uniform.
|
|
407
|
+
|
|
408
|
+
:param location: Location of the uniform variable to be modified.
|
|
409
|
+
:type location: int
|
|
410
|
+
:param buffer: The data that should be set. Can support the buffer protocol.
|
|
411
|
+
:type buffer: typing.List[float]
|
|
412
|
+
:param length: - 1: float - 2: vec2 or float[2] - 3: vec3 or float[3] - 4: vec4 or float[4] - 9: mat3 - 16: mat4
|
|
413
|
+
:type length: int
|
|
414
|
+
:param count: Specifies the number of elements, vector or matrices that are to be modified.
|
|
415
|
+
:type count: int
|
|
416
|
+
'''
|
|
417
|
+
...
|
|
418
|
+
|
|
419
|
+
def uniform_vector_int(self, location, buffer, length, count):
|
|
420
|
+
''' See GPUShader.uniform_vector_float(...) description.
|
|
421
|
+
|
|
422
|
+
'''
|
|
423
|
+
...
|
|
424
|
+
|
|
425
|
+
|
|
426
|
+
class GPUShaderCreateInfo:
|
|
427
|
+
''' Stores and describes types and variables that are used in shader sources.
|
|
428
|
+
'''
|
|
429
|
+
|
|
430
|
+
def compute_source(self, source: str):
|
|
431
|
+
''' compute shader source code written in GLSL. Example:
|
|
432
|
+
|
|
433
|
+
:param source: The compute shader source code.
|
|
434
|
+
:type source: str
|
|
435
|
+
'''
|
|
436
|
+
...
|
|
437
|
+
|
|
438
|
+
def define(self, name, value):
|
|
439
|
+
''' Add a preprocessing define directive. In GLSL it would be something like:
|
|
440
|
+
|
|
441
|
+
'''
|
|
442
|
+
...
|
|
443
|
+
|
|
444
|
+
def fragment_out(self,
|
|
445
|
+
slot: int,
|
|
446
|
+
type: str,
|
|
447
|
+
name: str,
|
|
448
|
+
blend: str = 'NONE'):
|
|
449
|
+
''' Specify a fragment output corresponding to a framebuffer target slot.
|
|
450
|
+
|
|
451
|
+
:param slot: The attribute index.
|
|
452
|
+
:type slot: int
|
|
453
|
+
:param type: - ``FLOAT`` - ``VEC2`` - ``VEC3`` - ``VEC4`` - ``MAT3`` - ``MAT4`` - ``UINT`` - ``UVEC2`` - ``UVEC3`` - ``UVEC4`` - ``INT`` - ``IVEC2`` - ``IVEC3`` - ``IVEC4`` - ``BOOL``
|
|
454
|
+
:type type: str
|
|
455
|
+
:param name: Name of the attribute.
|
|
456
|
+
:type name: str
|
|
457
|
+
:param blend: Dual Source Blending Index. It can be 'NONE', 'SRC_0' or 'SRC_1'.
|
|
458
|
+
:type blend: str
|
|
459
|
+
'''
|
|
460
|
+
...
|
|
461
|
+
|
|
462
|
+
def fragment_source(self, source: str):
|
|
463
|
+
''' Fragment shader source code written in GLSL. Example:
|
|
464
|
+
|
|
465
|
+
:param source: The fragment shader source code.
|
|
466
|
+
:type source: str
|
|
467
|
+
'''
|
|
468
|
+
...
|
|
469
|
+
|
|
470
|
+
def image(self,
|
|
471
|
+
slot: int,
|
|
472
|
+
format: str,
|
|
473
|
+
type: str,
|
|
474
|
+
name: str,
|
|
475
|
+
qualifiers: typing.Set = {'NO_RESTRICT'}):
|
|
476
|
+
''' Specify an image resource used for arbitrary load and store operations.
|
|
477
|
+
|
|
478
|
+
:param slot: The image resource index.
|
|
479
|
+
:type slot: int
|
|
480
|
+
:param format: - ``RGBA8UI`` - ``RGBA8I`` - ``RGBA8`` - ``RGBA32UI`` - ``RGBA32I`` - ``RGBA32F`` - ``RGBA16UI`` - ``RGBA16I`` - ``RGBA16F`` - ``RGBA16`` - ``RG8UI`` - ``RG8I`` - ``RG8`` - ``RG32UI`` - ``RG32I`` - ``RG32F`` - ``RG16UI`` - ``RG16I`` - ``RG16F`` - ``RG16`` - ``R8UI`` - ``R8I`` - ``R8`` - ``R32UI`` - ``R32I`` - ``R32F`` - ``R16UI`` - ``R16I`` - ``R16F`` - ``R16`` - ``R11F_G11F_B10F`` - ``DEPTH32F_STENCIL8`` - ``DEPTH24_STENCIL8`` - ``SRGB8_A8`` - ``RGB16F`` - ``SRGB8_A8_DXT1`` - ``SRGB8_A8_DXT3`` - ``SRGB8_A8_DXT5`` - ``RGBA8_DXT1`` - ``RGBA8_DXT3`` - ``RGBA8_DXT5`` - ``DEPTH_COMPONENT32F`` - ``DEPTH_COMPONENT24`` - ``DEPTH_COMPONENT16``
|
|
481
|
+
:type format: str
|
|
482
|
+
:param type: - ``FLOAT_BUFFER`` - ``FLOAT_1D`` - ``FLOAT_1D_ARRAY`` - ``FLOAT_2D`` - ``FLOAT_2D_ARRAY`` - ``FLOAT_3D`` - ``FLOAT_CUBE`` - ``FLOAT_CUBE_ARRAY`` - ``INT_BUFFER`` - ``INT_1D`` - ``INT_1D_ARRAY`` - ``INT_2D`` - ``INT_2D_ARRAY`` - ``INT_3D`` - ``INT_CUBE`` - ``INT_CUBE_ARRAY`` - ``UINT_BUFFER`` - ``UINT_1D`` - ``UINT_1D_ARRAY`` - ``UINT_2D`` - ``UINT_2D_ARRAY`` - ``UINT_3D`` - ``UINT_CUBE`` - ``UINT_CUBE_ARRAY`` - ``SHADOW_2D`` - ``SHADOW_2D_ARRAY`` - ``SHADOW_CUBE`` - ``SHADOW_CUBE_ARRAY`` - ``DEPTH_2D`` - ``DEPTH_2D_ARRAY`` - ``DEPTH_CUBE`` - ``DEPTH_CUBE_ARRAY``
|
|
483
|
+
:type type: str
|
|
484
|
+
:param name: The image resource name.
|
|
485
|
+
:type name: str
|
|
486
|
+
:param qualifiers: - ``NO_RESTRICT`` - ``READ`` - ``WRITE``
|
|
487
|
+
:type qualifiers: typing.Set
|
|
488
|
+
'''
|
|
489
|
+
...
|
|
490
|
+
|
|
491
|
+
def local_group_size(self, x: int, y: int = -1, z: int = -1):
|
|
492
|
+
''' Specify the local group size for compute shaders.
|
|
493
|
+
|
|
494
|
+
:param x: The local group size in the x dimension.
|
|
495
|
+
:type x: int
|
|
496
|
+
:param y: The local group size in the y dimension. Optional. Defaults to -1.
|
|
497
|
+
:type y: int
|
|
498
|
+
:param z: The local group size in the z dimension. Optional. Defaults to -1.
|
|
499
|
+
:type z: int
|
|
500
|
+
'''
|
|
501
|
+
...
|
|
502
|
+
|
|
503
|
+
def push_constant(self, type: str, name: str, size: typing.Any = 0):
|
|
504
|
+
''' Specify a global access constant.
|
|
505
|
+
|
|
506
|
+
:param type: - ``FLOAT`` - ``VEC2`` - ``VEC3`` - ``VEC4`` - ``MAT3`` - ``MAT4`` - ``UINT`` - ``UVEC2`` - ``UVEC3`` - ``UVEC4`` - ``INT`` - ``IVEC2`` - ``IVEC3`` - ``IVEC4`` - ``BOOL``
|
|
507
|
+
:type type: str
|
|
508
|
+
:param name: Name of the constant.
|
|
509
|
+
:type name: str
|
|
510
|
+
:param size: If not zero, indicates that the constant is an array with the specified size.
|
|
511
|
+
:type size: typing.Any
|
|
512
|
+
'''
|
|
513
|
+
...
|
|
514
|
+
|
|
515
|
+
def sampler(self, slot: int, type: str, name: str):
|
|
516
|
+
''' Specify an image texture sampler.
|
|
517
|
+
|
|
518
|
+
:param slot: The image texture sampler index.
|
|
519
|
+
:type slot: int
|
|
520
|
+
:param type: - ``FLOAT_BUFFER`` - ``FLOAT_1D`` - ``FLOAT_1D_ARRAY`` - ``FLOAT_2D`` - ``FLOAT_2D_ARRAY`` - ``FLOAT_3D`` - ``FLOAT_CUBE`` - ``FLOAT_CUBE_ARRAY`` - ``INT_BUFFER`` - ``INT_1D`` - ``INT_1D_ARRAY`` - ``INT_2D`` - ``INT_2D_ARRAY`` - ``INT_3D`` - ``INT_CUBE`` - ``INT_CUBE_ARRAY`` - ``UINT_BUFFER`` - ``UINT_1D`` - ``UINT_1D_ARRAY`` - ``UINT_2D`` - ``UINT_2D_ARRAY`` - ``UINT_3D`` - ``UINT_CUBE`` - ``UINT_CUBE_ARRAY`` - ``SHADOW_2D`` - ``SHADOW_2D_ARRAY`` - ``SHADOW_CUBE`` - ``SHADOW_CUBE_ARRAY`` - ``DEPTH_2D`` - ``DEPTH_2D_ARRAY`` - ``DEPTH_CUBE`` - ``DEPTH_CUBE_ARRAY``
|
|
521
|
+
:type type: str
|
|
522
|
+
:param name: The image texture sampler name.
|
|
523
|
+
:type name: str
|
|
524
|
+
'''
|
|
525
|
+
...
|
|
526
|
+
|
|
527
|
+
def typedef_source(self, source):
|
|
528
|
+
''' Source code included before resource declaration. Useful for defining structs used by Uniform Buffers. Example:
|
|
529
|
+
|
|
530
|
+
'''
|
|
531
|
+
...
|
|
532
|
+
|
|
533
|
+
def uniform_buf(self, slot: int, type_name: str, name: str):
|
|
534
|
+
''' Specify a uniform variable whose type can be one of those declared in `typedef_source`.
|
|
535
|
+
|
|
536
|
+
:param slot: The uniform variable index.
|
|
537
|
+
:type slot: int
|
|
538
|
+
:param type_name: `gpu.types.GPUShaderCreateInfo.typedef_source`.
|
|
539
|
+
:type type_name: str
|
|
540
|
+
:param name: The uniform variable name.
|
|
541
|
+
:type name: str
|
|
542
|
+
'''
|
|
543
|
+
...
|
|
544
|
+
|
|
545
|
+
def vertex_in(self, slot: int, type: str, name: str):
|
|
546
|
+
''' Add a vertex shader input attribute.
|
|
547
|
+
|
|
548
|
+
:param slot: The attribute index.
|
|
549
|
+
:type slot: int
|
|
550
|
+
:param type: - ``FLOAT`` - ``VEC2`` - ``VEC3`` - ``VEC4`` - ``MAT3`` - ``MAT4`` - ``UINT`` - ``UVEC2`` - ``UVEC3`` - ``UVEC4`` - ``INT`` - ``IVEC2`` - ``IVEC3`` - ``IVEC4`` - ``BOOL``
|
|
551
|
+
:type type: str
|
|
552
|
+
:param name: name of the attribute.
|
|
553
|
+
:type name: str
|
|
554
|
+
'''
|
|
555
|
+
...
|
|
556
|
+
|
|
557
|
+
def vertex_out(self, interface: 'GPUStageInterfaceInfo'):
|
|
558
|
+
''' Add a vertex shader output interface block.
|
|
559
|
+
|
|
560
|
+
:param interface: Object describing the block.
|
|
561
|
+
:type interface: 'GPUStageInterfaceInfo'
|
|
562
|
+
'''
|
|
563
|
+
...
|
|
564
|
+
|
|
565
|
+
def vertex_source(self, source: str):
|
|
566
|
+
''' Vertex shader source code written in GLSL. Example:
|
|
567
|
+
|
|
568
|
+
:param source: The vertex shader source code.
|
|
569
|
+
:type source: str
|
|
570
|
+
'''
|
|
571
|
+
...
|
|
572
|
+
|
|
573
|
+
|
|
574
|
+
class GPUStageInterfaceInfo:
|
|
575
|
+
''' List of varyings between shader stages. :arg name: Name of the interface block. :type value: str
|
|
576
|
+
'''
|
|
577
|
+
|
|
578
|
+
name: str
|
|
579
|
+
''' Name of the interface block.
|
|
580
|
+
|
|
581
|
+
:type: str
|
|
582
|
+
'''
|
|
583
|
+
|
|
584
|
+
def flat(self, type: str, name: str):
|
|
585
|
+
''' Add an attribute with qualifier of type `flat` to the interface block.
|
|
586
|
+
|
|
587
|
+
:param type: - ``FLOAT`` - ``VEC2`` - ``VEC3`` - ``VEC4`` - ``MAT3`` - ``MAT4`` - ``UINT`` - ``UVEC2`` - ``UVEC3`` - ``UVEC4`` - ``INT`` - ``IVEC2`` - ``IVEC3`` - ``IVEC4`` - ``BOOL``
|
|
588
|
+
:type type: str
|
|
589
|
+
:param name: name of the attribute.
|
|
590
|
+
:type name: str
|
|
591
|
+
'''
|
|
592
|
+
...
|
|
593
|
+
|
|
594
|
+
def no_perspective(self, type: str, name: str):
|
|
595
|
+
''' Add an attribute with qualifier of type `no_perspective` to the interface block.
|
|
596
|
+
|
|
597
|
+
:param type: - ``FLOAT`` - ``VEC2`` - ``VEC3`` - ``VEC4`` - ``MAT3`` - ``MAT4`` - ``UINT`` - ``UVEC2`` - ``UVEC3`` - ``UVEC4`` - ``INT`` - ``IVEC2`` - ``IVEC3`` - ``IVEC4`` - ``BOOL``
|
|
598
|
+
:type type: str
|
|
599
|
+
:param name: name of the attribute.
|
|
600
|
+
:type name: str
|
|
601
|
+
'''
|
|
602
|
+
...
|
|
603
|
+
|
|
604
|
+
def smooth(self, type: str, name: str):
|
|
605
|
+
''' Add an attribute with qualifier of type `smooth` to the interface block.
|
|
606
|
+
|
|
607
|
+
:param type: - ``FLOAT`` - ``VEC2`` - ``VEC3`` - ``VEC4`` - ``MAT3`` - ``MAT4`` - ``UINT`` - ``UVEC2`` - ``UVEC3`` - ``UVEC4`` - ``INT`` - ``IVEC2`` - ``IVEC3`` - ``IVEC4`` - ``BOOL``
|
|
608
|
+
:type type: str
|
|
609
|
+
:param name: name of the attribute.
|
|
610
|
+
:type name: str
|
|
611
|
+
'''
|
|
612
|
+
...
|
|
613
|
+
|
|
614
|
+
|
|
615
|
+
class GPUTexture:
|
|
616
|
+
''' This object gives access to off GPU textures. :arg size: Dimensions of the texture 1D, 2D, 3D or cubemap. :type size: tuple or int :arg layers: Number of layers in texture array or number of cubemaps in cubemap array :type layers: int :arg is_cubemap: Indicates the creation of a cubemap texture. :type is_cubemap: int :arg format: Internal data format inside GPU memory. Possible values are: `RGBA8UI`, `RGBA8I`, `RGBA8`, `RGBA32UI`, `RGBA32I`, `RGBA32F`, `RGBA16UI`, `RGBA16I`, `RGBA16F`, `RGBA16`, `RG8UI`, `RG8I`, `RG8`, `RG32UI`, `RG32I`, `RG32F`, `RG16UI`, `RG16I`, `RG16F`, `RG16`, `R8UI`, `R8I`, `R8`, `R32UI`, `R32I`, `R32F`, `R16UI`, `R16I`, `R16F`, `R16`, `R11F_G11F_B10F`, `DEPTH32F_STENCIL8`, `DEPTH24_STENCIL8`, `SRGB8_A8`, `RGB16F`, `SRGB8_A8_DXT1`, `SRGB8_A8_DXT3`, `SRGB8_A8_DXT5`, `RGBA8_DXT1`, `RGBA8_DXT3`, `RGBA8_DXT5`, `DEPTH_COMPONENT32F`, `DEPTH_COMPONENT24`, `DEPTH_COMPONENT16`, :type format: str :arg data: Buffer object to fill the texture. :type data: `gpu.types.Buffer`
|
|
617
|
+
'''
|
|
618
|
+
|
|
619
|
+
format: str
|
|
620
|
+
''' Format of the texture.
|
|
621
|
+
|
|
622
|
+
:type: str
|
|
623
|
+
'''
|
|
624
|
+
|
|
625
|
+
height: int
|
|
626
|
+
''' Height of the texture.
|
|
627
|
+
|
|
628
|
+
:type: int
|
|
629
|
+
'''
|
|
630
|
+
|
|
631
|
+
width: int
|
|
632
|
+
''' Width of the texture.
|
|
633
|
+
|
|
634
|
+
:type: int
|
|
635
|
+
'''
|
|
636
|
+
|
|
637
|
+
def clear(self,
|
|
638
|
+
format: str = 'FLOAT',
|
|
639
|
+
value: typing.List = (0.0, 0.0, 0.0, 1.0)):
|
|
640
|
+
''' Fill texture with specific value.
|
|
641
|
+
|
|
642
|
+
:param format: The format that describes the content of a single item. Possible values are `FLOAT`, `INT`, `UINT`, `UBYTE`, `UINT_24_8` and `10_11_11_REV`.
|
|
643
|
+
:type format: str
|
|
644
|
+
:param value: sequence each representing the value to fill.
|
|
645
|
+
:type value: typing.List
|
|
646
|
+
'''
|
|
647
|
+
...
|
|
648
|
+
|
|
649
|
+
def read(self):
|
|
650
|
+
''' Creates a buffer with the value of all pixels.
|
|
651
|
+
|
|
652
|
+
'''
|
|
653
|
+
...
|
|
654
|
+
|
|
655
|
+
|
|
656
|
+
class GPUUniformBuf:
|
|
657
|
+
''' This object gives access to off uniform buffers. :arg data: Data to fill the buffer. :type data: object exposing buffer interface
|
|
658
|
+
'''
|
|
659
|
+
|
|
660
|
+
def update(self, data):
|
|
661
|
+
''' Update the data of the uniform buffer object.
|
|
662
|
+
|
|
663
|
+
'''
|
|
664
|
+
...
|
|
665
|
+
|
|
666
|
+
|
|
667
|
+
class GPUVertBuf:
|
|
668
|
+
''' Contains a VBO. :arg format: Vertex format. :type format: `gpu.types.GPUVertFormat` :arg len: Amount of vertices that will fit into this buffer. :type len: int
|
|
669
|
+
'''
|
|
670
|
+
|
|
671
|
+
def attr_fill(self, id: typing.Union[int, str], data: typing.List[float]):
|
|
672
|
+
''' Insert data into the buffer for a single attribute.
|
|
673
|
+
|
|
674
|
+
:param id: Either the name or the id of the attribute.
|
|
675
|
+
:type id: typing.Union[int, str]
|
|
676
|
+
:param data: Sequence of data that should be stored in the buffer
|
|
677
|
+
:type data: typing.List[float]
|
|
678
|
+
'''
|
|
679
|
+
...
|
|
680
|
+
|
|
681
|
+
|
|
682
|
+
class GPUVertFormat:
|
|
683
|
+
''' This object contains information about the structure of a vertex buffer.
|
|
684
|
+
'''
|
|
685
|
+
|
|
686
|
+
def attr_add(self, id: str, comp_type: str, len: int, fetch_mode: str):
|
|
687
|
+
''' Add a new attribute to the format.
|
|
688
|
+
|
|
689
|
+
:param id: Name the attribute. Often `position`, `normal`, ...
|
|
690
|
+
:type id: str
|
|
691
|
+
:param comp_type: The data type that will be used store the value in memory. Possible values are `I8`, `U8`, `I16`, `U16`, `I32`, `U32`, `F32` and `I10`.
|
|
692
|
+
:type comp_type: str
|
|
693
|
+
:param len: How many individual values the attribute consists of (e.g. 2 for uv coordinates).
|
|
694
|
+
:type len: int
|
|
695
|
+
:param fetch_mode: How values from memory will be converted when used in the shader. This is mainly useful for memory optimizations when you want to store values with reduced precision. E.g. you can store a float in only 1 byte but it will be converted to a normal 4 byte float when used. Possible values are `FLOAT`, `INT`, `INT_TO_FLOAT_UNIT` and `INT_TO_FLOAT`.
|
|
696
|
+
:type fetch_mode: str
|
|
697
|
+
'''
|
|
698
|
+
...
|