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:
committed by
Clément Foucault
parent
aab2b6004b
commit
9990273d04
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user