namespace Brutal.VulkanApi { /// /// VkPipelineColorBlendAttachmentState - Structure specifying a pipeline color blend attachment state /// /// /// /// The VkPipelineColorBlendAttachmentState structure is defined as: /// /// /// // Provided by VK_VERSION_1_0 /// typedef struct VkPipelineColorBlendAttachmentState { /// VkBool32 blendEnable; /// VkBlendFactor srcColorBlendFactor; /// VkBlendFactor dstColorBlendFactor; /// VkBlendOp colorBlendOp; /// VkBlendFactor srcAlphaBlendFactor; /// VkBlendFactor dstAlphaBlendFactor; /// VkBlendOp alphaBlendOp; /// VkColorComponentFlags colorWriteMask; /// } VkPipelineColorBlendAttachmentState; /// /// [StructLayout(LayoutKind.Explicit, Size = 32)] public partial struct VkPipelineColorBlendAttachmentState() { /// /// BlendEnable controls whether blending is enabled for the corresponding color attachment. If blending is not enabled, the source fragment's color for that attachment is passed through unmodified. /// [FieldOffset(0)] public Brutal.Bool32 BlendEnable; /// /// SrcColorBlendFactor selects which blend factor is used to determine the source factors (S~r~,S~g~,S~b~). /// [FieldOffset(4)] public VkBlendFactor SrcColorBlendFactor; /// /// DstColorBlendFactor selects which blend factor is used to determine the destination factors (D~r~,D~g~,D~b~). /// [FieldOffset(8)] public VkBlendFactor DstColorBlendFactor; /// /// ColorBlendOp selects which blend operation is used to calculate the RGB values to write to the color attachment. /// [FieldOffset(12)] public VkBlendOp ColorBlendOp; /// /// SrcAlphaBlendFactor selects which blend factor is used to determine the source factor S~a~. /// [FieldOffset(16)] public VkBlendFactor SrcAlphaBlendFactor; /// /// DstAlphaBlendFactor selects which blend factor is used to determine the destination factor D~a~. /// [FieldOffset(20)] public VkBlendFactor DstAlphaBlendFactor; /// /// AlphaBlendOp selects which blend operation is used to calculate the alpha values to write to the color attachment. /// [FieldOffset(24)] public VkBlendOp AlphaBlendOp; /// /// ColorWriteMask is a bitmask of VkColorComponentFlags specifying which of the R, G, B, and/or A components are enabled for writing, as described for the Color Write Mask^. /// [FieldOffset(28)] public VkColorComponentFlags ColorWriteMask; } }