GPUTexture: Remove data_format from 3D texture creation function

For every other texture types this is expected to be implicitly
`GPU_DATA_FLOAT`. There is only one case where this is not the case.

I believe this was previously needed because the data type was
conditionning the texture creation. This is not the case anymore.
This commit is contained in:
2023-02-25 01:19:44 +01:00
committed by Gitea
parent 75e3371aef
commit e01b140fb2
11 changed files with 17 additions and 47 deletions

View File

@@ -224,14 +224,8 @@ static PyObject *pygpu_texture__tp_new(PyTypeObject *UNUSED(self), PyObject *arg
}
}
else if (len == 3) {
tex = GPU_texture_create_3d(name,
size[0],
size[1],
size[2],
1,
pygpu_textureformat.value_found,
GPU_DATA_FLOAT,
data);
tex = GPU_texture_create_3d(
name, size[0], size[1], size[2], 1, pygpu_textureformat.value_found, data);
}
else if (len == 2) {
tex = GPU_texture_create_2d(