Package org.lwjgl.vulkan
Class VkSubpassDescription2KHR
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkSubpassDescription2>
org.lwjgl.vulkan.VkSubpassDescription2
org.lwjgl.vulkan.VkSubpassDescription2KHR
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct VkSubpassDescription2KHR {
VkStructureType sType;
void const * pNext;
VkSubpassDescriptionFlags flags;
VkPipelineBindPoint pipelineBindPoint;
uint32_t viewMask;
uint32_t inputAttachmentCount;
VkAttachmentReference2 const * pInputAttachments;
uint32_t colorAttachmentCount;
VkAttachmentReference2 const * pColorAttachments;
VkAttachmentReference2 const * pResolveAttachments;
VkAttachmentReference2 const * pDepthStencilAttachment;
uint32_t preserveAttachmentCount;
uint32_t const * pPreserveAttachments;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
Fields inherited from class org.lwjgl.vulkan.VkSubpassDescription2
ALIGNOF, COLORATTACHMENTCOUNT, FLAGS, INPUTATTACHMENTCOUNT, PCOLORATTACHMENTS, PDEPTHSTENCILATTACHMENT, PINPUTATTACHMENTS, PIPELINEBINDPOINT, PNEXT, PPRESERVEATTACHMENTS, PRESERVEATTACHMENTCOUNT, PRESOLVEATTACHMENTS, SIZEOF, STYPE, VIEWMASKFields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVkSubpassDescription2KHR(ByteBuffer container) Creates aVkSubpassDescription2KHRinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkSubpassDescription2KHRcalloc()Returns a newVkSubpassDescription2KHRinstance allocated withmemCalloc.calloc(int capacity) Returns a newVkSubpassDescription2KHR.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newVkSubpassDescription2KHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkSubpassDescription2KHRcalloc(MemoryStack stack) Returns a newVkSubpassDescription2KHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.colorAttachmentCount(int value) Sets the specified value to thecolorAttachmentCountfield.static VkSubpassDescription2KHRcreate()Returns a newVkSubpassDescription2KHRinstance allocated withBufferUtils.create(int capacity) Returns a newVkSubpassDescription2KHR.Bufferinstance allocated withBufferUtils.static VkSubpassDescription2KHRcreate(long address) Returns a newVkSubpassDescription2KHRinstance for the specified memory address.create(long address, int capacity) Create aVkSubpassDescription2KHR.Bufferinstance at the specified memory.static @Nullable VkSubpassDescription2KHRcreateSafe(long address) static @Nullable VkSubpassDescription2KHR.BuffercreateSafe(long address, int capacity) flags(int value) Sets the specified value to theflagsfield.static VkSubpassDescription2KHRmalloc()Returns a newVkSubpassDescription2KHRinstance allocated withmemAlloc.malloc(int capacity) Returns a newVkSubpassDescription2KHR.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newVkSubpassDescription2KHR.Bufferinstance allocated on the specifiedMemoryStack.static VkSubpassDescription2KHRmalloc(MemoryStack stack) Returns a newVkSubpassDescription2KHRinstance allocated on the specifiedMemoryStack.pColorAttachments(@Nullable VkAttachmentReference2.Buffer value) Sets the address of the specifiedVkAttachmentReference2.Bufferto thepColorAttachmentsfield.pDepthStencilAttachment(@Nullable VkAttachmentReference2 value) Sets the address of the specifiedVkAttachmentReference2to thepDepthStencilAttachmentfield.pInputAttachments(@Nullable VkAttachmentReference2.Buffer value) Sets the address of the specifiedVkAttachmentReference2.Bufferto thepInputAttachmentsfield.pipelineBindPoint(int value) Sets the specified value to thepipelineBindPointfield.pNext(long value) Sets the specified value to thepNextfield.pPreserveAttachments(@Nullable IntBuffer value) Sets the address of the specifiedIntBufferto thepPreserveAttachmentsfield.pResolveAttachments(@Nullable VkAttachmentReference2.Buffer value) Sets the address of the specifiedVkAttachmentReference2.Bufferto thepResolveAttachmentsfield.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 IntBuffer pPreserveAttachments) Initializes this struct with the specified values.Copies the specified struct data to this struct.sType(int value) Sets the specified value to thesTypefield.Sets theSTRUCTURE_TYPE_SUBPASS_DESCRIPTION_2value to thesTypefield.viewMask(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, pNext, pNext, pNext, pPreserveAttachments, preserveAttachmentCount, pResolveAttachments, set, sizeof, sType, validate, viewMaskMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
VkSubpassDescription2KHR
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 Details
-
sType
Sets the specified value to thesTypefield.- Overrides:
sTypein classVkSubpassDescription2
-
sType$Default
Sets theSTRUCTURE_TYPE_SUBPASS_DESCRIPTION_2value to thesTypefield.- Overrides:
sType$Defaultin classVkSubpassDescription2
-
pNext
Sets the specified value to thepNextfield.- Overrides:
pNextin classVkSubpassDescription2
-
flags
Sets the specified value to theflagsfield.- Overrides:
flagsin classVkSubpassDescription2
-
pipelineBindPoint
Sets the specified value to thepipelineBindPointfield.- Overrides:
pipelineBindPointin classVkSubpassDescription2
-
viewMask
Sets the specified value to theviewMaskfield.- Overrides:
viewMaskin classVkSubpassDescription2
-
pInputAttachments
Sets the address of the specifiedVkAttachmentReference2.Bufferto thepInputAttachmentsfield.- Overrides:
pInputAttachmentsin classVkSubpassDescription2
-
colorAttachmentCount
Sets the specified value to thecolorAttachmentCountfield.- Overrides:
colorAttachmentCountin classVkSubpassDescription2
-
pColorAttachments
Sets the address of the specifiedVkAttachmentReference2.Bufferto thepColorAttachmentsfield.- Overrides:
pColorAttachmentsin classVkSubpassDescription2
-
pResolveAttachments
Sets the address of the specifiedVkAttachmentReference2.Bufferto thepResolveAttachmentsfield.- Overrides:
pResolveAttachmentsin classVkSubpassDescription2
-
pDepthStencilAttachment
Sets the address of the specifiedVkAttachmentReference2to thepDepthStencilAttachmentfield.- Overrides:
pDepthStencilAttachmentin classVkSubpassDescription2
-
pPreserveAttachments
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 IntBuffer pPreserveAttachments) Initializes this struct with the specified values.- Overrides:
setin classVkSubpassDescription2
-
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newVkSubpassDescription2KHRinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkSubpassDescription2KHRinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkSubpassDescription2KHRinstance allocated withBufferUtils. -
create
Returns a newVkSubpassDescription2KHRinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkSubpassDescription2KHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkSubpassDescription2KHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkSubpassDescription2KHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkSubpassDescription2KHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newVkSubpassDescription2KHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkSubpassDescription2KHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkSubpassDescription2KHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkSubpassDescription2KHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-