Commit: 18ecaaf9cb5a14ed522cd7d5cbfeb8eabe0a40c9
Author: Jeroen Bakker
Date:   Tue Dec 6 20:16:39 2022 +0100
Branches: blender-v3.4-release
https://developer.blender.org/rB18ecaaf9cb5a14ed522cd7d5cbfeb8eabe0a40c9

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.

===================================================================

M       source/blender/python/gpu/gpu_py_shader_create_info.cc

===================================================================

diff --git a/source/blender/python/gpu/gpu_py_shader_create_info.cc 
b/source/blender/python/gpu/gpu_py_shader_create_info.cc
index 6b1be057752..deb8653eb18 100644
--- a/source/blender/python/gpu/gpu_py_shader_create_info.cc
+++ b/source/blender/python/gpu/gpu_py_shader_create_info.cc
@@ -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"},

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to