mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 13:08:24 +01:00
Update Slang, Vulkan, Gltf and ImGui. Offload natives to sub-packages.
Public-PR: https://github.com/ahwootech/BRUTAL/pull/9 Public-PR: https://github.com/ahwootech/BRUTAL/pull/15 Public-PR: https://github.com/ahwootech/BRUTAL/pull/21 Fixes: ahwootech/BRUTAL#8 Fixes: ahwootech/BRUTAL#22 Co-authored-by: Laurens de Voogd <laurens@devoogd.be> Co-authored-by: sGo7-Dev <goulax16@gmail.com> Co-authored-by: Capsup <capsup@live.dk>
This commit is contained in:
parent
a25cdf80b2
commit
4ac91e105e
1 changed files with 2034 additions and 318 deletions
|
|
@ -9,9 +9,9 @@ public static unsafe partial class ISlangBlobExtensions
|
|||
{
|
||||
/// <summary>
|
||||
/// Returns the blob's contents as a <see cref="ReadOnlySpan{Byte}"/>. The span is
|
||||
/// valid for the lifetime of the underlying blob. Copy if you need the bytes
|
||||
/// to outlive it.
|
||||
/// valid until the blob is passed to <see cref="Slang.Release"/>. Copy if you need
|
||||
/// the bytes to outlive it.
|
||||
/// </summary>
|
||||
public static ReadOnlySpan<byte> AsSpan(this ISlangBlob self) =>
|
||||
new(self.GetBufferPointer(), checked((int)self.GetBufferSize()));
|
||||
new(self.GetBufferPointer(), checked((int)self.GetBufferSize().Value));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue