mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 12:38:24 +01:00
79 lines
3.5 KiB
C#
79 lines
3.5 KiB
C#
namespace Brutal.VulkanApi
|
|
{
|
|
/// <summary>
|
|
/// <see href="https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkBufferImageCopy2.html">VkBufferImageCopy2</see> - Structure specifying a buffer image copy operation
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// :refpage: VkBufferImageCopy2
|
|
/// </para>
|
|
/// <para>
|
|
/// For both <c>vkCmdCopyBufferToImage2</c> and <c>vkCmdCopyImageToBuffer2</c>,
|
|
/// each element of <c>pRegions</c> is a structure defined as:
|
|
/// </para>
|
|
/// <code>
|
|
/// // Provided by VK_VERSION_1_3
|
|
/// typedef struct VkBufferImageCopy2 {
|
|
/// VkStructureType sType;
|
|
/// const void* pNext;
|
|
/// VkDeviceSize bufferOffset;
|
|
/// uint32_t bufferRowLength;
|
|
/// uint32_t bufferImageHeight;
|
|
/// VkImageSubresourceLayers imageSubresource;
|
|
/// VkOffset3D imageOffset;
|
|
/// VkExtent3D imageExtent;
|
|
/// } VkBufferImageCopy2;
|
|
/// </code>
|
|
/// </remarks>
|
|
[StructLayout(LayoutKind.Explicit, Size = 72)]
|
|
public unsafe partial struct VkBufferImageCopy2()
|
|
{
|
|
/// <summary>
|
|
/// <c>sType</c> is a <c>VkStructureType</c> value identifying this structure.
|
|
/// </summary>
|
|
[FieldOffset(0)]
|
|
internal readonly VkStructureType sType = VkStructureType.BufferImageCopy2;
|
|
|
|
/// <summary>
|
|
/// <c>Next</c> is `NULL` or a pointer to a structure extending this structure.
|
|
/// </summary>
|
|
[FieldOffset(8)]
|
|
public void* Next;
|
|
|
|
/// <summary>
|
|
/// <c>BufferOffset</c> is the offset in bytes from the start of the buffer object where the image data is copied from or to.
|
|
/// </summary>
|
|
[FieldOffset(16)]
|
|
public ByteSize64 BufferOffset;
|
|
|
|
/// <summary>
|
|
/// <c>BufferRowLength</c> and <c>bufferImageHeight</c> specify in texels a subregion of a larger two- or three-dimensional image in buffer memory, and control the addressing calculations. If either of these values is zero, that aspect of the buffer memory is considered to be tightly packed according to the <c>imageExtent</c>.
|
|
/// </summary>
|
|
[FieldOffset(24)]
|
|
public int BufferRowLength;
|
|
|
|
/// <summary>
|
|
/// <c>BufferImageHeight</c>
|
|
/// </summary>
|
|
[FieldOffset(28)]
|
|
public int BufferImageHeight;
|
|
|
|
/// <summary>
|
|
/// <c>ImageSubresource</c> is a <c>VkImageSubresourceLayers</c> used to specify the specific image subresources of the image used for the source or destination image data.
|
|
/// </summary>
|
|
[FieldOffset(32)]
|
|
public VkImageSubresourceLayers ImageSubresource;
|
|
|
|
/// <summary>
|
|
/// <c>ImageOffset</c> selects the initial <c>x</c>, <c>y</c>, <c>z</c> offsets in texels of the sub-region of the source or destination image data.
|
|
/// </summary>
|
|
[FieldOffset(48)]
|
|
public VkOffset3D ImageOffset;
|
|
|
|
/// <summary>
|
|
/// <c>ImageExtent</c> is the size in texels of the image to copy in <c>width</c>, <c>height</c> and <c>depth</c>.
|
|
/// </summary>
|
|
[FieldOffset(60)]
|
|
public VkExtent3D ImageExtent;
|
|
}
|
|
}
|