Package org.lwjgl.vulkan
Class VkSubpassDescription2KHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkSubpassDescription2
-
- org.lwjgl.vulkan.VkSubpassDescription2KHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkSubpassDescription2KHR extends VkSubpassDescription2
SeeVkSubpassDescription2.Layout
struct VkSubpassDescription2KHR { VkStructureType sType; void const * pNext; VkSubpassDescriptionFlags flags; VkPipelineBindPoint pipelineBindPoint; uint32_t viewMask; uint32_t inputAttachmentCount;VkAttachmentReference2const * pInputAttachments; uint32_t colorAttachmentCount;VkAttachmentReference2const * pColorAttachments;VkAttachmentReference2const * pResolveAttachments;VkAttachmentReference2const * pDepthStencilAttachment; uint32_t preserveAttachmentCount; uint32_t const * pPreserveAttachments; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkSubpassDescription2KHR.BufferAn array ofVkSubpassDescription2KHRstructs.
-
Field Summary
-
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Fields inherited from class org.lwjgl.vulkan.VkSubpassDescription2
ALIGNOF, COLORATTACHMENTCOUNT, FLAGS, INPUTATTACHMENTCOUNT, PCOLORATTACHMENTS, PDEPTHSTENCILATTACHMENT, PINPUTATTACHMENTS, PIPELINEBINDPOINT, PNEXT, PPRESERVEATTACHMENTS, PRESERVEATTACHMENTCOUNT, PRESOLVEATTACHMENTS, SIZEOF, STYPE, VIEWMASK
-
-
Constructor Summary
Constructors Constructor Description VkSubpassDescription2KHR(java.nio.ByteBuffer container)Creates aVkSubpassDescription2KHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static VkSubpassDescription2KHRcalloc()Returns a newVkSubpassDescription2KHRinstance allocated withmemCalloc.static VkSubpassDescription2KHR.Buffercalloc(int capacity)Returns a newVkSubpassDescription2KHR.Bufferinstance allocated withmemCalloc.static VkSubpassDescription2KHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkSubpassDescription2KHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkSubpassDescription2KHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkSubpassDescription2KHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkSubpassDescription2KHRcallocStack()Deprecated.static VkSubpassDescription2KHR.BuffercallocStack(int capacity)Deprecated.static VkSubpassDescription2KHR.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkSubpassDescription2KHRcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.VkSubpassDescription2KHRcolorAttachmentCount(int value)Sets the specified value to thecolorAttachmentCountfield.static VkSubpassDescription2KHRcreate()Returns a newVkSubpassDescription2KHRinstance allocated withBufferUtils.static VkSubpassDescription2KHR.Buffercreate(int capacity)Returns a newVkSubpassDescription2KHR.Bufferinstance allocated withBufferUtils.static VkSubpassDescription2KHRcreate(long address)Returns a newVkSubpassDescription2KHRinstance for the specified memory address.static VkSubpassDescription2KHR.Buffercreate(long address, int capacity)Create aVkSubpassDescription2KHR.Bufferinstance at the specified memory.static VkSubpassDescription2KHRcreateSafe(long address)static VkSubpassDescription2KHR.BuffercreateSafe(long address, int capacity)VkSubpassDescription2KHRflags(int value)Sets the specified value to theflagsfield.static VkSubpassDescription2KHRmalloc()Returns a newVkSubpassDescription2KHRinstance allocated withmemAlloc.static VkSubpassDescription2KHR.Buffermalloc(int capacity)Returns a newVkSubpassDescription2KHR.Bufferinstance allocated withmemAlloc.static VkSubpassDescription2KHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkSubpassDescription2KHR.Bufferinstance allocated on the specifiedMemoryStack.static VkSubpassDescription2KHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkSubpassDescription2KHRinstance allocated on the specifiedMemoryStack.static VkSubpassDescription2KHRmallocStack()Deprecated.static VkSubpassDescription2KHR.BuffermallocStack(int capacity)Deprecated.static VkSubpassDescription2KHR.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkSubpassDescription2KHRmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.VkSubpassDescription2KHRpColorAttachments(VkAttachmentReference2.Buffer value)Sets the address of the specifiedVkAttachmentReference2.Bufferto thepColorAttachmentsfield.VkSubpassDescription2KHRpDepthStencilAttachment(VkAttachmentReference2 value)Sets the address of the specifiedVkAttachmentReference2to thepDepthStencilAttachmentfield.VkSubpassDescription2KHRpInputAttachments(VkAttachmentReference2.Buffer value)Sets the address of the specifiedVkAttachmentReference2.Bufferto thepInputAttachmentsfield.VkSubpassDescription2KHRpipelineBindPoint(int value)Sets the specified value to thepipelineBindPointfield.VkSubpassDescription2KHRpNext(long value)Sets the specified value to thepNextfield.VkSubpassDescription2KHRpPreserveAttachments(java.nio.IntBuffer value)Sets the address of the specifiedIntBufferto thepPreserveAttachmentsfield.VkSubpassDescription2KHRpResolveAttachments(VkAttachmentReference2.Buffer value)Sets the address of the specifiedVkAttachmentReference2.Bufferto thepResolveAttachmentsfield.VkSubpassDescription2KHRset(int sType, long pNext, int flags, int pipelineBindPoint, int viewMask, VkAttachmentReference2.Buffer pInputAttachments, int colorAttachmentCount, VkAttachmentReference2.Buffer pColorAttachments, VkAttachmentReference2.Buffer pResolveAttachments, VkAttachmentReference2 pDepthStencilAttachment, java.nio.IntBuffer pPreserveAttachments)Initializes this struct with the specified values.VkSubpassDescription2KHRset(VkSubpassDescription2KHR src)Copies the specified struct data to this struct.VkSubpassDescription2KHRsType(int value)Sets the specified value to thesTypefield.VkSubpassDescription2KHRsType$Default()Sets theSTRUCTURE_TYPE_SUBPASS_DESCRIPTION_2value to thesTypefield.VkSubpassDescription2KHRviewMask(int value)Sets the specified value to theviewMaskfield.-
Methods inherited from class org.lwjgl.vulkan.VkSubpassDescription2
colorAttachmentCount, flags, inputAttachmentCount, ncolorAttachmentCount, ncolorAttachmentCount, nflags, nflags, ninputAttachmentCount, ninputAttachmentCount, npColorAttachments, npColorAttachments, npDepthStencilAttachment, npDepthStencilAttachment, npInputAttachments, npInputAttachments, npipelineBindPoint, npipelineBindPoint, npNext, npNext, npPreserveAttachments, npPreserveAttachments, npreserveAttachmentCount, npreserveAttachmentCount, npResolveAttachments, npResolveAttachments, nsType, nsType, nviewMask, nviewMask, pColorAttachments, pDepthStencilAttachment, pInputAttachments, pipelineBindPoint, pNext, pNext, pNext, pNext, pPreserveAttachments, preserveAttachmentCount, pResolveAttachments, set, sizeof, sType, validate, viewMask
-
-
-
-
Constructor Detail
-
VkSubpassDescription2KHR
public VkSubpassDescription2KHR(java.nio.ByteBuffer container)
Creates aVkSubpassDescription2KHRinstance at the current position of the specifiedByteBuffercontainer. 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.
-
-
Method Detail
-
sType
public VkSubpassDescription2KHR sType(int value)
Sets the specified value to thesTypefield.- Overrides:
sTypein classVkSubpassDescription2
-
sType$Default
public VkSubpassDescription2KHR sType$Default()
Sets theSTRUCTURE_TYPE_SUBPASS_DESCRIPTION_2value to thesTypefield.- Overrides:
sType$Defaultin classVkSubpassDescription2
-
pNext
public VkSubpassDescription2KHR pNext(long value)
Sets the specified value to thepNextfield.- Overrides:
pNextin classVkSubpassDescription2
-
flags
public VkSubpassDescription2KHR flags(int value)
Sets the specified value to theflagsfield.- Overrides:
flagsin classVkSubpassDescription2
-
pipelineBindPoint
public VkSubpassDescription2KHR pipelineBindPoint(int value)
Sets the specified value to thepipelineBindPointfield.- Overrides:
pipelineBindPointin classVkSubpassDescription2
-
viewMask
public VkSubpassDescription2KHR viewMask(int value)
Sets the specified value to theviewMaskfield.- Overrides:
viewMaskin classVkSubpassDescription2
-
pInputAttachments
public VkSubpassDescription2KHR pInputAttachments(@Nullable VkAttachmentReference2.Buffer value)
Sets the address of the specifiedVkAttachmentReference2.Bufferto thepInputAttachmentsfield.- Overrides:
pInputAttachmentsin classVkSubpassDescription2
-
colorAttachmentCount
public VkSubpassDescription2KHR colorAttachmentCount(int value)
Sets the specified value to thecolorAttachmentCountfield.- Overrides:
colorAttachmentCountin classVkSubpassDescription2
-
pColorAttachments
public VkSubpassDescription2KHR pColorAttachments(@Nullable VkAttachmentReference2.Buffer value)
Sets the address of the specifiedVkAttachmentReference2.Bufferto thepColorAttachmentsfield.- Overrides:
pColorAttachmentsin classVkSubpassDescription2
-
pResolveAttachments
public VkSubpassDescription2KHR pResolveAttachments(@Nullable VkAttachmentReference2.Buffer value)
Sets the address of the specifiedVkAttachmentReference2.Bufferto thepResolveAttachmentsfield.- Overrides:
pResolveAttachmentsin classVkSubpassDescription2
-
pDepthStencilAttachment
public VkSubpassDescription2KHR pDepthStencilAttachment(@Nullable VkAttachmentReference2 value)
Sets the address of the specifiedVkAttachmentReference2to thepDepthStencilAttachmentfield.- Overrides:
pDepthStencilAttachmentin classVkSubpassDescription2
-
pPreserveAttachments
public VkSubpassDescription2KHR pPreserveAttachments(@Nullable java.nio.IntBuffer value)
Sets the address of the specifiedIntBufferto thepPreserveAttachmentsfield.- Overrides:
pPreserveAttachmentsin classVkSubpassDescription2
-
set
public VkSubpassDescription2KHR set(int sType, long pNext, int flags, int pipelineBindPoint, int viewMask, @Nullable VkAttachmentReference2.Buffer pInputAttachments, int colorAttachmentCount, @Nullable VkAttachmentReference2.Buffer pColorAttachments, @Nullable VkAttachmentReference2.Buffer pResolveAttachments, @Nullable VkAttachmentReference2 pDepthStencilAttachment, @Nullable java.nio.IntBuffer pPreserveAttachments)
Initializes this struct with the specified values.- Overrides:
setin classVkSubpassDescription2
-
set
public VkSubpassDescription2KHR set(VkSubpassDescription2KHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkSubpassDescription2KHR malloc()
Returns a newVkSubpassDescription2KHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkSubpassDescription2KHR calloc()
Returns a newVkSubpassDescription2KHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkSubpassDescription2KHR create()
Returns a newVkSubpassDescription2KHRinstance allocated withBufferUtils.
-
create
public static VkSubpassDescription2KHR create(long address)
Returns a newVkSubpassDescription2KHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkSubpassDescription2KHR createSafe(long address)
-
malloc
public static VkSubpassDescription2KHR.Buffer malloc(int capacity)
Returns a newVkSubpassDescription2KHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkSubpassDescription2KHR.Buffer calloc(int capacity)
Returns a newVkSubpassDescription2KHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkSubpassDescription2KHR.Buffer create(int capacity)
Returns a newVkSubpassDescription2KHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkSubpassDescription2KHR.Buffer create(long address, int capacity)
Create aVkSubpassDescription2KHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkSubpassDescription2KHR.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static VkSubpassDescription2KHR mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkSubpassDescription2KHR callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkSubpassDescription2KHR mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkSubpassDescription2KHR callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkSubpassDescription2KHR.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkSubpassDescription2KHR.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkSubpassDescription2KHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkSubpassDescription2KHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkSubpassDescription2KHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkSubpassDescription2KHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkSubpassDescription2KHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkSubpassDescription2KHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkSubpassDescription2KHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkSubpassDescription2KHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkSubpassDescription2KHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkSubpassDescription2KHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
-