Package org.lwjgl.vulkan
Class VkRenderingAttachmentInfoKHR
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkRenderingAttachmentInfo>
org.lwjgl.vulkan.VkRenderingAttachmentInfo
org.lwjgl.vulkan.VkRenderingAttachmentInfoKHR
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct VkRenderingAttachmentInfoKHR {
VkStructureType sType;
void const * pNext;
VkImageView imageView;
VkImageLayout imageLayout;
VkResolveModeFlagBits resolveMode;
VkImageView resolveImageView;
VkImageLayout resolveImageLayout;
VkAttachmentLoadOp loadOp;
VkAttachmentStoreOp storeOp;
{@link VkClearValue VkClearValue} clearValue;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Fields inherited from class org.lwjgl.vulkan.VkRenderingAttachmentInfo
ALIGNOF, CLEARVALUE, IMAGELAYOUT, IMAGEVIEW, LOADOP, PNEXT, RESOLVEIMAGELAYOUT, RESOLVEIMAGEVIEW, RESOLVEMODE, SIZEOF, STOREOP, STYPE
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionVkRenderingAttachmentInfoKHR
(ByteBuffer container) Creates aVkRenderingAttachmentInfoKHR
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkRenderingAttachmentInfoKHR
calloc()
Returns a newVkRenderingAttachmentInfoKHR
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newVkRenderingAttachmentInfoKHR.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newVkRenderingAttachmentInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkRenderingAttachmentInfoKHR
calloc
(MemoryStack stack) Returns a newVkRenderingAttachmentInfoKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.clearValue
(Consumer<VkClearValue> consumer) Passes theclearValue
field to the specifiedConsumer
.clearValue
(VkClearValue value) Copies the specifiedVkClearValue
to theclearValue
field.static VkRenderingAttachmentInfoKHR
create()
Returns a newVkRenderingAttachmentInfoKHR
instance allocated withBufferUtils
.create
(int capacity) Returns a newVkRenderingAttachmentInfoKHR.Buffer
instance allocated withBufferUtils
.static VkRenderingAttachmentInfoKHR
create
(long address) Returns a newVkRenderingAttachmentInfoKHR
instance for the specified memory address.create
(long address, int capacity) Create aVkRenderingAttachmentInfoKHR.Buffer
instance at the specified memory.static @Nullable VkRenderingAttachmentInfoKHR
createSafe
(long address) static @Nullable VkRenderingAttachmentInfoKHR.Buffer
createSafe
(long address, int capacity) imageLayout
(int value) Sets the specified value to theimageLayout
field.imageView
(long value) Sets the specified value to theimageView
field.loadOp
(int value) Sets the specified value to theloadOp
field.static VkRenderingAttachmentInfoKHR
malloc()
Returns a newVkRenderingAttachmentInfoKHR
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newVkRenderingAttachmentInfoKHR.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newVkRenderingAttachmentInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
.static VkRenderingAttachmentInfoKHR
malloc
(MemoryStack stack) Returns a newVkRenderingAttachmentInfoKHR
instance allocated on the specifiedMemoryStack
.pNext
(long value) Sets the specified value to thepNext
field.resolveImageLayout
(int value) Sets the specified value to theresolveImageLayout
field.resolveImageView
(long value) Sets the specified value to theresolveImageView
field.resolveMode
(int value) Sets the specified value to theresolveMode
field.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.Copies the specified struct data to this struct.storeOp
(int value) Sets the specified value to thestoreOp
field.sType
(int value) Sets the specified value to thesType
field.Sets theSTRUCTURE_TYPE_RENDERING_ATTACHMENT_INFO
value to thesType
field.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, pNext, resolveImageLayout, resolveImageView, resolveMode, set, sizeof, storeOp, sType
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
VkRenderingAttachmentInfoKHR
Creates aVkRenderingAttachmentInfoKHR
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Details
-
sType
Sets the specified value to thesType
field.- Overrides:
sType
in classVkRenderingAttachmentInfo
-
sType$Default
Sets theSTRUCTURE_TYPE_RENDERING_ATTACHMENT_INFO
value to thesType
field.- Overrides:
sType$Default
in classVkRenderingAttachmentInfo
-
pNext
Sets the specified value to thepNext
field.- Overrides:
pNext
in classVkRenderingAttachmentInfo
-
imageView
Sets the specified value to theimageView
field.- Overrides:
imageView
in classVkRenderingAttachmentInfo
-
imageLayout
Sets the specified value to theimageLayout
field.- Overrides:
imageLayout
in classVkRenderingAttachmentInfo
-
resolveMode
Sets the specified value to theresolveMode
field.- Overrides:
resolveMode
in classVkRenderingAttachmentInfo
-
resolveImageView
Sets the specified value to theresolveImageView
field.- Overrides:
resolveImageView
in classVkRenderingAttachmentInfo
-
resolveImageLayout
Sets the specified value to theresolveImageLayout
field.- Overrides:
resolveImageLayout
in classVkRenderingAttachmentInfo
-
loadOp
Sets the specified value to theloadOp
field.- Overrides:
loadOp
in classVkRenderingAttachmentInfo
-
storeOp
Sets the specified value to thestoreOp
field.- Overrides:
storeOp
in classVkRenderingAttachmentInfo
-
clearValue
Copies the specifiedVkClearValue
to theclearValue
field.- Overrides:
clearValue
in classVkRenderingAttachmentInfo
-
clearValue
Passes theclearValue
field to the specifiedConsumer
.- Overrides:
clearValue
in 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:
set
in classVkRenderingAttachmentInfo
-
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newVkRenderingAttachmentInfoKHR
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newVkRenderingAttachmentInfoKHR
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newVkRenderingAttachmentInfoKHR
instance allocated withBufferUtils
. -
create
Returns a newVkRenderingAttachmentInfoKHR
instance for the specified memory address. -
createSafe
-
malloc
Returns a newVkRenderingAttachmentInfoKHR.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newVkRenderingAttachmentInfoKHR.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newVkRenderingAttachmentInfoKHR.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aVkRenderingAttachmentInfoKHR.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newVkRenderingAttachmentInfoKHR
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newVkRenderingAttachmentInfoKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newVkRenderingAttachmentInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newVkRenderingAttachmentInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-