Package org.lwjgl.vulkan
Class VkRenderingAttachmentInfoKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkRenderingAttachmentInfo
-
- org.lwjgl.vulkan.VkRenderingAttachmentInfoKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkRenderingAttachmentInfoKHR extends VkRenderingAttachmentInfo
SeeVkRenderingAttachmentInfo.Layout
struct VkRenderingAttachmentInfoKHR { VkStructureType sType; void const * pNext; VkImageView imageView; VkImageLayout imageLayout; VkResolveModeFlagBits resolveMode; VkImageView resolveImageView; VkImageLayout resolveImageLayout; VkAttachmentLoadOp loadOp; VkAttachmentStoreOp storeOp;VkClearValueclearValue; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkRenderingAttachmentInfoKHR.BufferAn array ofVkRenderingAttachmentInfoKHRstructs.
-
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.VkRenderingAttachmentInfo
ALIGNOF, CLEARVALUE, IMAGELAYOUT, IMAGEVIEW, LOADOP, PNEXT, RESOLVEIMAGELAYOUT, RESOLVEIMAGEVIEW, RESOLVEMODE, SIZEOF, STOREOP, STYPE
-
-
Constructor Summary
Constructors Constructor Description VkRenderingAttachmentInfoKHR(java.nio.ByteBuffer container)Creates aVkRenderingAttachmentInfoKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkRenderingAttachmentInfoKHRcalloc()Returns a newVkRenderingAttachmentInfoKHRinstance allocated withmemCalloc.static VkRenderingAttachmentInfoKHR.Buffercalloc(int capacity)Returns a newVkRenderingAttachmentInfoKHR.Bufferinstance allocated withmemCalloc.static VkRenderingAttachmentInfoKHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkRenderingAttachmentInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkRenderingAttachmentInfoKHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkRenderingAttachmentInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.VkRenderingAttachmentInfoKHRclearValue(java.util.function.Consumer<VkClearValue> consumer)Passes theclearValuefield to the specifiedConsumer.VkRenderingAttachmentInfoKHRclearValue(VkClearValue value)Copies the specifiedVkClearValueto theclearValuefield.static VkRenderingAttachmentInfoKHRcreate()Returns a newVkRenderingAttachmentInfoKHRinstance allocated withBufferUtils.static VkRenderingAttachmentInfoKHR.Buffercreate(int capacity)Returns a newVkRenderingAttachmentInfoKHR.Bufferinstance allocated withBufferUtils.static VkRenderingAttachmentInfoKHRcreate(long address)Returns a newVkRenderingAttachmentInfoKHRinstance for the specified memory address.static VkRenderingAttachmentInfoKHR.Buffercreate(long address, int capacity)Create aVkRenderingAttachmentInfoKHR.Bufferinstance at the specified memory.static VkRenderingAttachmentInfoKHRcreateSafe(long address)static VkRenderingAttachmentInfoKHR.BuffercreateSafe(long address, int capacity)VkRenderingAttachmentInfoKHRimageLayout(int value)Sets the specified value to theimageLayoutfield.VkRenderingAttachmentInfoKHRimageView(long value)Sets the specified value to theimageViewfield.VkRenderingAttachmentInfoKHRloadOp(int value)Sets the specified value to theloadOpfield.static VkRenderingAttachmentInfoKHRmalloc()Returns a newVkRenderingAttachmentInfoKHRinstance allocated withmemAlloc.static VkRenderingAttachmentInfoKHR.Buffermalloc(int capacity)Returns a newVkRenderingAttachmentInfoKHR.Bufferinstance allocated withmemAlloc.static VkRenderingAttachmentInfoKHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkRenderingAttachmentInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkRenderingAttachmentInfoKHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkRenderingAttachmentInfoKHRinstance allocated on the specifiedMemoryStack.VkRenderingAttachmentInfoKHRpNext(long value)Sets the specified value to thepNextfield.VkRenderingAttachmentInfoKHRresolveImageLayout(int value)Sets the specified value to theresolveImageLayoutfield.VkRenderingAttachmentInfoKHRresolveImageView(long value)Sets the specified value to theresolveImageViewfield.VkRenderingAttachmentInfoKHRresolveMode(int value)Sets the specified value to theresolveModefield.VkRenderingAttachmentInfoKHRset(int sType, long pNext, long imageView, int imageLayout, int resolveMode, long resolveImageView, int resolveImageLayout, int loadOp, int storeOp, VkClearValue clearValue)Initializes this struct with the specified values.VkRenderingAttachmentInfoKHRset(VkRenderingAttachmentInfoKHR src)Copies the specified struct data to this struct.VkRenderingAttachmentInfoKHRstoreOp(int value)Sets the specified value to thestoreOpfield.VkRenderingAttachmentInfoKHRsType(int value)Sets the specified value to thesTypefield.VkRenderingAttachmentInfoKHRsType$Default()Sets theSTRUCTURE_TYPE_RENDERING_ATTACHMENT_INFOvalue to thesTypefield.-
Methods inherited from class org.lwjgl.vulkan.VkRenderingAttachmentInfo
clearValue, imageLayout, imageView, loadOp, nclearValue, nclearValue, nimageLayout, nimageLayout, nimageView, nimageView, nloadOp, nloadOp, npNext, npNext, nresolveImageLayout, nresolveImageLayout, nresolveImageView, nresolveImageView, nresolveMode, nresolveMode, nstoreOp, nstoreOp, nsType, nsType, pNext, resolveImageLayout, resolveImageView, resolveMode, set, sizeof, storeOp, sType
-
-
-
-
Constructor Detail
-
VkRenderingAttachmentInfoKHR
public VkRenderingAttachmentInfoKHR(java.nio.ByteBuffer container)
Creates aVkRenderingAttachmentInfoKHRinstance 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 VkRenderingAttachmentInfoKHR sType(int value)
Sets the specified value to thesTypefield.- Overrides:
sTypein classVkRenderingAttachmentInfo
-
sType$Default
public VkRenderingAttachmentInfoKHR sType$Default()
Sets theSTRUCTURE_TYPE_RENDERING_ATTACHMENT_INFOvalue to thesTypefield.- Overrides:
sType$Defaultin classVkRenderingAttachmentInfo
-
pNext
public VkRenderingAttachmentInfoKHR pNext(long value)
Sets the specified value to thepNextfield.- Overrides:
pNextin classVkRenderingAttachmentInfo
-
imageView
public VkRenderingAttachmentInfoKHR imageView(long value)
Sets the specified value to theimageViewfield.- Overrides:
imageViewin classVkRenderingAttachmentInfo
-
imageLayout
public VkRenderingAttachmentInfoKHR imageLayout(int value)
Sets the specified value to theimageLayoutfield.- Overrides:
imageLayoutin classVkRenderingAttachmentInfo
-
resolveMode
public VkRenderingAttachmentInfoKHR resolveMode(int value)
Sets the specified value to theresolveModefield.- Overrides:
resolveModein classVkRenderingAttachmentInfo
-
resolveImageView
public VkRenderingAttachmentInfoKHR resolveImageView(long value)
Sets the specified value to theresolveImageViewfield.- Overrides:
resolveImageViewin classVkRenderingAttachmentInfo
-
resolveImageLayout
public VkRenderingAttachmentInfoKHR resolveImageLayout(int value)
Sets the specified value to theresolveImageLayoutfield.- Overrides:
resolveImageLayoutin classVkRenderingAttachmentInfo
-
loadOp
public VkRenderingAttachmentInfoKHR loadOp(int value)
Sets the specified value to theloadOpfield.- Overrides:
loadOpin classVkRenderingAttachmentInfo
-
storeOp
public VkRenderingAttachmentInfoKHR storeOp(int value)
Sets the specified value to thestoreOpfield.- Overrides:
storeOpin classVkRenderingAttachmentInfo
-
clearValue
public VkRenderingAttachmentInfoKHR clearValue(VkClearValue value)
Copies the specifiedVkClearValueto theclearValuefield.- Overrides:
clearValuein classVkRenderingAttachmentInfo
-
clearValue
public VkRenderingAttachmentInfoKHR clearValue(java.util.function.Consumer<VkClearValue> consumer)
Passes theclearValuefield to the specifiedConsumer.- Overrides:
clearValuein classVkRenderingAttachmentInfo
-
set
public VkRenderingAttachmentInfoKHR set(int sType, long pNext, long imageView, int imageLayout, int resolveMode, long resolveImageView, int resolveImageLayout, int loadOp, int storeOp, VkClearValue clearValue)
Initializes this struct with the specified values.- Overrides:
setin classVkRenderingAttachmentInfo
-
set
public VkRenderingAttachmentInfoKHR set(VkRenderingAttachmentInfoKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkRenderingAttachmentInfoKHR malloc()
Returns a newVkRenderingAttachmentInfoKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkRenderingAttachmentInfoKHR calloc()
Returns a newVkRenderingAttachmentInfoKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkRenderingAttachmentInfoKHR create()
Returns a newVkRenderingAttachmentInfoKHRinstance allocated withBufferUtils.
-
create
public static VkRenderingAttachmentInfoKHR create(long address)
Returns a newVkRenderingAttachmentInfoKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkRenderingAttachmentInfoKHR createSafe(long address)
-
malloc
public static VkRenderingAttachmentInfoKHR.Buffer malloc(int capacity)
Returns a newVkRenderingAttachmentInfoKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkRenderingAttachmentInfoKHR.Buffer calloc(int capacity)
Returns a newVkRenderingAttachmentInfoKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkRenderingAttachmentInfoKHR.Buffer create(int capacity)
Returns a newVkRenderingAttachmentInfoKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkRenderingAttachmentInfoKHR.Buffer create(long address, int capacity)
Create aVkRenderingAttachmentInfoKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkRenderingAttachmentInfoKHR.Buffer createSafe(long address, int capacity)
-
malloc
public static VkRenderingAttachmentInfoKHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkRenderingAttachmentInfoKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkRenderingAttachmentInfoKHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkRenderingAttachmentInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkRenderingAttachmentInfoKHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkRenderingAttachmentInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkRenderingAttachmentInfoKHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkRenderingAttachmentInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
-