org.lwjgl.vulkan.VkSubpassDependency Maven / Gradle / Ivy
Show all versions of lwjgl-vulkan Show documentation
/*
* 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.MemoryUtil.*;
import static org.lwjgl.system.MemoryStack.*;
/**
* Structure specifying a subpass dependency.
*
* Description
*
* If {@code srcSubpass} is equal to {@code dstSubpass} then the {@link VkSubpassDependency} describes a subpass self-dependency, and only constrains the pipeline barriers allowed within a subpass instance. Otherwise, when a render pass instance which includes a subpass dependency is submitted to a queue, it defines a memory dependency between the subpasses identified by {@code srcSubpass} and {@code dstSubpass}.
*
* If {@code srcSubpass} is equal to {@link VK10#VK_SUBPASS_EXTERNAL SUBPASS_EXTERNAL}, the first synchronization scope includes commands that occur earlier in submission order than the {@link VK10#vkCmdBeginRenderPass CmdBeginRenderPass} used to begin the render pass instance. Otherwise, the first set of commands includes all commands submitted as part of the subpass instance identified by {@code srcSubpass} and any load, store or multisample resolve operations on attachments used in {@code srcSubpass}. In either case, the first synchronization scope is limited to operations on the pipeline stages determined by the source stage mask specified by {@code srcStageMask}.
*
* If {@code dstSubpass} is equal to {@link VK10#VK_SUBPASS_EXTERNAL SUBPASS_EXTERNAL}, the second synchronization scope includes commands that occur later in submission order than the {@link VK10#vkCmdEndRenderPass CmdEndRenderPass} used to end the render pass instance. Otherwise, the second set of commands includes all commands submitted as part of the subpass instance identified by {@code dstSubpass} and any load, store or multisample resolve operations on attachments used in {@code dstSubpass}. In either case, the second synchronization scope is limited to operations on the pipeline stages determined by the destination stage mask specified by {@code dstStageMask}.
*
* The first access scope is limited to accesses in the pipeline stages determined by the source stage mask specified by {@code srcStageMask}. It is also limited to access types in the source access mask specified by {@code srcAccessMask}.
*
* The second access scope is limited to accesses in the pipeline stages determined by the destination stage mask specified by {@code dstStageMask}. It is also limited to access types in the destination access mask specified by {@code dstAccessMask}.
*
* The availability and visibility operations defined by a subpass dependency affect the execution of image layout transitions within the render pass.
*
* Note
*
* For non-attachment resources, the memory dependency expressed by subpass dependency is nearly identical to that of a {@link VkMemoryBarrier} (with matching {@code srcAccessMask} and {@code dstAccessMask} parameters) submitted as a part of a {@link VK10#vkCmdPipelineBarrier CmdPipelineBarrier} (with matching {@code srcStageMask} and {@code dstStageMask} parameters). The only difference being that its scopes are limited to the identified subpasses rather than potentially affecting everything before and after.
*
* For attachments however, subpass dependencies work more like a {@link VkImageMemoryBarrier} defined similarly to the {@link VkMemoryBarrier} above, the queue family indices set to {@link VK10#VK_QUEUE_FAMILY_IGNORED QUEUE_FAMILY_IGNORED}, and layouts as follows:
*
*
* - The equivalent to {@code oldLayout} is the attachment’s layout according to the subpass description for {@code srcSubpass}.
* - The equivalent to {@code newLayout} is the attachment’s layout according to the subpass description for {@code dstSubpass}.
*
*
*
* Valid Usage
*
*
* - If the geometry shaders feature is not enabled, {@code srcStageMask} must not contain {@link VK10#VK_PIPELINE_STAGE_GEOMETRY_SHADER_BIT PIPELINE_STAGE_GEOMETRY_SHADER_BIT}
* - If the geometry shaders feature is not enabled, {@code dstStageMask} must not contain {@link VK10#VK_PIPELINE_STAGE_GEOMETRY_SHADER_BIT PIPELINE_STAGE_GEOMETRY_SHADER_BIT}
* - If the tessellation shaders feature is not enabled, {@code srcStageMask} must not contain {@link VK10#VK_PIPELINE_STAGE_TESSELLATION_CONTROL_SHADER_BIT PIPELINE_STAGE_TESSELLATION_CONTROL_SHADER_BIT} or {@link VK10#VK_PIPELINE_STAGE_TESSELLATION_EVALUATION_SHADER_BIT PIPELINE_STAGE_TESSELLATION_EVALUATION_SHADER_BIT}
* - If the tessellation shaders feature is not enabled, {@code dstStageMask} must not contain {@link VK10#VK_PIPELINE_STAGE_TESSELLATION_CONTROL_SHADER_BIT PIPELINE_STAGE_TESSELLATION_CONTROL_SHADER_BIT} or {@link VK10#VK_PIPELINE_STAGE_TESSELLATION_EVALUATION_SHADER_BIT PIPELINE_STAGE_TESSELLATION_EVALUATION_SHADER_BIT}
* - {@code srcSubpass} must be less than or equal to {@code dstSubpass}, unless one of them is {@link VK10#VK_SUBPASS_EXTERNAL SUBPASS_EXTERNAL}, to avoid cyclic dependencies and ensure a valid execution order
* - {@code srcSubpass} and {@code dstSubpass} must not both be equal to {@link VK10#VK_SUBPASS_EXTERNAL SUBPASS_EXTERNAL}
* - If {@code srcSubpass} is equal to {@code dstSubpass} and not all of the stages in {@code srcStageMask} and {@code dstStageMask} are framebuffer-space stages, the logically latest pipeline stage in {@code srcStageMask} must be logically earlier than or equal to the logically earliest pipeline stage in {@code dstStageMask}
* - Any access flag included in {@code srcAccessMask} must be supported by one of the pipeline stages in {@code srcStageMask}, as specified in the table of supported access types
* - Any access flag included in {@code dstAccessMask} must be supported by one of the pipeline stages in {@code dstStageMask}, as specified in the table of supported access types
* - If {@code srcSubpass} equals {@code dstSubpass}, and {@code srcStageMask} and {@code dstStageMask} both include a framebuffer-space stage, then {@code dependencyFlags} must include {@link VK10#VK_DEPENDENCY_BY_REGION_BIT DEPENDENCY_BY_REGION_BIT}
* - If {@code dependencyFlags} includes {@link VK11#VK_DEPENDENCY_VIEW_LOCAL_BIT DEPENDENCY_VIEW_LOCAL_BIT}, {@code srcSubpass} must not be equal to {@link VK10#VK_SUBPASS_EXTERNAL SUBPASS_EXTERNAL}
* - If {@code dependencyFlags} includes {@link VK11#VK_DEPENDENCY_VIEW_LOCAL_BIT DEPENDENCY_VIEW_LOCAL_BIT}, {@code dstSubpass} must not be equal to {@link VK10#VK_SUBPASS_EXTERNAL SUBPASS_EXTERNAL}
* - If {@code srcSubpass} equals {@code dstSubpass} and that subpass has more than one bit set in the view mask, then {@code dependencyFlags} must include {@link VK11#VK_DEPENDENCY_VIEW_LOCAL_BIT DEPENDENCY_VIEW_LOCAL_BIT}
* - If the mesh shaders feature is not enabled, {@code srcStageMask} must not contain {@link NVMeshShader#VK_PIPELINE_STAGE_MESH_SHADER_BIT_NV PIPELINE_STAGE_MESH_SHADER_BIT_NV}
* - If the task shaders feature is not enabled, {@code srcStageMask} must not contain {@link NVMeshShader#VK_PIPELINE_STAGE_TASK_SHADER_BIT_NV PIPELINE_STAGE_TASK_SHADER_BIT_NV}
* - If the mesh shaders feature is not enabled, {@code dstStageMask} must not contain {@link NVMeshShader#VK_PIPELINE_STAGE_MESH_SHADER_BIT_NV PIPELINE_STAGE_MESH_SHADER_BIT_NV}
* - If the task shaders feature is not enabled, {@code dstStageMask} must not contain {@link NVMeshShader#VK_PIPELINE_STAGE_TASK_SHADER_BIT_NV PIPELINE_STAGE_TASK_SHADER_BIT_NV}
* - If the {@code synchronization2} feature is not enabled, {@code srcStageMask} must not be 0
* - If the {@code synchronization2} feature is not enabled, {@code dstStageMask} must not be 0
*
*
* Valid Usage (Implicit)
*
*
* - {@code srcStageMask} must be a valid combination of {@code VkPipelineStageFlagBits} values
* - {@code dstStageMask} must be a valid combination of {@code VkPipelineStageFlagBits} values
* - {@code srcAccessMask} must be a valid combination of {@code VkAccessFlagBits} values
* - {@code dstAccessMask} must be a valid combination of {@code VkAccessFlagBits} values
* - {@code dependencyFlags} must be a valid combination of {@code VkDependencyFlagBits} values
*
*
* See Also
*
* {@link VkRenderPassCreateInfo}
*
* Layout
*
*
* struct VkSubpassDependency {
* uint32_t {@link #srcSubpass};
* uint32_t {@link #dstSubpass};
* VkPipelineStageFlags {@link #srcStageMask};
* VkPipelineStageFlags {@link #dstStageMask};
* VkAccessFlags {@link #srcAccessMask};
* VkAccessFlags {@link #dstAccessMask};
* VkDependencyFlags {@link #dependencyFlags};
* }
*/
public class VkSubpassDependency 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
SRCSUBPASS,
DSTSUBPASS,
SRCSTAGEMASK,
DSTSTAGEMASK,
SRCACCESSMASK,
DSTACCESSMASK,
DEPENDENCYFLAGS;
static {
Layout layout = __struct(
__member(4),
__member(4),
__member(4),
__member(4),
__member(4),
__member(4),
__member(4)
);
SIZEOF = layout.getSize();
ALIGNOF = layout.getAlignment();
SRCSUBPASS = layout.offsetof(0);
DSTSUBPASS = layout.offsetof(1);
SRCSTAGEMASK = layout.offsetof(2);
DSTSTAGEMASK = layout.offsetof(3);
SRCACCESSMASK = layout.offsetof(4);
DSTACCESSMASK = layout.offsetof(5);
DEPENDENCYFLAGS = layout.offsetof(6);
}
/**
* Creates a {@code VkSubpassDependency} 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 VkSubpassDependency(ByteBuffer container) {
super(memAddress(container), __checkContainer(container, SIZEOF));
}
@Override
public int sizeof() { return SIZEOF; }
/** the subpass index of the first subpass in the dependency, or {@link VK10#VK_SUBPASS_EXTERNAL SUBPASS_EXTERNAL}. */
@NativeType("uint32_t")
public int srcSubpass() { return nsrcSubpass(address()); }
/** the subpass index of the second subpass in the dependency, or {@link VK10#VK_SUBPASS_EXTERNAL SUBPASS_EXTERNAL}. */
@NativeType("uint32_t")
public int dstSubpass() { return ndstSubpass(address()); }
/** a bitmask of {@code VkPipelineStageFlagBits} specifying the source stage mask. */
@NativeType("VkPipelineStageFlags")
public int srcStageMask() { return nsrcStageMask(address()); }
/** a bitmask of {@code VkPipelineStageFlagBits} specifying the destination stage mask */
@NativeType("VkPipelineStageFlags")
public int dstStageMask() { return ndstStageMask(address()); }
/** a bitmask of {@code VkAccessFlagBits} specifying a source access mask. */
@NativeType("VkAccessFlags")
public int srcAccessMask() { return nsrcAccessMask(address()); }
/** a bitmask of {@code VkAccessFlagBits} specifying a destination access mask. */
@NativeType("VkAccessFlags")
public int dstAccessMask() { return ndstAccessMask(address()); }
/** a bitmask of {@code VkDependencyFlagBits}. */
@NativeType("VkDependencyFlags")
public int dependencyFlags() { return ndependencyFlags(address()); }
/** Sets the specified value to the {@link #srcSubpass} field. */
public VkSubpassDependency srcSubpass(@NativeType("uint32_t") int value) { nsrcSubpass(address(), value); return this; }
/** Sets the specified value to the {@link #dstSubpass} field. */
public VkSubpassDependency dstSubpass(@NativeType("uint32_t") int value) { ndstSubpass(address(), value); return this; }
/** Sets the specified value to the {@link #srcStageMask} field. */
public VkSubpassDependency srcStageMask(@NativeType("VkPipelineStageFlags") int value) { nsrcStageMask(address(), value); return this; }
/** Sets the specified value to the {@link #dstStageMask} field. */
public VkSubpassDependency dstStageMask(@NativeType("VkPipelineStageFlags") int value) { ndstStageMask(address(), value); return this; }
/** Sets the specified value to the {@link #srcAccessMask} field. */
public VkSubpassDependency srcAccessMask(@NativeType("VkAccessFlags") int value) { nsrcAccessMask(address(), value); return this; }
/** Sets the specified value to the {@link #dstAccessMask} field. */
public VkSubpassDependency dstAccessMask(@NativeType("VkAccessFlags") int value) { ndstAccessMask(address(), value); return this; }
/** Sets the specified value to the {@link #dependencyFlags} field. */
public VkSubpassDependency dependencyFlags(@NativeType("VkDependencyFlags") int value) { ndependencyFlags(address(), value); return this; }
/** Initializes this struct with the specified values. */
public VkSubpassDependency set(
int srcSubpass,
int dstSubpass,
int srcStageMask,
int dstStageMask,
int srcAccessMask,
int dstAccessMask,
int dependencyFlags
) {
srcSubpass(srcSubpass);
dstSubpass(dstSubpass);
srcStageMask(srcStageMask);
dstStageMask(dstStageMask);
srcAccessMask(srcAccessMask);
dstAccessMask(dstAccessMask);
dependencyFlags(dependencyFlags);
return this;
}
/**
* Copies the specified struct data to this struct.
*
* @param src the source struct
*
* @return this struct
*/
public VkSubpassDependency set(VkSubpassDependency src) {
memCopy(src.address(), address(), SIZEOF);
return this;
}
// -----------------------------------
/** Returns a new {@code VkSubpassDependency} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */
public static VkSubpassDependency malloc() {
return wrap(VkSubpassDependency.class, nmemAllocChecked(SIZEOF));
}
/** Returns a new {@code VkSubpassDependency} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */
public static VkSubpassDependency calloc() {
return wrap(VkSubpassDependency.class, nmemCallocChecked(1, SIZEOF));
}
/** Returns a new {@code VkSubpassDependency} instance allocated with {@link BufferUtils}. */
public static VkSubpassDependency create() {
ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF);
return wrap(VkSubpassDependency.class, memAddress(container), container);
}
/** Returns a new {@code VkSubpassDependency} instance for the specified memory address. */
public static VkSubpassDependency create(long address) {
return wrap(VkSubpassDependency.class, address);
}
/** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */
@Nullable
public static VkSubpassDependency createSafe(long address) {
return address == NULL ? null : wrap(VkSubpassDependency.class, address);
}
/**
* Returns a new {@link VkSubpassDependency.Buffer} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed.
*
* @param capacity the buffer capacity
*/
public static VkSubpassDependency.Buffer malloc(int capacity) {
return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity);
}
/**
* Returns a new {@link VkSubpassDependency.Buffer} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed.
*
* @param capacity the buffer capacity
*/
public static VkSubpassDependency.Buffer calloc(int capacity) {
return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity);
}
/**
* Returns a new {@link VkSubpassDependency.Buffer} instance allocated with {@link BufferUtils}.
*
* @param capacity the buffer capacity
*/
public static VkSubpassDependency.Buffer create(int capacity) {
ByteBuffer container = __create(capacity, SIZEOF);
return wrap(Buffer.class, memAddress(container), capacity, container);
}
/**
* Create a {@link VkSubpassDependency.Buffer} instance at the specified memory.
*
* @param address the memory address
* @param capacity the buffer capacity
*/
public static VkSubpassDependency.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 VkSubpassDependency.Buffer createSafe(long address, int capacity) {
return address == NULL ? null : wrap(Buffer.class, address, capacity);
}
// -----------------------------------
/** Deprecated for removal in 3.4.0. Use {@link #malloc(MemoryStack)} instead. */
@Deprecated public static VkSubpassDependency mallocStack() { return malloc(stackGet()); }
/** Deprecated for removal in 3.4.0. Use {@link #calloc(MemoryStack)} instead. */
@Deprecated public static VkSubpassDependency callocStack() { return calloc(stackGet()); }
/** Deprecated for removal in 3.4.0. Use {@link #malloc(MemoryStack)} instead. */
@Deprecated public static VkSubpassDependency mallocStack(MemoryStack stack) { return malloc(stack); }
/** Deprecated for removal in 3.4.0. Use {@link #calloc(MemoryStack)} instead. */
@Deprecated public static VkSubpassDependency callocStack(MemoryStack stack) { return calloc(stack); }
/** Deprecated for removal in 3.4.0. Use {@link #malloc(int, MemoryStack)} instead. */
@Deprecated public static VkSubpassDependency.Buffer mallocStack(int capacity) { return malloc(capacity, stackGet()); }
/** Deprecated for removal in 3.4.0. Use {@link #calloc(int, MemoryStack)} instead. */
@Deprecated public static VkSubpassDependency.Buffer callocStack(int capacity) { return calloc(capacity, stackGet()); }
/** Deprecated for removal in 3.4.0. Use {@link #malloc(int, MemoryStack)} instead. */
@Deprecated public static VkSubpassDependency.Buffer mallocStack(int capacity, MemoryStack stack) { return malloc(capacity, stack); }
/** Deprecated for removal in 3.4.0. Use {@link #calloc(int, MemoryStack)} instead. */
@Deprecated public static VkSubpassDependency.Buffer callocStack(int capacity, MemoryStack stack) { return calloc(capacity, stack); }
/**
* Returns a new {@code VkSubpassDependency} instance allocated on the specified {@link MemoryStack}.
*
* @param stack the stack from which to allocate
*/
public static VkSubpassDependency malloc(MemoryStack stack) {
return wrap(VkSubpassDependency.class, stack.nmalloc(ALIGNOF, SIZEOF));
}
/**
* Returns a new {@code VkSubpassDependency} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero.
*
* @param stack the stack from which to allocate
*/
public static VkSubpassDependency calloc(MemoryStack stack) {
return wrap(VkSubpassDependency.class, stack.ncalloc(ALIGNOF, 1, SIZEOF));
}
/**
* Returns a new {@link VkSubpassDependency.Buffer} instance allocated on the specified {@link MemoryStack}.
*
* @param stack the stack from which to allocate
* @param capacity the buffer capacity
*/
public static VkSubpassDependency.Buffer malloc(int capacity, MemoryStack stack) {
return wrap(Buffer.class, stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity);
}
/**
* Returns a new {@link VkSubpassDependency.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 VkSubpassDependency.Buffer calloc(int capacity, MemoryStack stack) {
return wrap(Buffer.class, stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity);
}
// -----------------------------------
/** Unsafe version of {@link #srcSubpass}. */
public static int nsrcSubpass(long struct) { return UNSAFE.getInt(null, struct + VkSubpassDependency.SRCSUBPASS); }
/** Unsafe version of {@link #dstSubpass}. */
public static int ndstSubpass(long struct) { return UNSAFE.getInt(null, struct + VkSubpassDependency.DSTSUBPASS); }
/** Unsafe version of {@link #srcStageMask}. */
public static int nsrcStageMask(long struct) { return UNSAFE.getInt(null, struct + VkSubpassDependency.SRCSTAGEMASK); }
/** Unsafe version of {@link #dstStageMask}. */
public static int ndstStageMask(long struct) { return UNSAFE.getInt(null, struct + VkSubpassDependency.DSTSTAGEMASK); }
/** Unsafe version of {@link #srcAccessMask}. */
public static int nsrcAccessMask(long struct) { return UNSAFE.getInt(null, struct + VkSubpassDependency.SRCACCESSMASK); }
/** Unsafe version of {@link #dstAccessMask}. */
public static int ndstAccessMask(long struct) { return UNSAFE.getInt(null, struct + VkSubpassDependency.DSTACCESSMASK); }
/** Unsafe version of {@link #dependencyFlags}. */
public static int ndependencyFlags(long struct) { return UNSAFE.getInt(null, struct + VkSubpassDependency.DEPENDENCYFLAGS); }
/** Unsafe version of {@link #srcSubpass(int) srcSubpass}. */
public static void nsrcSubpass(long struct, int value) { UNSAFE.putInt(null, struct + VkSubpassDependency.SRCSUBPASS, value); }
/** Unsafe version of {@link #dstSubpass(int) dstSubpass}. */
public static void ndstSubpass(long struct, int value) { UNSAFE.putInt(null, struct + VkSubpassDependency.DSTSUBPASS, value); }
/** Unsafe version of {@link #srcStageMask(int) srcStageMask}. */
public static void nsrcStageMask(long struct, int value) { UNSAFE.putInt(null, struct + VkSubpassDependency.SRCSTAGEMASK, value); }
/** Unsafe version of {@link #dstStageMask(int) dstStageMask}. */
public static void ndstStageMask(long struct, int value) { UNSAFE.putInt(null, struct + VkSubpassDependency.DSTSTAGEMASK, value); }
/** Unsafe version of {@link #srcAccessMask(int) srcAccessMask}. */
public static void nsrcAccessMask(long struct, int value) { UNSAFE.putInt(null, struct + VkSubpassDependency.SRCACCESSMASK, value); }
/** Unsafe version of {@link #dstAccessMask(int) dstAccessMask}. */
public static void ndstAccessMask(long struct, int value) { UNSAFE.putInt(null, struct + VkSubpassDependency.DSTACCESSMASK, value); }
/** Unsafe version of {@link #dependencyFlags(int) dependencyFlags}. */
public static void ndependencyFlags(long struct, int value) { UNSAFE.putInt(null, struct + VkSubpassDependency.DEPENDENCYFLAGS, value); }
// -----------------------------------
/** An array of {@link VkSubpassDependency} structs. */
public static class Buffer extends StructBuffer implements NativeResource {
private static final VkSubpassDependency ELEMENT_FACTORY = VkSubpassDependency.create(-1L);
/**
* Creates a new {@code VkSubpassDependency.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 VkSubpassDependency#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 VkSubpassDependency getElementFactory() {
return ELEMENT_FACTORY;
}
/** @return the value of the {@link VkSubpassDependency#srcSubpass} field. */
@NativeType("uint32_t")
public int srcSubpass() { return VkSubpassDependency.nsrcSubpass(address()); }
/** @return the value of the {@link VkSubpassDependency#dstSubpass} field. */
@NativeType("uint32_t")
public int dstSubpass() { return VkSubpassDependency.ndstSubpass(address()); }
/** @return the value of the {@link VkSubpassDependency#srcStageMask} field. */
@NativeType("VkPipelineStageFlags")
public int srcStageMask() { return VkSubpassDependency.nsrcStageMask(address()); }
/** @return the value of the {@link VkSubpassDependency#dstStageMask} field. */
@NativeType("VkPipelineStageFlags")
public int dstStageMask() { return VkSubpassDependency.ndstStageMask(address()); }
/** @return the value of the {@link VkSubpassDependency#srcAccessMask} field. */
@NativeType("VkAccessFlags")
public int srcAccessMask() { return VkSubpassDependency.nsrcAccessMask(address()); }
/** @return the value of the {@link VkSubpassDependency#dstAccessMask} field. */
@NativeType("VkAccessFlags")
public int dstAccessMask() { return VkSubpassDependency.ndstAccessMask(address()); }
/** @return the value of the {@link VkSubpassDependency#dependencyFlags} field. */
@NativeType("VkDependencyFlags")
public int dependencyFlags() { return VkSubpassDependency.ndependencyFlags(address()); }
/** Sets the specified value to the {@link VkSubpassDependency#srcSubpass} field. */
public VkSubpassDependency.Buffer srcSubpass(@NativeType("uint32_t") int value) { VkSubpassDependency.nsrcSubpass(address(), value); return this; }
/** Sets the specified value to the {@link VkSubpassDependency#dstSubpass} field. */
public VkSubpassDependency.Buffer dstSubpass(@NativeType("uint32_t") int value) { VkSubpassDependency.ndstSubpass(address(), value); return this; }
/** Sets the specified value to the {@link VkSubpassDependency#srcStageMask} field. */
public VkSubpassDependency.Buffer srcStageMask(@NativeType("VkPipelineStageFlags") int value) { VkSubpassDependency.nsrcStageMask(address(), value); return this; }
/** Sets the specified value to the {@link VkSubpassDependency#dstStageMask} field. */
public VkSubpassDependency.Buffer dstStageMask(@NativeType("VkPipelineStageFlags") int value) { VkSubpassDependency.ndstStageMask(address(), value); return this; }
/** Sets the specified value to the {@link VkSubpassDependency#srcAccessMask} field. */
public VkSubpassDependency.Buffer srcAccessMask(@NativeType("VkAccessFlags") int value) { VkSubpassDependency.nsrcAccessMask(address(), value); return this; }
/** Sets the specified value to the {@link VkSubpassDependency#dstAccessMask} field. */
public VkSubpassDependency.Buffer dstAccessMask(@NativeType("VkAccessFlags") int value) { VkSubpassDependency.ndstAccessMask(address(), value); return this; }
/** Sets the specified value to the {@link VkSubpassDependency#dependencyFlags} field. */
public VkSubpassDependency.Buffer dependencyFlags(@NativeType("VkDependencyFlags") int value) { VkSubpassDependency.ndependencyFlags(address(), value); return this; }
}
}