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
a86f32d219
commit
b3e0eadbdc
Notes:
blender-bot
2023-05-03 10:14:48 +02:00
Referenced by issue #100749, Blender LTS: Maintenance Task 3.3
|
@ -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