mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 13:08:24 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
13
Brutal.Ktx/Abstractions/KtxNativeMemory.cs
Normal file
13
Brutal.Ktx/Abstractions/KtxNativeMemory.cs
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Brutal.KtxApi;
|
||||
|
||||
/// <summary>
|
||||
/// Binds to the native free() used by the KTX library itself, for releasing buffers it allocated
|
||||
/// with malloc() (e.g. via WriteToMemory/WriteKtx2ToMemory). See KtxNativeBuffer.
|
||||
/// </summary>
|
||||
internal static unsafe partial class KtxNativeMemory
|
||||
{
|
||||
[LibraryImport("Ktx", EntryPoint = "ktx_FreeWriteToMemoryBuffer1")]
|
||||
public static partial void Free(void* ptr);
|
||||
}
|
||||
Loading…
Reference in a new issue