From d78acc9e32d7906cda506c19c489f3653319c3ec Mon Sep 17 00:00:00 2001 From: "jc.yuan" Date: Wed, 24 Jan 2024 13:01:30 +0800 Subject: [PATCH] fix type error --- native/tools/swig-config/gfx.i | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/native/tools/swig-config/gfx.i b/native/tools/swig-config/gfx.i index 1fa716d7ea0..0253f550a86 100644 --- a/native/tools/swig-config/gfx.i +++ b/native/tools/swig-config/gfx.i @@ -166,8 +166,8 @@ namespace cc { namespace gfx { // DescriptorSet %attribute(cc::gfx::DescriptorSet, cc::gfx::DescriptorSetLayout*, layout, getLayout); - -%attribute(cc::gfx::DescriptorSetLayout, cc::gfx::DescriptorSetLayoutBindingList, bindings, getBindings); +// DescriptorSetLayout +%attribute(cc::gfx::DescriptorSetLayout, cc::gfx::DescriptorSetLayoutBindingList&, bindings, getBindings); // PipelineState %attribute(cc::gfx::PipelineState, cc::gfx::Shader*, shader, getShader);