brutal/Brutal.Vulkan/Generated/Structs/VkAttachmentDescription.gen.cs
Rian Drake b578433e37 first
2026-10-15 17:10:50 +13:00

85 lines
3.9 KiB
C#

namespace Brutal.VulkanApi
{
/// <summary>
/// <see href="https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkAttachmentDescription.html">VkAttachmentDescription</see> - Structure specifying an attachment description
/// </summary>
/// <remarks>
/// <para>
/// :refpage: VkAttachmentDescription
/// </para>
/// <para>
/// The <c>VkAttachmentDescription</c> structure is defined as:
/// </para>
/// <code>
/// // Provided by VK_VERSION_1_0
/// typedef struct VkAttachmentDescription {
/// VkAttachmentDescriptionFlags flags;
/// VkFormat format;
/// VkSampleCountFlagBits samples;
/// VkAttachmentLoadOp loadOp;
/// VkAttachmentStoreOp storeOp;
/// VkAttachmentLoadOp stencilLoadOp;
/// VkAttachmentStoreOp stencilStoreOp;
/// VkImageLayout initialLayout;
/// VkImageLayout finalLayout;
/// } VkAttachmentDescription;
/// </code>
/// </remarks>
[StructLayout(LayoutKind.Explicit, Size = 36)]
public partial struct VkAttachmentDescription()
{
/// <summary>
/// <c>Flags</c> is a bitmask of <c>VkAttachmentDescriptionFlags</c> specifying additional properties of the attachment.
/// </summary>
[FieldOffset(0)]
public VkAttachmentDescriptionFlags Flags;
/// <summary>
/// <c>Format</c> is a <c>VkFormat</c> value specifying the format of the image view that will be used for the attachment.
/// </summary>
[FieldOffset(4)]
public VkFormat Format;
/// <summary>
/// <c>Samples</c> is a <c>VkSampleCountFlags</c> value specifying the number of samples of the image.
/// </summary>
[FieldOffset(8)]
public VkSampleCountFlags Samples;
/// <summary>
/// <c>LoadOp</c> is a <c>VkAttachmentLoadOp</c> value specifying how the contents of color and depth components of the attachment are treated at the beginning of the subpass where it is first used.
/// </summary>
[FieldOffset(12)]
public VkAttachmentLoadOp LoadOp;
/// <summary>
/// <c>StoreOp</c> is a <c>VkAttachmentStoreOp</c> value specifying how the contents of color and depth components of the attachment are treated at the end of the subpass where it is last used.
/// </summary>
[FieldOffset(16)]
public VkAttachmentStoreOp StoreOp;
/// <summary>
/// <c>StencilLoadOp</c> is a <c>VkAttachmentLoadOp</c> value specifying how the contents of stencil components of the attachment are treated at the beginning of the subpass where it is first used.
/// </summary>
[FieldOffset(20)]
public VkAttachmentLoadOp StencilLoadOp;
/// <summary>
/// <c>StencilStoreOp</c> is a <c>VkAttachmentStoreOp</c> value specifying how the contents of stencil components of the attachment are treated at the end of the last subpass where it is used.
/// </summary>
[FieldOffset(24)]
public VkAttachmentStoreOp StencilStoreOp;
/// <summary>
/// <c>InitialLayout</c> is the layout the attachment image subresource will be in when a render pass instance begins.
/// </summary>
[FieldOffset(28)]
public VkImageLayout InitialLayout;
/// <summary>
/// <c>FinalLayout</c> is the layout the attachment image subresource will be transitioned to when a render pass instance ends.
/// </summary>
[FieldOffset(32)]
public VkImageLayout FinalLayout;
}
}