mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 04:58:24 +01:00
SOURCE DUMP v1
This commit is contained in:
parent
bd62d51ec9
commit
fb20299e9d
1 changed files with 768360 additions and 0 deletions
|
|
@ -0,0 +1,22 @@
|
|||
using System.Diagnostics;
|
||||
|
||||
namespace Brutal.VulkanApi.Abstractions;
|
||||
|
||||
[DebuggerDisplay("Offset: {Offset}, Size: {Size}")]
|
||||
public struct MapRegion()
|
||||
{
|
||||
public ByteSize Offset { get; init; } = ByteSize.Zero;
|
||||
public ByteSize Size { get; init; } = VK.WHOLE_SIZE;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Information required to map a memory region.
|
||||
/// </summary>
|
||||
public readonly struct MapInfo(VkDeviceMemory memory)
|
||||
{
|
||||
public readonly VkDeviceMemory Memory = memory;
|
||||
public MapRegion Region { get; init; } = new();
|
||||
public VkMemoryMapFlags Flags { get; init; } = VkMemoryMapFlags.None;
|
||||
|
||||
public static implicit operator MapInfo(VkDeviceMemory memory) => new(memory);
|
||||
}
|
||||
Loading…
Reference in a new issue