[FEATURE] Add overload for SKVertices.CreateCopy
that accepts offset and count for vertices and indexes
#2431
Labels
SKVertices.CreateCopy
that accepts offset and count for vertices and indexes
#2431
Is your feature request related to a problem? Please describe.
Currently, it's impossible to create a copy of SKVertices as a "slice" of original one. It's common practice in low-level graphics to reuse the same array with different "regions" of it determined by offset and count. I have troubles to make it work with SkiaSharp as the third-party API provides me with complete merged array of vertices and indexes that I want to use without additional allocations.
Describe the solution you'd like
An extended main method could look like that (reflects the native call completely):
With the native call inside:
Describe alternatives you've considered
Split input arrays into parts manually. Unoptimized solution with additional allocations.
PR: #2432
The text was updated successfully, but these errors were encountered: