Nominom / BCnEncoder.NET

Cross-platform texture encoding libary for .NET. With support for BC1-3/DXT, BC4-5/RGTC and BC6-7/BPTC compression. Outputs files in ktx or dds formats.
The Unlicense
108 stars 16 forks source link

Make `DecodeRaw` accept `ReadOnlyMemory<byte>` #63

Open Crauzer opened 1 year ago

Crauzer commented 1 year ago

DecodeRaw is currently a wrapper for DecodeRawInternal which itself accepts ReadOnlyMemory<byte>. There is no reason why the public function shouldn't also accept ReadOnlyMemory/ReadOnlySpan.

Crauzer commented 1 year ago

I think issue also applies to the whole library, it would be much better to use the Memory/Span types for public APIs