All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.lwjgl.vulkan.VkRenderingInfoKHR Maven / Gradle / Ivy

Go to download

A new generation graphics and compute API that provides high-efficiency, cross-platform access to modern GPUs used in a wide variety of devices from PCs and consoles to mobile phones and embedded platforms.

There is a newer version: 3.3.4
Show newest version
/*
 * Copyright LWJGL. All rights reserved.
 * License terms: https://www.lwjgl.org/license
 * MACHINE GENERATED FILE, DO NOT EDIT
 */
package org.lwjgl.vulkan;

import javax.annotation.*;

import java.nio.*;

import org.lwjgl.*;
import org.lwjgl.system.*;

import static org.lwjgl.system.Checks.*;
import static org.lwjgl.system.MemoryUtil.*;
import static org.lwjgl.system.MemoryStack.*;

/**
 * Structure specifying render pass instance begin info.
 * 
 * 
Description
* *

If {@code viewMask} is not 0, multiview is enabled.

* *

If there is an instance of {@link VkDeviceGroupRenderPassBeginInfo} included in the {@code pNext} chain and its {@code deviceCount} member is not 0, then {@code renderArea} is ignored, and the render area is defined per-device by that structure.

* *

Each element of the {@code pColorAttachments} array corresponds to an output location in the shader, i.e. if the shader declares an output variable decorated with a {@code Location} value of X, then it uses the attachment provided in {@code pColorAttachments}[X]. If the {@code imageView} member of any element of {@code pColorAttachments} is {@link VK10#VK_NULL_HANDLE NULL_HANDLE}, writes to the corresponding location by a fragment are discarded.

* *
Valid Usage
* *
    *
  • If {@code viewMask} is 0, {@code layerCount} must not be 0
  • *
  • If neither the {@link AMDMixedAttachmentSamples VK_AMD_mixed_attachment_samples} nor the {@link NVFramebufferMixedSamples VK_NV_framebuffer_mixed_samples} extensions are enabled, {@code imageView} members of {@code pDepthAttachment}, {@code pStencilAttachment}, and elements of {@code pColorAttachments} that are not {@link VK10#VK_NULL_HANDLE NULL_HANDLE} must have been created with the same {@code sampleCount}
  • *
  • If the {@code pNext} chain does not contain {@link VkDeviceGroupRenderPassBeginInfo} or its {@code deviceRenderAreaCount} member is equal to 0, {@code renderArea.offset.x} must be greater than or equal to 0
  • *
  • If the {@code pNext} chain does not contain {@link VkDeviceGroupRenderPassBeginInfo} or its {@code deviceRenderAreaCount} member is equal to 0, {@code renderArea.offset.y} must be greater than or equal to 0
  • *
  • If the {@code pNext} chain does not contain {@link VkDeviceGroupRenderPassBeginInfo} or its {@code deviceRenderAreaCount} member is equal to 0, the width of the {@code imageView} member of any element of {@code pColorAttachments}, {@code pDepthAttachment}, or {@code pStencilAttachment} that is not {@link VK10#VK_NULL_HANDLE NULL_HANDLE} must be greater than or equal to renderArea.offset.x + renderArea.extent.width
  • *
  • If the {@code pNext} chain does not contain {@link VkDeviceGroupRenderPassBeginInfo} or its {@code deviceRenderAreaCount} member is equal to 0, the height of the {@code imageView} member of any element of {@code pColorAttachments}, {@code pDepthAttachment}, or {@code pStencilAttachment} that is not {@link VK10#VK_NULL_HANDLE NULL_HANDLE} must be greater than or equal to renderArea.offset.y + renderArea.extent.height
  • *
  • If the {@code pNext} chain contains {@link VkDeviceGroupRenderPassBeginInfo}, the {@code offset.x} member of each element of {@code pDeviceRenderAreas} must be greater than or equal to 0
  • *
  • If the {@code pNext} chain contains {@link VkDeviceGroupRenderPassBeginInfo}, the {@code offset.y} member of each element of {@code pDeviceRenderAreas} must be greater than or equal to 0
  • *
  • If the {@code pNext} chain contains {@link VkDeviceGroupRenderPassBeginInfo}, the width of the {@code imageView} member of any element of {@code pColorAttachments}, {@code pDepthAttachment}, or {@code pStencilAttachment} that is not {@link VK10#VK_NULL_HANDLE NULL_HANDLE} must be greater than or equal to the sum of the {@code offset.x} and {@code extent.width} members of each element of {@code pDeviceRenderAreas}
  • *
  • If the {@code pNext} chain contains {@link VkDeviceGroupRenderPassBeginInfo}, the height of the {@code imageView} member of any element of {@code pColorAttachments}, {@code pDepthAttachment}, or {@code pStencilAttachment} that is not {@link VK10#VK_NULL_HANDLE NULL_HANDLE} must be greater than or equal to the sum of the {@code offset.y} and {@code extent.height} members of each element of {@code pDeviceRenderAreas}
  • *
  • If neither {@code pDepthAttachment} or {@code pStencilAttachment} are {@code NULL} and the {@code imageView} member of either structure is not {@link VK10#VK_NULL_HANDLE NULL_HANDLE}, the {@code imageView} member of each structure must be the same
  • *
  • If neither {@code pDepthAttachment} or {@code pStencilAttachment} are {@code NULL}, and the {@code resolveMode} member of each is not {@link VK12#VK_RESOLVE_MODE_NONE RESOLVE_MODE_NONE}, the {@code resolveImageView} member of each structure must be the same
  • *
  • If {@code colorAttachmentCount} is not 0 and the {@code imageView} member of an element of {@code pColorAttachments} is not {@link VK10#VK_NULL_HANDLE NULL_HANDLE}, that {@code imageView} must have been created with {@link VK10#VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT IMAGE_USAGE_COLOR_ATTACHMENT_BIT}
  • *
  • If {@code pDepthAttachment} is not {@code NULL} and {@code pDepthAttachment→imageView} is not {@link VK10#VK_NULL_HANDLE NULL_HANDLE}, {@code pDepthAttachment→imageView} must have been created with {@link VK10#VK_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT}
  • *
  • If {@code pStencilAttachment} is not {@code NULL} and {@code pStencilAttachment→imageView} is not {@link VK10#VK_NULL_HANDLE NULL_HANDLE}, {@code pStencilAttachment→imageView} must have been created with a stencil usage including {@link VK10#VK_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT}
  • *
  • If {@code colorAttachmentCount} is not 0 and the {@code imageView} member of an element of {@code pColorAttachments} is not {@link VK10#VK_NULL_HANDLE NULL_HANDLE}, the {@code layout} member of that element of {@code pColorAttachments} must not be {@link VK10#VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL} or {@link VK10#VK_IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL}
  • *
  • If {@code colorAttachmentCount} is not 0 and the {@code imageView} member of an element of {@code pColorAttachments} is not {@link VK10#VK_NULL_HANDLE NULL_HANDLE}, if the {@code resolveMode} member of that element of {@code pColorAttachments} is not {@link VK12#VK_RESOLVE_MODE_NONE RESOLVE_MODE_NONE}, its {@code resolveImageLayout} member must not be {@link VK10#VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL} or {@link VK10#VK_IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL}
  • *
  • If {@code pDepthAttachment} is not {@code NULL} and {@code pDepthAttachment→imageView} is not {@link VK10#VK_NULL_HANDLE NULL_HANDLE}, {@code pDepthAttachment→layout} must not be {@link VK10#VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL}
  • *
  • If {@code pDepthAttachment} is not {@code NULL}, {@code pDepthAttachment→imageView} is not {@link VK10#VK_NULL_HANDLE NULL_HANDLE}, and {@code pDepthAttachment→resolveMode} is not {@link VK12#VK_RESOLVE_MODE_NONE RESOLVE_MODE_NONE}, {@code pDepthAttachment→resolveImageLayout} must not be {@link VK10#VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL}
  • *
  • If {@code pStencilAttachment} is not {@code NULL} and {@code pStencilAttachment→imageView} is not {@link VK10#VK_NULL_HANDLE NULL_HANDLE}, {@code pStencilAttachment→layout} must not be {@link VK10#VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL}
  • *
  • If {@code pStencilAttachment} is not {@code NULL}, {@code pStencilAttachment→imageView} is not {@link VK10#VK_NULL_HANDLE NULL_HANDLE}, and {@code pStencilAttachment→resolveMode} is not {@link VK12#VK_RESOLVE_MODE_NONE RESOLVE_MODE_NONE}, {@code pStencilAttachment→resolveImageLayout} must not be {@link VK10#VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL}
  • *
  • If {@code colorAttachmentCount} is not 0 and the {@code imageView} member of an element of {@code pColorAttachments} is not {@link VK10#VK_NULL_HANDLE NULL_HANDLE}, the {@code layout} member of that element of {@code pColorAttachments} must not be {@link VK11#VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL} or {@link VK11#VK_IMAGE_LAYOUT_DEPTH_ATTACHMENT_STENCIL_READ_ONLY_OPTIMAL IMAGE_LAYOUT_DEPTH_ATTACHMENT_STENCIL_READ_ONLY_OPTIMAL}
  • *
  • If {@code colorAttachmentCount} is not 0 and the {@code imageView} member of an element of {@code pColorAttachments} is not {@link VK10#VK_NULL_HANDLE NULL_HANDLE}, if the {@code resolveMode} member of that element of {@code pColorAttachments} is not {@link VK12#VK_RESOLVE_MODE_NONE RESOLVE_MODE_NONE}, its {@code resolveImageLayout} member must not be {@link VK11#VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL} or {@link VK11#VK_IMAGE_LAYOUT_DEPTH_ATTACHMENT_STENCIL_READ_ONLY_OPTIMAL IMAGE_LAYOUT_DEPTH_ATTACHMENT_STENCIL_READ_ONLY_OPTIMAL}
  • *
  • If {@code pDepthAttachment} is not {@code NULL}, {@code pDepthAttachment→imageView} is not {@link VK10#VK_NULL_HANDLE NULL_HANDLE}, and {@code pDepthAttachment→resolveMode} is not {@link VK12#VK_RESOLVE_MODE_NONE RESOLVE_MODE_NONE}, {@code pDepthAttachment→resolveImageLayout} must not be {@link VK11#VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL}
  • *
  • If {@code pStencilAttachment} is not {@code NULL}, {@code pStencilAttachment→imageView} is not {@link VK10#VK_NULL_HANDLE NULL_HANDLE}, and {@code pStencilAttachment→resolveMode} is not {@link VK12#VK_RESOLVE_MODE_NONE RESOLVE_MODE_NONE}, {@code pStencilAttachment→resolveImageLayout} must not be {@link VK11#VK_IMAGE_LAYOUT_DEPTH_ATTACHMENT_STENCIL_READ_ONLY_OPTIMAL IMAGE_LAYOUT_DEPTH_ATTACHMENT_STENCIL_READ_ONLY_OPTIMAL}
  • *
  • If {@code colorAttachmentCount} is not 0 and the {@code imageView} member of an element of {@code pColorAttachments} is not {@link VK10#VK_NULL_HANDLE NULL_HANDLE}, the {@code layout} member of that element of {@code pColorAttachments} must not be {@link VK12#VK_IMAGE_LAYOUT_DEPTH_ATTACHMENT_OPTIMAL IMAGE_LAYOUT_DEPTH_ATTACHMENT_OPTIMAL}, {@link VK12#VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_OPTIMAL IMAGE_LAYOUT_DEPTH_READ_ONLY_OPTIMAL}, {@link VK12#VK_IMAGE_LAYOUT_STENCIL_ATTACHMENT_OPTIMAL IMAGE_LAYOUT_STENCIL_ATTACHMENT_OPTIMAL}, or {@link VK12#VK_IMAGE_LAYOUT_STENCIL_READ_ONLY_OPTIMAL IMAGE_LAYOUT_STENCIL_READ_ONLY_OPTIMAL}
  • *
  • If {@code colorAttachmentCount} is not 0 and the {@code imageView} member of an element of {@code pColorAttachments} is not {@link VK10#VK_NULL_HANDLE NULL_HANDLE}, if the {@code resolveMode} member of that element of {@code pColorAttachments} is not {@link VK12#VK_RESOLVE_MODE_NONE RESOLVE_MODE_NONE}, its {@code resolveImageLayout} member must not be {@link VK12#VK_IMAGE_LAYOUT_DEPTH_ATTACHMENT_OPTIMAL IMAGE_LAYOUT_DEPTH_ATTACHMENT_OPTIMAL}, {@link VK12#VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_OPTIMAL IMAGE_LAYOUT_DEPTH_READ_ONLY_OPTIMAL}, {@link VK12#VK_IMAGE_LAYOUT_STENCIL_ATTACHMENT_OPTIMAL IMAGE_LAYOUT_STENCIL_ATTACHMENT_OPTIMAL}, or {@link VK12#VK_IMAGE_LAYOUT_STENCIL_READ_ONLY_OPTIMAL IMAGE_LAYOUT_STENCIL_READ_ONLY_OPTIMAL}
  • *
  • If {@code pDepthAttachment} is not {@code NULL} and {@code pDepthAttachment→imageView} is not {@link VK10#VK_NULL_HANDLE NULL_HANDLE}, {@code pDepthAttachment→resolveMode} must be one of the bits set in {@link VkPhysicalDeviceDepthStencilResolveProperties}{@code ::supportedDepthResolveModes}
  • *
  • If {@code pStencilAttachment} is not {@code NULL} and {@code pStencilAttachment→imageView} is not {@link VK10#VK_NULL_HANDLE NULL_HANDLE}, {@code pStencilAttachment→resolveMode} must be one of the bits set in {@link VkPhysicalDeviceDepthStencilResolveProperties}{@code ::supportedStencilResolveModes}
  • *
  • If {@code pDepthAttachment} or {@code pStencilAttachment} are both not {@code NULL}, {@code pDepthAttachment→imageView} and {@code pStencilAttachment→imageView} are both not {@link VK10#VK_NULL_HANDLE NULL_HANDLE}, and {@link VkPhysicalDeviceDepthStencilResolveProperties}{@code ::independentResolveNone} is {@link VK10#VK_FALSE FALSE}, the {@code resolveMode} of both structures must be the same value
  • *
  • If {@code pDepthAttachment} or {@code pStencilAttachment} are both not {@code NULL}, {@code pDepthAttachment→imageView} and {@code pStencilAttachment→imageView} are both not {@link VK10#VK_NULL_HANDLE NULL_HANDLE}, {@link VkPhysicalDeviceDepthStencilResolveProperties}{@code ::independentResolve} is {@link VK10#VK_FALSE FALSE}, and the {@code resolveMode} of neither structure is {@link VK12#VK_RESOLVE_MODE_NONE RESOLVE_MODE_NONE}, the {@code resolveMode} of both structures must be the same value
  • *
  • {@code colorAttachmentCount} must be less than or equal to {@link VkPhysicalDeviceLimits}{@code ::maxColorAttachments}
  • *
  • If the {@code imageView} member of a {@link VkRenderingFragmentDensityMapAttachmentInfoEXT} structure included in the {@code pNext} chain is not {@link VK10#VK_NULL_HANDLE NULL_HANDLE}, and non-subsample image feature is not enabled, valid {@code imageView} and {@code resolveImageView} members of {@code pDepthAttachment}, {@code pStencilAttachment}, and each element of {@code pColorAttachments} must be a {@code VkImageView} created with {@link EXTFragmentDensityMap#VK_IMAGE_CREATE_SUBSAMPLED_BIT_EXT IMAGE_CREATE_SUBSAMPLED_BIT_EXT}
  • *
  • If the {@code imageView} member of a {@link VkRenderingFragmentDensityMapAttachmentInfoEXT} structure included in the {@code pNext} chain is not {@link VK10#VK_NULL_HANDLE NULL_HANDLE}, and {@code viewMask} is not 0, {@code imageView} must have a {@code layerCount} greater than or equal to the index of the most significant bit in {@code viewMask}
  • *
  • If the {@code imageView} member of a {@link VkRenderingFragmentDensityMapAttachmentInfoEXT} structure included in the {@code pNext} chain is not {@link VK10#VK_NULL_HANDLE NULL_HANDLE}, and {@code viewMask} is 0, {@code imageView} must have a {@code layerCount} equal to 1
  • *
  • If the {@code pNext} chain does not contain {@link VkDeviceGroupRenderPassBeginInfo} or its {@code deviceRenderAreaCount} member is equal to 0 and the {@code imageView} member of a {@link VkRenderingFragmentDensityMapAttachmentInfoEXT} structure included in the {@code pNext} chain is not {@link VK10#VK_NULL_HANDLE NULL_HANDLE}, {@code imageView} must have a width greater than or equal to ceil((renderAreax+renderAreawidth) / maxFragmentDensityTexelSizewidth)
  • *
  • If the {@code pNext} chain contains a {@link VkDeviceGroupRenderPassBeginInfo} structure, its {@code deviceRenderAreaCount} member is not 0, and the {@code imageView} member of a {@link VkRenderingFragmentDensityMapAttachmentInfoEXT} structure included in the {@code pNext} chain is not {@link VK10#VK_NULL_HANDLE NULL_HANDLE}, {@code imageView} must have a width greater than or equal to ceil((pDeviceRenderAreasx+pDeviceRenderAreaswidth) / maxFragmentDensityTexelSizewidth) for each element of {@code pDeviceRenderAreas}
  • *
  • If the {@code pNext} chain does not contain {@link VkDeviceGroupRenderPassBeginInfo} or its {@code deviceRenderAreaCount} member is equal to 0 and the {@code imageView} member of a {@link VkRenderingFragmentDensityMapAttachmentInfoEXT} structure included in the {@code pNext} chain is not {@link VK10#VK_NULL_HANDLE NULL_HANDLE}, {@code imageView} must have a height greater than or equal to ceil((renderAreay+renderAreaheight) / maxFragmentDensityTexelSizeheight)
  • *
  • If the {@code pNext} chain contains a {@link VkDeviceGroupRenderPassBeginInfo} structure, its {@code deviceRenderAreaCount} member is not 0, and the {@code imageView} member of a {@link VkRenderingFragmentDensityMapAttachmentInfoEXT} structure included in the {@code pNext} chain is not {@link VK10#VK_NULL_HANDLE NULL_HANDLE}, {@code imageView} must have a height greater than or equal to ceil((pDeviceRenderAreasy+pDeviceRenderAreasheight) / maxFragmentDensityTexelSizeheight) for each element of {@code pDeviceRenderAreas}
  • *
  • If the {@code imageView} member of a {@link VkRenderingFragmentDensityMapAttachmentInfoEXT} structure included in the {@code pNext} chain is not {@link VK10#VK_NULL_HANDLE NULL_HANDLE}, it must not be equal to the {@code imageView} or {@code resolveImageView} member of {@code pDepthAttachment}, {@code pStencilAttachment}, or any element of {@code pColorAttachments}
  • *
  • If the {@code pNext} chain does not contain {@link VkDeviceGroupRenderPassBeginInfo} or its {@code deviceRenderAreaCount} member is equal to 0 and the {@code imageView} member of a {@link VkRenderingFragmentShadingRateAttachmentInfoKHR} structure included in the {@code pNext} chain is not {@link VK10#VK_NULL_HANDLE NULL_HANDLE}, {@code imageView} must have a width greater than or equal to ceil((renderAreax+renderAreawidth) / shadingRateAttachmentTexelSizewidth)
  • *
  • If the {@code pNext} chain contains a {@link VkDeviceGroupRenderPassBeginInfo} structure, its {@code deviceRenderAreaCount} member is not 0, and the {@code imageView} member of a {@link VkRenderingFragmentShadingRateAttachmentInfoKHR} structure included in the {@code pNext} chain is not {@link VK10#VK_NULL_HANDLE NULL_HANDLE}, {@code imageView} must have a width greater than or equal to ceil((pDeviceRenderAreasx+pDeviceRenderAreaswidth) / shadingRateAttachmentTexelSizewidth) for each element of {@code pDeviceRenderAreas}
  • *
  • If the {@code pNext} chain does not contain {@link VkDeviceGroupRenderPassBeginInfo} or its {@code deviceRenderAreaCount} member is equal to 0 and the {@code imageView} member of a {@link VkRenderingFragmentShadingRateAttachmentInfoKHR} structure included in the {@code pNext} chain is not {@link VK10#VK_NULL_HANDLE NULL_HANDLE}, {@code imageView} must have a height greater than or equal to ceil((renderAreay+renderAreaheight) / shadingRateAttachmentTexelSizeheight)
  • *
  • If the {@code pNext} chain contains a {@link VkDeviceGroupRenderPassBeginInfo} structure, its {@code deviceRenderAreaCount} member is not 0, and the {@code imageView} member of a {@link VkRenderingFragmentShadingRateAttachmentInfoKHR} structure included in the {@code pNext} chain is not {@link VK10#VK_NULL_HANDLE NULL_HANDLE}, {@code imageView} must have a height greater than or equal to ceil((pDeviceRenderAreasy+pDeviceRenderAreasheight) / shadingRateAttachmentTexelSizeheight) for each element of {@code pDeviceRenderAreas}
  • *
  • If the {@code imageView} member of a {@link VkRenderingFragmentShadingRateAttachmentInfoKHR} structure included in the {@code pNext} chain is not {@link VK10#VK_NULL_HANDLE NULL_HANDLE}, and {@code viewMask} is 0, {@code imageView} must have a {@code layerCount} that is either equal to 1 or greater than or equal to {@code layerCount}
  • *
  • If the {@code imageView} member of a {@link VkRenderingFragmentShadingRateAttachmentInfoKHR} structure included in the {@code pNext} chain is not {@link VK10#VK_NULL_HANDLE NULL_HANDLE}, and {@code viewMask} is not 0, {@code imageView} must have a {@code layerCount} that either equal to 1 or greater than or equal to the index of the most significant bit in {@code viewMask}
  • *
  • If the {@code imageView} member of a {@link VkRenderingFragmentShadingRateAttachmentInfoKHR} structure included in the {@code pNext} chain is not {@link VK10#VK_NULL_HANDLE NULL_HANDLE}, it must not be equal to the {@code imageView} or {@code resolveImageView} member of {@code pDepthAttachment}, {@code pStencilAttachment}, or any element of {@code pColorAttachments}
  • *
  • If the {@code imageView} member of a {@link VkRenderingFragmentShadingRateAttachmentInfoKHR} structure included in the {@code pNext} chain is not {@link VK10#VK_NULL_HANDLE NULL_HANDLE}, it must not be equal to the {@code imageView} member of a {@link VkRenderingFragmentDensityMapAttachmentInfoEXT} structure included in the {@code pNext} chain
  • *
  • If the {@code multiview} feature is not enabled, {@code viewMask} must be 0
  • *
  • The index of the most significant bit in {@code viewMask} must be less than {@code maxMultiviewViewCount}
  • *
* *
Valid Usage (Implicit)
* *
    *
  • {@code sType} must be {@link KHRDynamicRendering#VK_STRUCTURE_TYPE_RENDERING_INFO_KHR STRUCTURE_TYPE_RENDERING_INFO_KHR}
  • *
  • Each {@code pNext} member of any structure (including this one) in the {@code pNext} chain must be either {@code NULL} or a pointer to a valid instance of {@link VkDeviceGroupRenderPassBeginInfo}, {@link VkMultiviewPerViewAttributesInfoNVX}, {@link VkRenderingFragmentDensityMapAttachmentInfoEXT}, or {@link VkRenderingFragmentShadingRateAttachmentInfoKHR}
  • *
  • The {@code sType} value of each struct in the {@code pNext} chain must be unique
  • *
  • {@code flags} must be a valid combination of {@code VkRenderingFlagBitsKHR} values
  • *
  • If {@code colorAttachmentCount} is not 0, {@code pColorAttachments} must be a valid pointer to an array of {@code colorAttachmentCount} valid {@link VkRenderingAttachmentInfoKHR} structures
  • *
  • If {@code pDepthAttachment} is not {@code NULL}, {@code pDepthAttachment} must be a valid pointer to a valid {@link VkRenderingAttachmentInfoKHR} structure
  • *
  • If {@code pStencilAttachment} is not {@code NULL}, {@code pStencilAttachment} must be a valid pointer to a valid {@link VkRenderingAttachmentInfoKHR} structure
  • *
* *
See Also
* *

{@link VkRect2D}, {@link VkRenderingAttachmentInfoKHR}, {@link KHRDynamicRendering#vkCmdBeginRenderingKHR CmdBeginRenderingKHR}

* *

Layout

* *

 * struct VkRenderingInfoKHR {
 *     VkStructureType {@link #sType};
 *     void const * {@link #pNext};
 *     VkRenderingFlagsKHR {@link #flags};
 *     {@link VkRect2D VkRect2D} {@link #renderArea};
 *     uint32_t {@link #layerCount};
 *     uint32_t {@link #viewMask};
 *     uint32_t {@link #colorAttachmentCount};
 *     {@link VkRenderingAttachmentInfoKHR VkRenderingAttachmentInfoKHR} const * {@link #pColorAttachments};
 *     {@link VkRenderingAttachmentInfoKHR VkRenderingAttachmentInfoKHR} const * {@link #pDepthAttachment};
 *     {@link VkRenderingAttachmentInfoKHR VkRenderingAttachmentInfoKHR} const * {@link #pStencilAttachment};
 * }
*/ public class VkRenderingInfoKHR extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; /** The struct alignment in bytes. */ public static final int ALIGNOF; /** The struct member offsets. */ public static final int STYPE, PNEXT, FLAGS, RENDERAREA, LAYERCOUNT, VIEWMASK, COLORATTACHMENTCOUNT, PCOLORATTACHMENTS, PDEPTHATTACHMENT, PSTENCILATTACHMENT; static { Layout layout = __struct( __member(4), __member(POINTER_SIZE), __member(4), __member(VkRect2D.SIZEOF, VkRect2D.ALIGNOF), __member(4), __member(4), __member(4), __member(POINTER_SIZE), __member(POINTER_SIZE), __member(POINTER_SIZE) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); STYPE = layout.offsetof(0); PNEXT = layout.offsetof(1); FLAGS = layout.offsetof(2); RENDERAREA = layout.offsetof(3); LAYERCOUNT = layout.offsetof(4); VIEWMASK = layout.offsetof(5); COLORATTACHMENTCOUNT = layout.offsetof(6); PCOLORATTACHMENTS = layout.offsetof(7); PDEPTHATTACHMENT = layout.offsetof(8); PSTENCILATTACHMENT = layout.offsetof(9); } /** * Creates a {@code VkRenderingInfoKHR} instance at the current position of the specified {@link ByteBuffer} container. Changes to the buffer's content will be * visible to the struct instance and vice versa. * *

The created instance holds a strong reference to the container object.

*/ public VkRenderingInfoKHR(ByteBuffer container) { super(memAddress(container), __checkContainer(container, SIZEOF)); } @Override public int sizeof() { return SIZEOF; } /** the type of this structure. */ @NativeType("VkStructureType") public int sType() { return nsType(address()); } /** {@code NULL} or a pointer to a structure extending this structure. */ @NativeType("void const *") public long pNext() { return npNext(address()); } /** a bitmask of {@code VkRenderingFlagBitsKHR}. */ @NativeType("VkRenderingFlagsKHR") public int flags() { return nflags(address()); } /** the render area that is affected by the render pass instance. */ public VkRect2D renderArea() { return nrenderArea(address()); } /** the number of layers rendered to in each attachment when {@code viewMask} is 0. */ @NativeType("uint32_t") public int layerCount() { return nlayerCount(address()); } /** the view mask indicating the indices of attachment layers that will be rendered when it is not 0. */ @NativeType("uint32_t") public int viewMask() { return nviewMask(address()); } /** the number of elements in {@code pColorAttachments}. */ @NativeType("uint32_t") public int colorAttachmentCount() { return ncolorAttachmentCount(address()); } /** a pointer to an array of {@code colorAttachmentCount} {@link VkRenderingAttachmentInfoKHR} structures describing any color attachments used. */ @Nullable @NativeType("VkRenderingAttachmentInfoKHR const *") public VkRenderingAttachmentInfoKHR.Buffer pColorAttachments() { return npColorAttachments(address()); } /** a pointer to a {@link VkRenderingAttachmentInfoKHR} structure describing a depth attachment. */ @Nullable @NativeType("VkRenderingAttachmentInfoKHR const *") public VkRenderingAttachmentInfoKHR pDepthAttachment() { return npDepthAttachment(address()); } /** a pointer to a {@link VkRenderingAttachmentInfoKHR} structure describing a stencil attachment. */ @Nullable @NativeType("VkRenderingAttachmentInfoKHR const *") public VkRenderingAttachmentInfoKHR pStencilAttachment() { return npStencilAttachment(address()); } /** Sets the specified value to the {@link #sType} field. */ public VkRenderingInfoKHR sType(@NativeType("VkStructureType") int value) { nsType(address(), value); return this; } /** Sets the {@link KHRDynamicRendering#VK_STRUCTURE_TYPE_RENDERING_INFO_KHR STRUCTURE_TYPE_RENDERING_INFO_KHR} value to the {@link #sType} field. */ public VkRenderingInfoKHR sType$Default() { return sType(KHRDynamicRendering.VK_STRUCTURE_TYPE_RENDERING_INFO_KHR); } /** Sets the specified value to the {@link #pNext} field. */ public VkRenderingInfoKHR pNext(@NativeType("void const *") long value) { npNext(address(), value); return this; } /** Prepends the specified {@link VkDeviceGroupRenderPassBeginInfo} value to the {@code pNext} chain. */ public VkRenderingInfoKHR pNext(VkDeviceGroupRenderPassBeginInfo value) { return this.pNext(value.pNext(this.pNext()).address()); } /** Prepends the specified {@link VkDeviceGroupRenderPassBeginInfoKHR} value to the {@code pNext} chain. */ public VkRenderingInfoKHR pNext(VkDeviceGroupRenderPassBeginInfoKHR value) { return this.pNext(value.pNext(this.pNext()).address()); } /** Prepends the specified {@link VkMultiviewPerViewAttributesInfoNVX} value to the {@code pNext} chain. */ public VkRenderingInfoKHR pNext(VkMultiviewPerViewAttributesInfoNVX value) { return this.pNext(value.pNext(this.pNext()).address()); } /** Prepends the specified {@link VkRenderingFragmentDensityMapAttachmentInfoEXT} value to the {@code pNext} chain. */ public VkRenderingInfoKHR pNext(VkRenderingFragmentDensityMapAttachmentInfoEXT value) { return this.pNext(value.pNext(this.pNext()).address()); } /** Prepends the specified {@link VkRenderingFragmentShadingRateAttachmentInfoKHR} value to the {@code pNext} chain. */ public VkRenderingInfoKHR pNext(VkRenderingFragmentShadingRateAttachmentInfoKHR value) { return this.pNext(value.pNext(this.pNext()).address()); } /** Sets the specified value to the {@link #flags} field. */ public VkRenderingInfoKHR flags(@NativeType("VkRenderingFlagsKHR") int value) { nflags(address(), value); return this; } /** Copies the specified {@link VkRect2D} to the {@link #renderArea} field. */ public VkRenderingInfoKHR renderArea(VkRect2D value) { nrenderArea(address(), value); return this; } /** Passes the {@link #renderArea} field to the specified {@link java.util.function.Consumer Consumer}. */ public VkRenderingInfoKHR renderArea(java.util.function.Consumer consumer) { consumer.accept(renderArea()); return this; } /** Sets the specified value to the {@link #layerCount} field. */ public VkRenderingInfoKHR layerCount(@NativeType("uint32_t") int value) { nlayerCount(address(), value); return this; } /** Sets the specified value to the {@link #viewMask} field. */ public VkRenderingInfoKHR viewMask(@NativeType("uint32_t") int value) { nviewMask(address(), value); return this; } /** Sets the address of the specified {@link VkRenderingAttachmentInfoKHR.Buffer} to the {@link #pColorAttachments} field. */ public VkRenderingInfoKHR pColorAttachments(@Nullable @NativeType("VkRenderingAttachmentInfoKHR const *") VkRenderingAttachmentInfoKHR.Buffer value) { npColorAttachments(address(), value); return this; } /** Sets the address of the specified {@link VkRenderingAttachmentInfoKHR} to the {@link #pDepthAttachment} field. */ public VkRenderingInfoKHR pDepthAttachment(@Nullable @NativeType("VkRenderingAttachmentInfoKHR const *") VkRenderingAttachmentInfoKHR value) { npDepthAttachment(address(), value); return this; } /** Sets the address of the specified {@link VkRenderingAttachmentInfoKHR} to the {@link #pStencilAttachment} field. */ public VkRenderingInfoKHR pStencilAttachment(@Nullable @NativeType("VkRenderingAttachmentInfoKHR const *") VkRenderingAttachmentInfoKHR value) { npStencilAttachment(address(), value); return this; } /** Initializes this struct with the specified values. */ public VkRenderingInfoKHR set( int sType, long pNext, int flags, VkRect2D renderArea, int layerCount, int viewMask, @Nullable VkRenderingAttachmentInfoKHR.Buffer pColorAttachments, @Nullable VkRenderingAttachmentInfoKHR pDepthAttachment, @Nullable VkRenderingAttachmentInfoKHR pStencilAttachment ) { sType(sType); pNext(pNext); flags(flags); renderArea(renderArea); layerCount(layerCount); viewMask(viewMask); pColorAttachments(pColorAttachments); pDepthAttachment(pDepthAttachment); pStencilAttachment(pStencilAttachment); return this; } /** * Copies the specified struct data to this struct. * * @param src the source struct * * @return this struct */ public VkRenderingInfoKHR set(VkRenderingInfoKHR src) { memCopy(src.address(), address(), SIZEOF); return this; } // ----------------------------------- /** Returns a new {@code VkRenderingInfoKHR} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static VkRenderingInfoKHR malloc() { return wrap(VkRenderingInfoKHR.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code VkRenderingInfoKHR} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static VkRenderingInfoKHR calloc() { return wrap(VkRenderingInfoKHR.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code VkRenderingInfoKHR} instance allocated with {@link BufferUtils}. */ public static VkRenderingInfoKHR create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); return wrap(VkRenderingInfoKHR.class, memAddress(container), container); } /** Returns a new {@code VkRenderingInfoKHR} instance for the specified memory address. */ public static VkRenderingInfoKHR create(long address) { return wrap(VkRenderingInfoKHR.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static VkRenderingInfoKHR createSafe(long address) { return address == NULL ? null : wrap(VkRenderingInfoKHR.class, address); } /** * Returns a new {@link VkRenderingInfoKHR.Buffer} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. * * @param capacity the buffer capacity */ public static VkRenderingInfoKHR.Buffer malloc(int capacity) { return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** * Returns a new {@link VkRenderingInfoKHR.Buffer} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. * * @param capacity the buffer capacity */ public static VkRenderingInfoKHR.Buffer calloc(int capacity) { return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** * Returns a new {@link VkRenderingInfoKHR.Buffer} instance allocated with {@link BufferUtils}. * * @param capacity the buffer capacity */ public static VkRenderingInfoKHR.Buffer create(int capacity) { ByteBuffer container = __create(capacity, SIZEOF); return wrap(Buffer.class, memAddress(container), capacity, container); } /** * Create a {@link VkRenderingInfoKHR.Buffer} instance at the specified memory. * * @param address the memory address * @param capacity the buffer capacity */ public static VkRenderingInfoKHR.Buffer create(long address, int capacity) { return wrap(Buffer.class, address, capacity); } /** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static VkRenderingInfoKHR.Buffer createSafe(long address, int capacity) { return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** * Returns a new {@code VkRenderingInfoKHR} instance allocated on the specified {@link MemoryStack}. * * @param stack the stack from which to allocate */ public static VkRenderingInfoKHR malloc(MemoryStack stack) { return wrap(VkRenderingInfoKHR.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** * Returns a new {@code VkRenderingInfoKHR} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. * * @param stack the stack from which to allocate */ public static VkRenderingInfoKHR calloc(MemoryStack stack) { return wrap(VkRenderingInfoKHR.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** * Returns a new {@link VkRenderingInfoKHR.Buffer} instance allocated on the specified {@link MemoryStack}. * * @param stack the stack from which to allocate * @param capacity the buffer capacity */ public static VkRenderingInfoKHR.Buffer malloc(int capacity, MemoryStack stack) { return wrap(Buffer.class, stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity); } /** * Returns a new {@link VkRenderingInfoKHR.Buffer} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. * * @param stack the stack from which to allocate * @param capacity the buffer capacity */ public static VkRenderingInfoKHR.Buffer calloc(int capacity, MemoryStack stack) { return wrap(Buffer.class, stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity); } // ----------------------------------- /** Unsafe version of {@link #sType}. */ public static int nsType(long struct) { return UNSAFE.getInt(null, struct + VkRenderingInfoKHR.STYPE); } /** Unsafe version of {@link #pNext}. */ public static long npNext(long struct) { return memGetAddress(struct + VkRenderingInfoKHR.PNEXT); } /** Unsafe version of {@link #flags}. */ public static int nflags(long struct) { return UNSAFE.getInt(null, struct + VkRenderingInfoKHR.FLAGS); } /** Unsafe version of {@link #renderArea}. */ public static VkRect2D nrenderArea(long struct) { return VkRect2D.create(struct + VkRenderingInfoKHR.RENDERAREA); } /** Unsafe version of {@link #layerCount}. */ public static int nlayerCount(long struct) { return UNSAFE.getInt(null, struct + VkRenderingInfoKHR.LAYERCOUNT); } /** Unsafe version of {@link #viewMask}. */ public static int nviewMask(long struct) { return UNSAFE.getInt(null, struct + VkRenderingInfoKHR.VIEWMASK); } /** Unsafe version of {@link #colorAttachmentCount}. */ public static int ncolorAttachmentCount(long struct) { return UNSAFE.getInt(null, struct + VkRenderingInfoKHR.COLORATTACHMENTCOUNT); } /** Unsafe version of {@link #pColorAttachments}. */ @Nullable public static VkRenderingAttachmentInfoKHR.Buffer npColorAttachments(long struct) { return VkRenderingAttachmentInfoKHR.createSafe(memGetAddress(struct + VkRenderingInfoKHR.PCOLORATTACHMENTS), ncolorAttachmentCount(struct)); } /** Unsafe version of {@link #pDepthAttachment}. */ @Nullable public static VkRenderingAttachmentInfoKHR npDepthAttachment(long struct) { return VkRenderingAttachmentInfoKHR.createSafe(memGetAddress(struct + VkRenderingInfoKHR.PDEPTHATTACHMENT)); } /** Unsafe version of {@link #pStencilAttachment}. */ @Nullable public static VkRenderingAttachmentInfoKHR npStencilAttachment(long struct) { return VkRenderingAttachmentInfoKHR.createSafe(memGetAddress(struct + VkRenderingInfoKHR.PSTENCILATTACHMENT)); } /** Unsafe version of {@link #sType(int) sType}. */ public static void nsType(long struct, int value) { UNSAFE.putInt(null, struct + VkRenderingInfoKHR.STYPE, value); } /** Unsafe version of {@link #pNext(long) pNext}. */ public static void npNext(long struct, long value) { memPutAddress(struct + VkRenderingInfoKHR.PNEXT, value); } /** Unsafe version of {@link #flags(int) flags}. */ public static void nflags(long struct, int value) { UNSAFE.putInt(null, struct + VkRenderingInfoKHR.FLAGS, value); } /** Unsafe version of {@link #renderArea(VkRect2D) renderArea}. */ public static void nrenderArea(long struct, VkRect2D value) { memCopy(value.address(), struct + VkRenderingInfoKHR.RENDERAREA, VkRect2D.SIZEOF); } /** Unsafe version of {@link #layerCount(int) layerCount}. */ public static void nlayerCount(long struct, int value) { UNSAFE.putInt(null, struct + VkRenderingInfoKHR.LAYERCOUNT, value); } /** Unsafe version of {@link #viewMask(int) viewMask}. */ public static void nviewMask(long struct, int value) { UNSAFE.putInt(null, struct + VkRenderingInfoKHR.VIEWMASK, value); } /** Sets the specified value to the {@code colorAttachmentCount} field of the specified {@code struct}. */ public static void ncolorAttachmentCount(long struct, int value) { UNSAFE.putInt(null, struct + VkRenderingInfoKHR.COLORATTACHMENTCOUNT, value); } /** Unsafe version of {@link #pColorAttachments(VkRenderingAttachmentInfoKHR.Buffer) pColorAttachments}. */ public static void npColorAttachments(long struct, @Nullable VkRenderingAttachmentInfoKHR.Buffer value) { memPutAddress(struct + VkRenderingInfoKHR.PCOLORATTACHMENTS, memAddressSafe(value)); ncolorAttachmentCount(struct, value == null ? 0 : value.remaining()); } /** Unsafe version of {@link #pDepthAttachment(VkRenderingAttachmentInfoKHR) pDepthAttachment}. */ public static void npDepthAttachment(long struct, @Nullable VkRenderingAttachmentInfoKHR value) { memPutAddress(struct + VkRenderingInfoKHR.PDEPTHATTACHMENT, memAddressSafe(value)); } /** Unsafe version of {@link #pStencilAttachment(VkRenderingAttachmentInfoKHR) pStencilAttachment}. */ public static void npStencilAttachment(long struct, @Nullable VkRenderingAttachmentInfoKHR value) { memPutAddress(struct + VkRenderingInfoKHR.PSTENCILATTACHMENT, memAddressSafe(value)); } /** * Validates pointer members that should not be {@code NULL}. * * @param struct the struct to validate */ public static void validate(long struct) { if (ncolorAttachmentCount(struct) != 0) { check(memGetAddress(struct + VkRenderingInfoKHR.PCOLORATTACHMENTS)); } } // ----------------------------------- /** An array of {@link VkRenderingInfoKHR} structs. */ public static class Buffer extends StructBuffer implements NativeResource { private static final VkRenderingInfoKHR ELEMENT_FACTORY = VkRenderingInfoKHR.create(-1L); /** * Creates a new {@code VkRenderingInfoKHR.Buffer} instance backed by the specified container. * * Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values * will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided * by {@link VkRenderingInfoKHR#SIZEOF}, and its mark will be undefined. * *

The created buffer instance holds a strong reference to the container object.

*/ public Buffer(ByteBuffer container) { super(container, container.remaining() / SIZEOF); } public Buffer(long address, int cap) { super(address, null, -1, 0, cap, cap); } Buffer(long address, @Nullable ByteBuffer container, int mark, int pos, int lim, int cap) { super(address, container, mark, pos, lim, cap); } @Override protected Buffer self() { return this; } @Override protected VkRenderingInfoKHR getElementFactory() { return ELEMENT_FACTORY; } /** @return the value of the {@link VkRenderingInfoKHR#sType} field. */ @NativeType("VkStructureType") public int sType() { return VkRenderingInfoKHR.nsType(address()); } /** @return the value of the {@link VkRenderingInfoKHR#pNext} field. */ @NativeType("void const *") public long pNext() { return VkRenderingInfoKHR.npNext(address()); } /** @return the value of the {@link VkRenderingInfoKHR#flags} field. */ @NativeType("VkRenderingFlagsKHR") public int flags() { return VkRenderingInfoKHR.nflags(address()); } /** @return a {@link VkRect2D} view of the {@link VkRenderingInfoKHR#renderArea} field. */ public VkRect2D renderArea() { return VkRenderingInfoKHR.nrenderArea(address()); } /** @return the value of the {@link VkRenderingInfoKHR#layerCount} field. */ @NativeType("uint32_t") public int layerCount() { return VkRenderingInfoKHR.nlayerCount(address()); } /** @return the value of the {@link VkRenderingInfoKHR#viewMask} field. */ @NativeType("uint32_t") public int viewMask() { return VkRenderingInfoKHR.nviewMask(address()); } /** @return the value of the {@link VkRenderingInfoKHR#colorAttachmentCount} field. */ @NativeType("uint32_t") public int colorAttachmentCount() { return VkRenderingInfoKHR.ncolorAttachmentCount(address()); } /** @return a {@link VkRenderingAttachmentInfoKHR.Buffer} view of the struct array pointed to by the {@link VkRenderingInfoKHR#pColorAttachments} field. */ @Nullable @NativeType("VkRenderingAttachmentInfoKHR const *") public VkRenderingAttachmentInfoKHR.Buffer pColorAttachments() { return VkRenderingInfoKHR.npColorAttachments(address()); } /** @return a {@link VkRenderingAttachmentInfoKHR} view of the struct pointed to by the {@link VkRenderingInfoKHR#pDepthAttachment} field. */ @Nullable @NativeType("VkRenderingAttachmentInfoKHR const *") public VkRenderingAttachmentInfoKHR pDepthAttachment() { return VkRenderingInfoKHR.npDepthAttachment(address()); } /** @return a {@link VkRenderingAttachmentInfoKHR} view of the struct pointed to by the {@link VkRenderingInfoKHR#pStencilAttachment} field. */ @Nullable @NativeType("VkRenderingAttachmentInfoKHR const *") public VkRenderingAttachmentInfoKHR pStencilAttachment() { return VkRenderingInfoKHR.npStencilAttachment(address()); } /** Sets the specified value to the {@link VkRenderingInfoKHR#sType} field. */ public VkRenderingInfoKHR.Buffer sType(@NativeType("VkStructureType") int value) { VkRenderingInfoKHR.nsType(address(), value); return this; } /** Sets the {@link KHRDynamicRendering#VK_STRUCTURE_TYPE_RENDERING_INFO_KHR STRUCTURE_TYPE_RENDERING_INFO_KHR} value to the {@link VkRenderingInfoKHR#sType} field. */ public VkRenderingInfoKHR.Buffer sType$Default() { return sType(KHRDynamicRendering.VK_STRUCTURE_TYPE_RENDERING_INFO_KHR); } /** Sets the specified value to the {@link VkRenderingInfoKHR#pNext} field. */ public VkRenderingInfoKHR.Buffer pNext(@NativeType("void const *") long value) { VkRenderingInfoKHR.npNext(address(), value); return this; } /** Prepends the specified {@link VkDeviceGroupRenderPassBeginInfo} value to the {@code pNext} chain. */ public VkRenderingInfoKHR.Buffer pNext(VkDeviceGroupRenderPassBeginInfo value) { return this.pNext(value.pNext(this.pNext()).address()); } /** Prepends the specified {@link VkDeviceGroupRenderPassBeginInfoKHR} value to the {@code pNext} chain. */ public VkRenderingInfoKHR.Buffer pNext(VkDeviceGroupRenderPassBeginInfoKHR value) { return this.pNext(value.pNext(this.pNext()).address()); } /** Prepends the specified {@link VkMultiviewPerViewAttributesInfoNVX} value to the {@code pNext} chain. */ public VkRenderingInfoKHR.Buffer pNext(VkMultiviewPerViewAttributesInfoNVX value) { return this.pNext(value.pNext(this.pNext()).address()); } /** Prepends the specified {@link VkRenderingFragmentDensityMapAttachmentInfoEXT} value to the {@code pNext} chain. */ public VkRenderingInfoKHR.Buffer pNext(VkRenderingFragmentDensityMapAttachmentInfoEXT value) { return this.pNext(value.pNext(this.pNext()).address()); } /** Prepends the specified {@link VkRenderingFragmentShadingRateAttachmentInfoKHR} value to the {@code pNext} chain. */ public VkRenderingInfoKHR.Buffer pNext(VkRenderingFragmentShadingRateAttachmentInfoKHR value) { return this.pNext(value.pNext(this.pNext()).address()); } /** Sets the specified value to the {@link VkRenderingInfoKHR#flags} field. */ public VkRenderingInfoKHR.Buffer flags(@NativeType("VkRenderingFlagsKHR") int value) { VkRenderingInfoKHR.nflags(address(), value); return this; } /** Copies the specified {@link VkRect2D} to the {@link VkRenderingInfoKHR#renderArea} field. */ public VkRenderingInfoKHR.Buffer renderArea(VkRect2D value) { VkRenderingInfoKHR.nrenderArea(address(), value); return this; } /** Passes the {@link VkRenderingInfoKHR#renderArea} field to the specified {@link java.util.function.Consumer Consumer}. */ public VkRenderingInfoKHR.Buffer renderArea(java.util.function.Consumer consumer) { consumer.accept(renderArea()); return this; } /** Sets the specified value to the {@link VkRenderingInfoKHR#layerCount} field. */ public VkRenderingInfoKHR.Buffer layerCount(@NativeType("uint32_t") int value) { VkRenderingInfoKHR.nlayerCount(address(), value); return this; } /** Sets the specified value to the {@link VkRenderingInfoKHR#viewMask} field. */ public VkRenderingInfoKHR.Buffer viewMask(@NativeType("uint32_t") int value) { VkRenderingInfoKHR.nviewMask(address(), value); return this; } /** Sets the address of the specified {@link VkRenderingAttachmentInfoKHR.Buffer} to the {@link VkRenderingInfoKHR#pColorAttachments} field. */ public VkRenderingInfoKHR.Buffer pColorAttachments(@Nullable @NativeType("VkRenderingAttachmentInfoKHR const *") VkRenderingAttachmentInfoKHR.Buffer value) { VkRenderingInfoKHR.npColorAttachments(address(), value); return this; } /** Sets the address of the specified {@link VkRenderingAttachmentInfoKHR} to the {@link VkRenderingInfoKHR#pDepthAttachment} field. */ public VkRenderingInfoKHR.Buffer pDepthAttachment(@Nullable @NativeType("VkRenderingAttachmentInfoKHR const *") VkRenderingAttachmentInfoKHR value) { VkRenderingInfoKHR.npDepthAttachment(address(), value); return this; } /** Sets the address of the specified {@link VkRenderingAttachmentInfoKHR} to the {@link VkRenderingInfoKHR#pStencilAttachment} field. */ public VkRenderingInfoKHR.Buffer pStencilAttachment(@Nullable @NativeType("VkRenderingAttachmentInfoKHR const *") VkRenderingAttachmentInfoKHR value) { VkRenderingInfoKHR.npStencilAttachment(address(), value); return this; } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy