GPU: Change Type enum to use lower case values

This is to help for future resource declaration
using macros.

Rel #137261

Pull Request: https://projects.blender.org/blender/blender/pulls/137367
This commit is contained in:
Clément Foucault
2025-04-11 22:39:01 +02:00
committed by Clément Foucault
parent aab2b6004b
commit 9990273d04
158 changed files with 2040 additions and 2068 deletions

View File

@@ -739,7 +739,9 @@ static PyObject *pygpu_shader_attrs_info_get(BPyGPUShader *self, PyObject * /*ar
continue;
}
type = STREQ(name, "pos") ? int(Type::VEC3) : STREQ(name, "color") ? int(Type::VEC4) : -1;
type = STREQ(name, "pos") ? int(Type::float3_t) :
STREQ(name, "color") ? int(Type::float4_t) :
-1;
PyObject *py_type;
if (type != -1) {
py_type = PyUnicode_InternFromString(