Package org.lwjgl.vulkan
Class VkRenderingInfoKHR.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<VkRenderingInfo,VkRenderingInfo.Buffer>
-
- org.lwjgl.vulkan.VkRenderingInfo.Buffer
-
- org.lwjgl.vulkan.VkRenderingInfoKHR.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<VkRenderingInfo>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- VkRenderingInfoKHR
public static class VkRenderingInfoKHR.Buffer extends VkRenderingInfo.Buffer
An array ofVkRenderingInfoKHRstructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VkRenderingInfoKHR.Bufferflags(int value)Sets the specified value to theflagsfield.VkRenderingInfoKHR.BufferlayerCount(int value)Sets the specified value to thelayerCountfield.VkRenderingInfoKHR.BufferpColorAttachments(VkRenderingAttachmentInfo.Buffer value)Sets the address of the specifiedVkRenderingAttachmentInfo.Bufferto thepColorAttachmentsfield.VkRenderingInfoKHR.BufferpDepthAttachment(VkRenderingAttachmentInfo value)Sets the address of the specifiedVkRenderingAttachmentInfoto thepDepthAttachmentfield.VkRenderingInfoKHR.BufferpNext(long value)Sets the specified value to thepNextfield.VkRenderingInfoKHR.BufferpStencilAttachment(VkRenderingAttachmentInfo value)Sets the address of the specifiedVkRenderingAttachmentInfoto thepStencilAttachmentfield.VkRenderingInfoKHR.BufferrenderArea(java.util.function.Consumer<VkRect2D> consumer)Passes therenderAreafield to the specifiedConsumer.VkRenderingInfoKHR.BufferrenderArea(VkRect2D value)Copies the specifiedVkRect2Dto therenderAreafield.VkRenderingInfoKHR.BuffersType(int value)Sets the specified value to thesTypefield.VkRenderingInfoKHR.BuffersType$Default()Sets theSTRUCTURE_TYPE_RENDERING_INFOvalue to thesTypefield.VkRenderingInfoKHR.BufferviewMask(int value)Sets the specified value to theviewMaskfield.-
Methods inherited from class org.lwjgl.system.CustomBuffer
address, address, address0, capacity, clear, compact, duplicate, flip, free, hasRemaining, limit, limit, mark, position, position, put, remaining, reset, rewind, slice, slice, toString
-
Methods inherited from class org.lwjgl.system.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, stream
-
Methods inherited from class org.lwjgl.vulkan.VkRenderingInfo.Buffer
colorAttachmentCount, flags, layerCount, pColorAttachments, pDepthAttachment, pNext, pNext, pNext, pNext, pNext, pNext, pStencilAttachment, renderArea, sType, viewMask
-
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newVkRenderingInfoKHR.Bufferinstance 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 byVkRenderingInfo.SIZEOF, and its mark will be undefined.The created buffer instance holds a strong reference to the container object.
-
Buffer
public Buffer(long address, int cap)
-
-
Method Detail
-
sType
public VkRenderingInfoKHR.Buffer sType(int value)
Sets the specified value to thesTypefield.- Overrides:
sTypein classVkRenderingInfo.Buffer
-
sType$Default
public VkRenderingInfoKHR.Buffer sType$Default()
Sets theSTRUCTURE_TYPE_RENDERING_INFOvalue to thesTypefield.- Overrides:
sType$Defaultin classVkRenderingInfo.Buffer
-
pNext
public VkRenderingInfoKHR.Buffer pNext(long value)
Sets the specified value to thepNextfield.- Overrides:
pNextin classVkRenderingInfo.Buffer
-
flags
public VkRenderingInfoKHR.Buffer flags(int value)
Sets the specified value to theflagsfield.- Overrides:
flagsin classVkRenderingInfo.Buffer
-
renderArea
public VkRenderingInfoKHR.Buffer renderArea(VkRect2D value)
Copies the specifiedVkRect2Dto therenderAreafield.- Overrides:
renderAreain classVkRenderingInfo.Buffer
-
renderArea
public VkRenderingInfoKHR.Buffer renderArea(java.util.function.Consumer<VkRect2D> consumer)
Passes therenderAreafield to the specifiedConsumer.- Overrides:
renderAreain classVkRenderingInfo.Buffer
-
layerCount
public VkRenderingInfoKHR.Buffer layerCount(int value)
Sets the specified value to thelayerCountfield.- Overrides:
layerCountin classVkRenderingInfo.Buffer
-
viewMask
public VkRenderingInfoKHR.Buffer viewMask(int value)
Sets the specified value to theviewMaskfield.- Overrides:
viewMaskin classVkRenderingInfo.Buffer
-
pColorAttachments
public VkRenderingInfoKHR.Buffer pColorAttachments(@Nullable VkRenderingAttachmentInfo.Buffer value)
Sets the address of the specifiedVkRenderingAttachmentInfo.Bufferto thepColorAttachmentsfield.- Overrides:
pColorAttachmentsin classVkRenderingInfo.Buffer
-
pDepthAttachment
public VkRenderingInfoKHR.Buffer pDepthAttachment(@Nullable VkRenderingAttachmentInfo value)
Sets the address of the specifiedVkRenderingAttachmentInfoto thepDepthAttachmentfield.- Overrides:
pDepthAttachmentin classVkRenderingInfo.Buffer
-
pStencilAttachment
public VkRenderingInfoKHR.Buffer pStencilAttachment(@Nullable VkRenderingAttachmentInfo value)
Sets the address of the specifiedVkRenderingAttachmentInfoto thepStencilAttachmentfield.- Overrides:
pStencilAttachmentin classVkRenderingInfo.Buffer
-
-