GPU: Fix using FLOAT_2D_ARRAY and FLOAT_3D textures via Python.

Translation from python enum values were incorrect and textures created
in python using those types would result in faulty textures. In
renderdoc those textures would not bind.
This commit is contained in:
Jeroen Bakker 2022-12-06 20:16:39 +01:00 committed by Thomas Dinges
parent fd70f9dfda
commit 18ecaaf9cb
Notes: blender-bot 2023-02-14 04:56:36 +01:00
Referenced by issue #102967, 3.4: Potential candidates for corrective releases
1 changed files with 2 additions and 2 deletions

View File

@ -115,8 +115,8 @@ static const struct PyC_StringEnumItems pygpu_imagetype_items[] = {
{int(ImageType::FLOAT_1D), "FLOAT_1D"},
{int(ImageType::FLOAT_1D_ARRAY), "FLOAT_1D_ARRAY"},
{int(ImageType::FLOAT_2D), "FLOAT_2D"},
{int(ImageType::FLOAT_2D_ARRAY), "FLOAT"},
{int(ImageType::FLOAT_3D), "FLOAT_2D_ARRAY"},
{int(ImageType::FLOAT_2D_ARRAY), "FLOAT_2D_ARRAY"},
{int(ImageType::FLOAT_3D), "FLOAT_3D"},
{int(ImageType::FLOAT_CUBE), "FLOAT_CUBE"},
{int(ImageType::FLOAT_CUBE_ARRAY), "FLOAT_CUBE_ARRAY"},
{int(ImageType::INT_BUFFER), "INT_BUFFER"},