mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 13:08:24 +01:00
SOURCE DUMP v1
This commit is contained in:
parent
bd62d51ec9
commit
fb20299e9d
36 changed files with 768360 additions and 0 deletions
52
brutal.vulkan/Brutal.Vulkan.Vma/Generated/Globals.gen.cs
Normal file
52
brutal.vulkan/Brutal.Vulkan.Vma/Generated/Globals.gen.cs
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
namespace Brutal.VulkanApi.Vma
|
||||
{
|
||||
public readonly unsafe struct VmaAllocateDeviceMemoryFunction(
|
||||
delegate* unmanaged[Cdecl]<VmaAllocatorHandle, uint, VkDeviceMemory, ByteSize, Ptr, void> handle
|
||||
)
|
||||
{
|
||||
public readonly delegate* unmanaged[Cdecl]<
|
||||
VmaAllocatorHandle,
|
||||
uint,
|
||||
VkDeviceMemory,
|
||||
ByteSize,
|
||||
Ptr,
|
||||
void> Invoke = handle;
|
||||
|
||||
public static explicit operator VmaAllocateDeviceMemoryFunction(PfnVkVoidFunction func)
|
||||
{
|
||||
return new VmaAllocateDeviceMemoryFunction(
|
||||
(delegate* unmanaged[Cdecl]<VmaAllocatorHandle, uint, VkDeviceMemory, ByteSize, Ptr, void>)func.Invoke
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
public readonly unsafe struct VmaFreeDeviceMemoryFunction(
|
||||
delegate* unmanaged[Cdecl]<VmaAllocatorHandle, uint, VkDeviceMemory, ByteSize, Ptr, void> handle
|
||||
)
|
||||
{
|
||||
public readonly delegate* unmanaged[Cdecl]<
|
||||
VmaAllocatorHandle,
|
||||
uint,
|
||||
VkDeviceMemory,
|
||||
ByteSize,
|
||||
Ptr,
|
||||
void> Invoke = handle;
|
||||
|
||||
public static explicit operator VmaFreeDeviceMemoryFunction(PfnVkVoidFunction func)
|
||||
{
|
||||
return new VmaFreeDeviceMemoryFunction(
|
||||
(delegate* unmanaged[Cdecl]<VmaAllocatorHandle, uint, VkDeviceMemory, ByteSize, Ptr, void>)func.Invoke
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
public readonly unsafe struct VmaCheckDefragmentationBreakFunction(delegate* unmanaged[Cdecl]<Ptr, Bool32> handle)
|
||||
{
|
||||
public readonly delegate* unmanaged[Cdecl]<Ptr, Bool32> Invoke = handle;
|
||||
|
||||
public static explicit operator VmaCheckDefragmentationBreakFunction(PfnVkVoidFunction func)
|
||||
{
|
||||
return new VmaCheckDefragmentationBreakFunction((delegate* unmanaged[Cdecl]<Ptr, Bool32>)func.Invoke);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace Brutal.VulkanApi.Vma
|
||||
{
|
||||
[InlineArray(32)]
|
||||
public struct VmaDetailedStatistics_32
|
||||
{
|
||||
public VmaDetailedStatistics Data;
|
||||
}
|
||||
|
||||
[InlineArray(16)]
|
||||
public struct VmaDetailedStatistics_16
|
||||
{
|
||||
public VmaDetailedStatistics Data;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
namespace Brutal.VulkanApi.Vma
|
||||
{
|
||||
[Flags]
|
||||
public enum VmaAllocationCreateFlags : uint
|
||||
{
|
||||
None = 0,
|
||||
DedicatedMemoryBit = 0x00000001,
|
||||
NeverAllocateBit = 0x00000002,
|
||||
MappedBit = 0x00000004,
|
||||
UserDataCopyStringBit = 0x00000020,
|
||||
UpperAddressBit = 0x00000040,
|
||||
DontBindBit = 0x00000080,
|
||||
WithinBudgetBit = 0x00000100,
|
||||
CanAliasBit = 0x00000200,
|
||||
HostAccessSequentialWriteBit = 0x00000400,
|
||||
HostAccessRandomBit = 0x00000800,
|
||||
HostAccessAllowTransferInsteadBit = 0x00001000,
|
||||
StrategyMinMemoryBit = 0x00010000,
|
||||
StrategyMinTimeBit = 0x00020000,
|
||||
StrategyMinOffsetBit = 0x00040000,
|
||||
StrategyBestFitBit = 0x00010000,
|
||||
StrategyFirstFitBit = 0x00020000,
|
||||
StrategyMask = 0x00070000,
|
||||
FlagBitsMaxEnum = 0x7FFFFFFF,
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
namespace Brutal.VulkanApi.Vma
|
||||
{
|
||||
[Flags]
|
||||
public enum VmaAllocatorCreateFlags : uint
|
||||
{
|
||||
None = 0,
|
||||
ExternallySynchronizedBit = 0x00000001,
|
||||
KhrDedicatedAllocationBit = 0x00000002,
|
||||
KhrBindMemory2Bit = 0x00000004,
|
||||
ExtMemoryBudgetBit = 0x00000008,
|
||||
AmdDeviceCoherentMemoryBit = 0x00000010,
|
||||
BufferDeviceAddressBit = 0x00000020,
|
||||
ExtMemoryPriorityBit = 0x00000040,
|
||||
KhrMaintenance4Bit = 0x00000080,
|
||||
KhrMaintenance5Bit = 0x00000100,
|
||||
KhrExternalMemoryWin32Bit = 0x00000200,
|
||||
FlagBitsMaxEnum = 0x7FFFFFFF,
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
namespace Brutal.VulkanApi.Vma
|
||||
{
|
||||
[Flags]
|
||||
public enum VmaDefragmentationFlags : uint
|
||||
{
|
||||
None = 0,
|
||||
FlagAlgorithmFastBit = 0x00000001,
|
||||
FlagAlgorithmBalancedBit = 0x00000002,
|
||||
FlagAlgorithmFullBit = 0x00000004,
|
||||
FlagAlgorithmExtensiveBit = 0x00000008,
|
||||
FlagAlgorithmMask = 0x0000000F,
|
||||
FlagBitsMaxEnum = 0x7FFFFFFF,
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
namespace Brutal.VulkanApi.Vma
|
||||
{
|
||||
public enum VmaDefragmentationMoveOperation : uint
|
||||
{
|
||||
Copy = 0x00000000,
|
||||
Ignore = 0x00000001,
|
||||
Destroy = 0x00000002,
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
namespace Brutal.VulkanApi.Vma
|
||||
{
|
||||
public enum VmaMemoryUsage : uint
|
||||
{
|
||||
Unknown = 0x00000000,
|
||||
GpuOnly = 0x00000001,
|
||||
CpuOnly = 0x00000002,
|
||||
CpuToGpu = 0x00000003,
|
||||
GpuToCpu = 0x00000004,
|
||||
CpuCopy = 0x00000005,
|
||||
GpuLazilyAllocated = 0x00000006,
|
||||
Auto = 0x00000007,
|
||||
AutoPreferDevice = 0x00000008,
|
||||
AutoPreferHost = 0x00000009,
|
||||
MaxEnum = 0x7FFFFFFF,
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
namespace Brutal.VulkanApi.Vma
|
||||
{
|
||||
[Flags]
|
||||
public enum VmaPoolCreateFlags : uint
|
||||
{
|
||||
None = 0,
|
||||
IgnoreBufferImageGranularityBit = 0x00000002,
|
||||
LinearAlgorithmBit = 0x00000004,
|
||||
AlgorithmMask = 0x00000004,
|
||||
FlagBitsMaxEnum = 0x7FFFFFFF,
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
namespace Brutal.VulkanApi.Vma
|
||||
{
|
||||
[Flags]
|
||||
public enum VmaVirtualAllocationCreateFlags : uint
|
||||
{
|
||||
None = 0,
|
||||
UpperAddressBit = 0x00000040,
|
||||
StrategyMinMemoryBit = 0x00010000,
|
||||
StrategyMinTimeBit = 0x00020000,
|
||||
StrategyMinOffsetBit = 0x00040000,
|
||||
StrategyMask = 0x00070000,
|
||||
FlagBitsMaxEnum = 0x7FFFFFFF,
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
namespace Brutal.VulkanApi.Vma
|
||||
{
|
||||
[Flags]
|
||||
public enum VmaVirtualBlockCreateFlags : uint
|
||||
{
|
||||
None = 0,
|
||||
LinearAlgorithmBit = 0x00000001,
|
||||
AlgorithmMask = 0x00000001,
|
||||
FlagBitsMaxEnum = 0x7FFFFFFF,
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
namespace Brutal.VulkanApi.Vma
|
||||
{
|
||||
public readonly struct VmaAllocation : IVulkanHandle
|
||||
{
|
||||
public VkObjectType VkObjectType => VkObjectType.Unknown;
|
||||
public nint VkHandle { get; }
|
||||
|
||||
public VmaAllocation(nint handle)
|
||||
{
|
||||
VkHandle = handle;
|
||||
}
|
||||
|
||||
public bool IsNull()
|
||||
{
|
||||
return VkHandle == 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
namespace Brutal.VulkanApi.Vma
|
||||
{
|
||||
public readonly struct VmaDefragmentationContext : IVulkanHandle
|
||||
{
|
||||
public VkObjectType VkObjectType => VkObjectType.Unknown;
|
||||
public nint VkHandle { get; }
|
||||
|
||||
public VmaDefragmentationContext(nint handle)
|
||||
{
|
||||
VkHandle = handle;
|
||||
}
|
||||
|
||||
public bool IsNull()
|
||||
{
|
||||
return VkHandle == 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
namespace Brutal.VulkanApi.Vma
|
||||
{
|
||||
public readonly struct VmaPool : IVulkanHandle
|
||||
{
|
||||
public VkObjectType VkObjectType => VkObjectType.Unknown;
|
||||
public nint VkHandle { get; }
|
||||
|
||||
public VmaPool(nint handle)
|
||||
{
|
||||
VkHandle = handle;
|
||||
}
|
||||
|
||||
public bool IsNull()
|
||||
{
|
||||
return VkHandle == 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
namespace Brutal.VulkanApi.Vma
|
||||
{
|
||||
public readonly struct VmaVirtualAllocation : IVulkanHandle
|
||||
{
|
||||
public VkObjectType VkObjectType => VkObjectType.Unknown;
|
||||
public nint VkHandle { get; }
|
||||
|
||||
public VmaVirtualAllocation(nint handle)
|
||||
{
|
||||
VkHandle = handle;
|
||||
}
|
||||
|
||||
public bool IsNull()
|
||||
{
|
||||
return VkHandle == 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
namespace Brutal.VulkanApi.Vma
|
||||
{
|
||||
public readonly struct VmaVirtualBlock : IVulkanHandle
|
||||
{
|
||||
public VkObjectType VkObjectType => VkObjectType.Unknown;
|
||||
public nint VkHandle { get; }
|
||||
|
||||
public VmaVirtualBlock(nint handle)
|
||||
{
|
||||
VkHandle = handle;
|
||||
}
|
||||
|
||||
public bool IsNull()
|
||||
{
|
||||
return VkHandle == 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,33 @@
|
|||
namespace Brutal.VulkanApi.Vma
|
||||
{
|
||||
[StructLayout(LayoutKind.Explicit, Size = 56)]
|
||||
public unsafe partial struct VmaAllocationCreateInfo
|
||||
{
|
||||
[FieldOffset(0)]
|
||||
public VmaAllocationCreateFlags Flags;
|
||||
|
||||
[FieldOffset(4)]
|
||||
public VmaMemoryUsage Usage;
|
||||
|
||||
[FieldOffset(8)]
|
||||
public VkMemoryPropertyFlags RequiredFlags;
|
||||
|
||||
[FieldOffset(12)]
|
||||
public VkMemoryPropertyFlags PreferredFlags;
|
||||
|
||||
[FieldOffset(16)]
|
||||
public uint MemoryTypeBits;
|
||||
|
||||
[FieldOffset(24)]
|
||||
public VmaPool Pool;
|
||||
|
||||
[FieldOffset(32)]
|
||||
public Ptr PUserData;
|
||||
|
||||
[FieldOffset(40)]
|
||||
public float Priority;
|
||||
|
||||
[FieldOffset(48)]
|
||||
public ByteSize MinAlignment;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
namespace Brutal.VulkanApi.Vma
|
||||
{
|
||||
[StructLayout(LayoutKind.Explicit, Size = 56)]
|
||||
public unsafe partial struct VmaAllocationInfo
|
||||
{
|
||||
[FieldOffset(0)]
|
||||
public uint MemoryType;
|
||||
|
||||
[FieldOffset(8)]
|
||||
public VkDeviceMemory DeviceMemory;
|
||||
|
||||
[FieldOffset(16)]
|
||||
public ByteSize Offset;
|
||||
|
||||
[FieldOffset(24)]
|
||||
public ByteSize Size;
|
||||
|
||||
[FieldOffset(32)]
|
||||
public Ptr PMappedData;
|
||||
|
||||
[FieldOffset(40)]
|
||||
public Ptr PUserData;
|
||||
|
||||
[FieldOffset(48)]
|
||||
public Ptr<byte> PName;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
namespace Brutal.VulkanApi.Vma
|
||||
{
|
||||
[StructLayout(LayoutKind.Explicit, Size = 72)]
|
||||
public unsafe partial struct VmaAllocationInfo2
|
||||
{
|
||||
[FieldOffset(0)]
|
||||
public VmaAllocationInfo AllocationInfo;
|
||||
|
||||
[FieldOffset(56)]
|
||||
public ByteSize BlockSize;
|
||||
|
||||
[FieldOffset(64)]
|
||||
public Bool32 DedicatedMemory;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
namespace Brutal.VulkanApi.Vma
|
||||
{
|
||||
[StructLayout(LayoutKind.Explicit, Size = 88)]
|
||||
public unsafe partial struct VmaAllocatorCreateInfo
|
||||
{
|
||||
[FieldOffset(0)]
|
||||
public VmaAllocatorCreateFlags Flags;
|
||||
|
||||
[FieldOffset(8)]
|
||||
public VkPhysicalDevice PhysicalDevice;
|
||||
|
||||
[FieldOffset(16)]
|
||||
public VkDevice Device;
|
||||
|
||||
[FieldOffset(24)]
|
||||
public ByteSize PreferredLargeHeapBlockSize;
|
||||
|
||||
[FieldOffset(32)]
|
||||
public Ptr<VkAllocationCallbacks> PAllocationCallbacks;
|
||||
|
||||
[FieldOffset(40)]
|
||||
public Ptr<VmaDeviceMemoryCallbacks> PDeviceMemoryCallbacks;
|
||||
|
||||
[FieldOffset(48)]
|
||||
public Ptr<ByteSize> PHeapSizeLimit;
|
||||
|
||||
[FieldOffset(56)]
|
||||
public Ptr<VmaVulkanFunctions> PVulkanFunctions;
|
||||
|
||||
[FieldOffset(64)]
|
||||
public VkInstance Instance;
|
||||
|
||||
[FieldOffset(72)]
|
||||
public uint VulkanApiVersion;
|
||||
|
||||
[FieldOffset(80)]
|
||||
public Ptr<Brutal.VulkanApi.VkFlags> PTypeExternalMemoryHandleTypes;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
namespace Brutal.VulkanApi.Vma
|
||||
{
|
||||
[StructLayout(LayoutKind.Explicit, Size = 24)]
|
||||
public unsafe partial struct VmaAllocatorInfo
|
||||
{
|
||||
[FieldOffset(0)]
|
||||
public VkInstance Instance;
|
||||
|
||||
[FieldOffset(8)]
|
||||
public VkPhysicalDevice PhysicalDevice;
|
||||
|
||||
[FieldOffset(16)]
|
||||
public VkDevice Device;
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue