GPU: Add deprecation notice to the docstring of GPUShader constructor

This commit is contained in:
Clément Foucault
2025-06-12 18:20:40 +02:00
parent bb60b85fc7
commit 7add4e177b

View File

@@ -929,6 +929,8 @@ PyDoc_STRVAR(
".. class:: GPUShader(vertexcode, fragcode, geocode=None, libcode=None, defines=None, "
"name='pyGPUShader')\n"
"\n"
" Deprecated, use gpu.shader.create_from_info(shader_info) instead.\n"
"\n"
" GPUShader combines multiple GLSL shaders into a program used for drawing.\n"
" It must contain at least a vertex and fragment shaders.\n"
"\n"