You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 3, 2023. It is now read-only.
There are lots of functions taking arrays as arguments, which I often use with single elements.
For example vkCmdBindDescriptorSets takes an array of descriptor sets, but in most cases I only pass a single one. In all this cases I have to create an array for a single element. I guess this leads to lots of unnecessary array constructions and garbage collector runs.
Perhaps its possible to overload this functions to also take single elements.
The text was updated successfully, but these errors were encountered:
However, there are some problems with the new overloads in the moment:
CmdPipelineBarrier, UpdateDescriptorSets and possibly others take multiple array arguments. The count for these array arguments currently always is one even if null is passed.
The non array overload of CmdBindDescriptorSet can not be called without passing an pDynamicOffset. I think there are two solutions:
Create an additional overload without pDynamicOffset
There are lots of functions taking arrays as arguments, which I often use with single elements.
For example vkCmdBindDescriptorSets takes an array of descriptor sets, but in most cases I only pass a single one. In all this cases I have to create an array for a single element. I guess this leads to lots of unnecessary array constructions and garbage collector runs.
Perhaps its possible to overload this functions to also take single elements.
The text was updated successfully, but these errors were encountered: