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
1 changed files with 768360 additions and 0 deletions
|
|
@ -0,0 +1,40 @@
|
|||
namespace Brutal.VulkanApi
|
||||
{
|
||||
/// <summary>
|
||||
/// <see href="https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkMemoryRequirements.html">VkMemoryRequirements</see> - Structure specifying memory requirements
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// The <c>VkMemoryRequirements</c> structure is defined as:
|
||||
/// </para>
|
||||
/// <code>
|
||||
/// // Provided by VK_VERSION_1_0
|
||||
/// typedef struct VkMemoryRequirements {
|
||||
/// VkDeviceSize size;
|
||||
/// VkDeviceSize alignment;
|
||||
/// uint32_t memoryTypeBits;
|
||||
/// } VkMemoryRequirements;
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[StructLayout(LayoutKind.Explicit, Size = 24)]
|
||||
public partial struct VkMemoryRequirements()
|
||||
{
|
||||
/// <summary>
|
||||
/// <c>Size</c> is the size, in bytes, of the memory allocation required: for the resource.
|
||||
/// </summary>
|
||||
[FieldOffset(0)]
|
||||
public ByteSize64 Size;
|
||||
|
||||
/// <summary>
|
||||
/// <c>Alignment</c> is the alignment, in bytes, of the offset within the allocation required: for the resource.
|
||||
/// </summary>
|
||||
[FieldOffset(8)]
|
||||
public ByteSize64 Alignment;
|
||||
|
||||
/// <summary>
|
||||
/// <c>MemoryTypeBits</c> is a bitmask and contains one bit set for every supported memory type for the resource. Bit `i` is set if and only if the memory type `i` in the <c>VkPhysicalDeviceMemoryProperties</c> structure for the physical device is supported for the resource.
|
||||
/// </summary>
|
||||
[FieldOffset(16)]
|
||||
public int MemoryTypeBits;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue