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:
parent
3124241256
commit
fd9b197226
Notes:
blender-bot
2023-02-14 10:37:49 +01:00
Referenced by issue #100749, Blender LTS: Maintenance Task 3.3 Referenced by issue #102967, 3.4: Potential candidates for corrective releases
|
@ -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"},
|
||||
|
|
Loading…
Reference in New Issue