Python: Add deprecation warnings to GPUBatch program usage. #103978
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#103978
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Calls to
gpu.types.GPUBatch.draw#program
without a program parameter, or a None as value of the program parameter should raise a deprecation warning.All calls to
gpu.types.GPUBatch.program_set
should raise a deprecation warning..Check
pygpu_batch__tp_new
how to raise a deprecation warning using CPython.It would be great if you want to work on this topic. If so, assign the task to yourself. If you have questions or require some guidance, please get in contact via #blender-coders or via a reply on this task.
Changed status from 'Needs Triage' to: 'Confirmed'
Added subscriber: @Jeroen-Bakker
Added subscriber: @Jash-Shah
Hey, I am new to Blender dev, but this task seems like a good place for me to start since I have some experience working with CPython before!
As mentioned in the task description, I'm assigning the task to myself.
hey, is this issue still open ??
I think so, I haven't seen any activity on this.
@Jeroen-Bakker could you guide me to pygpu_batch__tp_new program so i could learn how to raise a depreciation warning
nvm found it
It is better to ask specific code questions on blender.chat in the blender-coders channel. You can expect quicker response there, as there are more developers present to help you with your questions.
@Jeroen-Bakker i did some changes in the gpu.py.bacth file i'm attaching the file here could you see through it once and tell me the necessary changes i would have to do
@Prakhar-Singh-Chouhan Can you upload it as a pull request? That makes it easier to use review tools provided here.
Hi. Is it available for me to work on? If so, I'd like to take it up.
Think so. please refer to the #105295 as it already provides a solution, but needs to be updated and review comments needs to be solved.
@Jeroen-Bakker I updated the PR and solved the review comments. Can you have a look at it #117299