Package org.lwjgl.vulkan
Class VkImageBlit2
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
- Direct Known Subclasses:
VkImageBlit2KHR
struct VkImageBlit2 {
VkStructureType sType;
void const * pNext;
{@link VkImageSubresourceLayers VkImageSubresourceLayers} srcSubresource;
{@link VkOffset3D VkOffset3D} srcOffsets[2];
{@link VkImageSubresourceLayers VkImageSubresourceLayers} dstSubresource;
{@link VkOffset3D VkOffset3D} dstOffsets[2];
}
-
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
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionVkImageBlit2
(ByteBuffer container) Creates aVkImageBlit2
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkImageBlit2
calloc()
Returns a newVkImageBlit2
instance allocated withmemCalloc
.static VkImageBlit2.Buffer
calloc
(int capacity) Returns a newVkImageBlit2.Buffer
instance allocated withmemCalloc
.static VkImageBlit2.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newVkImageBlit2.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkImageBlit2
calloc
(MemoryStack stack) Returns a newVkImageBlit2
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkImageBlit2
create()
Returns a newVkImageBlit2
instance allocated withBufferUtils
.static VkImageBlit2.Buffer
create
(int capacity) Returns a newVkImageBlit2.Buffer
instance allocated withBufferUtils
.static VkImageBlit2
create
(long address) Returns a newVkImageBlit2
instance for the specified memory address.static VkImageBlit2.Buffer
create
(long address, int capacity) Create aVkImageBlit2.Buffer
instance at the specified memory.static @Nullable VkImageBlit2
createSafe
(long address) static @Nullable VkImageBlit2.Buffer
createSafe
(long address, int capacity) dstOffsets
(int index) dstOffsets
(int index, Consumer<VkOffset3D> consumer) dstOffsets
(int index, VkOffset3D value) Copies the specifiedVkOffset3D
at the specified index of thedstOffsets
field.dstOffsets
(Consumer<VkOffset3D.Buffer> consumer) Passes thedstOffsets
field to the specifiedConsumer
.dstOffsets
(VkOffset3D.Buffer value) Copies the specifiedVkOffset3D.Buffer
to thedstOffsets
field.dstSubresource
(Consumer<VkImageSubresourceLayers> consumer) Passes thedstSubresource
field to the specifiedConsumer
.Copies the specifiedVkImageSubresourceLayers
to thedstSubresource
field.static VkImageBlit2
malloc()
Returns a newVkImageBlit2
instance allocated withmemAlloc
.static VkImageBlit2.Buffer
malloc
(int capacity) Returns a newVkImageBlit2.Buffer
instance allocated withmemAlloc
.static VkImageBlit2.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newVkImageBlit2.Buffer
instance allocated on the specifiedMemoryStack
.static VkImageBlit2
malloc
(MemoryStack stack) Returns a newVkImageBlit2
instance allocated on the specifiedMemoryStack
.static VkOffset3D.Buffer
ndstOffsets
(long struct) Unsafe version ofdstOffsets()
.static VkOffset3D
ndstOffsets
(long struct, int index) Unsafe version ofdstOffsets
.static void
ndstOffsets
(long struct, int index, VkOffset3D value) Unsafe version ofdstOffsets
.static void
ndstOffsets
(long struct, VkOffset3D.Buffer value) Unsafe version ofdstOffsets
.static VkImageSubresourceLayers
ndstSubresource
(long struct) Unsafe version ofdstSubresource()
.static void
ndstSubresource
(long struct, VkImageSubresourceLayers value) Unsafe version ofdstSubresource
.static long
npNext
(long struct) Unsafe version ofpNext()
.static void
npNext
(long struct, long value) Unsafe version ofpNext
.static VkOffset3D.Buffer
nsrcOffsets
(long struct) Unsafe version ofsrcOffsets()
.static VkOffset3D
nsrcOffsets
(long struct, int index) Unsafe version ofsrcOffsets
.static void
nsrcOffsets
(long struct, int index, VkOffset3D value) Unsafe version ofsrcOffsets
.static void
nsrcOffsets
(long struct, VkOffset3D.Buffer value) Unsafe version ofsrcOffsets
.static VkImageSubresourceLayers
nsrcSubresource
(long struct) Unsafe version ofsrcSubresource()
.static void
nsrcSubresource
(long struct, VkImageSubresourceLayers value) Unsafe version ofsrcSubresource
.static int
nsType
(long struct) Unsafe version ofsType()
.static void
nsType
(long struct, int value) Unsafe version ofsType
.long
pNext()
pNext
(long value) Sets the specified value to thepNext
field.Prepends the specifiedVkCopyCommandTransformInfoQCOM
value to thepNext
chain.set
(int sType, long pNext, VkImageSubresourceLayers srcSubresource, VkOffset3D.Buffer srcOffsets, VkImageSubresourceLayers dstSubresource, VkOffset3D.Buffer dstOffsets) Initializes this struct with the specified values.set
(VkImageBlit2 src) Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.srcOffsets
(int index) srcOffsets
(int index, Consumer<VkOffset3D> consumer) srcOffsets
(int index, VkOffset3D value) Copies the specifiedVkOffset3D
at the specified index of thesrcOffsets
field.srcOffsets
(Consumer<VkOffset3D.Buffer> consumer) Passes thesrcOffsets
field to the specifiedConsumer
.srcOffsets
(VkOffset3D.Buffer value) Copies the specifiedVkOffset3D.Buffer
to thesrcOffsets
field.srcSubresource
(Consumer<VkImageSubresourceLayers> consumer) Passes thesrcSubresource
field to the specifiedConsumer
.Copies the specifiedVkImageSubresourceLayers
to thesrcSubresource
field.int
sType()
sType
(int value) Sets the specified value to thesType
field.Sets theSTRUCTURE_TYPE_IMAGE_BLIT_2
value to thesType
field.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
STYPE
public static final int STYPEThe struct member offsets. -
PNEXT
public static final int PNEXTThe struct member offsets. -
SRCSUBRESOURCE
public static final int SRCSUBRESOURCEThe struct member offsets. -
SRCOFFSETS
public static final int SRCOFFSETSThe struct member offsets. -
DSTSUBRESOURCE
public static final int DSTSUBRESOURCEThe struct member offsets. -
DSTOFFSETS
public static final int DSTOFFSETSThe struct member offsets.
-
-
Constructor Details
-
VkImageBlit2
Creates aVkImageBlit2
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
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<VkImageBlit2>
-
sType
public int sType()- Returns:
- the value of the
sType
field.
-
pNext
public long pNext()- Returns:
- the value of the
pNext
field.
-
srcSubresource
- Returns:
- a
VkImageSubresourceLayers
view of thesrcSubresource
field.
-
srcOffsets
- Returns:
- a
VkOffset3D
.Buffer view of thesrcOffsets
field.
-
srcOffsets
- Returns:
- a
VkOffset3D
view of the struct at the specified index of thesrcOffsets
field.
-
dstSubresource
- Returns:
- a
VkImageSubresourceLayers
view of thedstSubresource
field.
-
dstOffsets
- Returns:
- a
VkOffset3D
.Buffer view of thedstOffsets
field.
-
dstOffsets
- Returns:
- a
VkOffset3D
view of the struct at the specified index of thedstOffsets
field.
-
sType
Sets the specified value to thesType
field. -
sType$Default
Sets theSTRUCTURE_TYPE_IMAGE_BLIT_2
value to thesType
field. -
pNext
Sets the specified value to thepNext
field. -
pNext
Prepends the specifiedVkCopyCommandTransformInfoQCOM
value to thepNext
chain. -
srcSubresource
Copies the specifiedVkImageSubresourceLayers
to thesrcSubresource
field. -
srcSubresource
Passes thesrcSubresource
field to the specifiedConsumer
. -
srcOffsets
Copies the specifiedVkOffset3D.Buffer
to thesrcOffsets
field. -
srcOffsets
Copies the specifiedVkOffset3D
at the specified index of thesrcOffsets
field. -
srcOffsets
Passes thesrcOffsets
field to the specifiedConsumer
. -
srcOffsets
-
dstSubresource
Copies the specifiedVkImageSubresourceLayers
to thedstSubresource
field. -
dstSubresource
Passes thedstSubresource
field to the specifiedConsumer
. -
dstOffsets
Copies the specifiedVkOffset3D.Buffer
to thedstOffsets
field. -
dstOffsets
Copies the specifiedVkOffset3D
at the specified index of thedstOffsets
field. -
dstOffsets
Passes thedstOffsets
field to the specifiedConsumer
. -
dstOffsets
-
set
public VkImageBlit2 set(int sType, long pNext, VkImageSubresourceLayers srcSubresource, VkOffset3D.Buffer srcOffsets, VkImageSubresourceLayers dstSubresource, VkOffset3D.Buffer dstOffsets) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newVkImageBlit2
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newVkImageBlit2
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newVkImageBlit2
instance allocated withBufferUtils
. -
create
Returns a newVkImageBlit2
instance for the specified memory address. -
createSafe
-
malloc
Returns a newVkImageBlit2.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newVkImageBlit2.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newVkImageBlit2.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aVkImageBlit2.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newVkImageBlit2
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newVkImageBlit2
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newVkImageBlit2.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newVkImageBlit2.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nsType
public static int nsType(long struct) Unsafe version ofsType()
. -
npNext
public static long npNext(long struct) Unsafe version ofpNext()
. -
nsrcSubresource
Unsafe version ofsrcSubresource()
. -
nsrcOffsets
Unsafe version ofsrcOffsets()
. -
nsrcOffsets
Unsafe version ofsrcOffsets
. -
ndstSubresource
Unsafe version ofdstSubresource()
. -
ndstOffsets
Unsafe version ofdstOffsets()
. -
ndstOffsets
Unsafe version ofdstOffsets
. -
nsType
public static void nsType(long struct, int value) Unsafe version ofsType
. -
npNext
public static void npNext(long struct, long value) Unsafe version ofpNext
. -
nsrcSubresource
Unsafe version ofsrcSubresource
. -
nsrcOffsets
Unsafe version ofsrcOffsets
. -
nsrcOffsets
Unsafe version ofsrcOffsets
. -
ndstSubresource
Unsafe version ofdstSubresource
. -
ndstOffsets
Unsafe version ofdstOffsets
. -
ndstOffsets
Unsafe version ofdstOffsets
.
-