@@ -59,7 +59,7 @@ namespace vsg
5959 }
6060 }
6161
62- Array3D (uint32_t width, uint32_t height, uint32_t depth, Properties in_properties = {}) :
62+ Array3D (uint32_t width, uint32_t height, uint32_t depth, const Properties& in_properties = {}) :
6363 Data (in_properties, sizeof (value_type)),
6464 _data (nullptr ),
6565 _width (width),
@@ -70,7 +70,7 @@ namespace vsg
7070 dirty ();
7171 }
7272
73- Array3D (uint32_t width, uint32_t height, uint32_t depth, value_type* data, Properties in_properties = {}, MipmapLayout* mipmapLayout = nullptr ) :
73+ Array3D (uint32_t width, uint32_t height, uint32_t depth, value_type* data, const Properties& in_properties = {}, MipmapLayout* mipmapLayout = nullptr ) :
7474 Data (in_properties, sizeof (value_type)),
7575 _data (data),
7676 _width (width),
@@ -81,7 +81,7 @@ namespace vsg
8181 dirty ();
8282 }
8383
84- Array3D (uint32_t width, uint32_t height, uint32_t depth, const value_type& value, Properties in_properties = {}) :
84+ Array3D (uint32_t width, uint32_t height, uint32_t depth, const value_type& value, const Properties& in_properties = {}) :
8585 Data (in_properties, sizeof (value_type)),
8686 _data (nullptr ),
8787 _width (width),
@@ -96,7 +96,7 @@ namespace vsg
9696 }
9797 }
9898
99- Array3D (ref_ptr<Data> data, uint32_t offset, uint32_t stride, uint32_t width, uint32_t height, uint32_t depth, Properties in_properties = {}, MipmapLayout* mipmapLayout = nullptr ) :
99+ Array3D (ref_ptr<Data> data, uint32_t offset, uint32_t stride, uint32_t width, uint32_t height, uint32_t depth, const Properties& in_properties = {}, MipmapLayout* mipmapLayout = nullptr ) :
100100 Data (),
101101 _data (nullptr ),
102102 _width (0 ),
@@ -242,7 +242,7 @@ namespace vsg
242242 return *this ;
243243 }
244244
245- void assign (uint32_t width, uint32_t height, uint32_t depth, value_type* data, Properties in_properties = {}, MipmapLayout* mipmapLayout = nullptr )
245+ void assign (uint32_t width, uint32_t height, uint32_t depth, value_type* data, const Properties& in_properties = {}, MipmapLayout* mipmapLayout = nullptr )
246246 {
247247 _delete ();
248248
@@ -259,7 +259,7 @@ namespace vsg
259259 dirty ();
260260 }
261261
262- void assign (ref_ptr<Data> storage, uint32_t offset, uint32_t stride, uint32_t width, uint32_t height, uint32_t depth, Properties in_properties = {}, MipmapLayout* mipmapLayout = nullptr )
262+ void assign (ref_ptr<Data> storage, uint32_t offset, uint32_t stride, uint32_t width, uint32_t height, uint32_t depth, const Properties& in_properties = {}, MipmapLayout* mipmapLayout = nullptr )
263263 {
264264 _delete ();
265265
0 commit comments