Package org.lwjgl.vulkan
Class VkImageBlit2KHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkImageBlit2
-
- org.lwjgl.vulkan.VkImageBlit2KHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkImageBlit2KHR extends VkImageBlit2
SeeVkImageBlit2.Layout
struct VkImageBlit2KHR { VkStructureType sType; void const * pNext;VkImageSubresourceLayerssrcSubresource;VkOffset3DsrcOffsets[2];VkImageSubresourceLayersdstSubresource;VkOffset3DdstOffsets[2]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkImageBlit2KHR.BufferAn array ofVkImageBlit2KHRstructs.
-
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.VkImageBlit2
ALIGNOF, DSTOFFSETS, DSTSUBRESOURCE, PNEXT, SIZEOF, SRCOFFSETS, SRCSUBRESOURCE, STYPE
-
-
Constructor Summary
Constructors Constructor Description VkImageBlit2KHR(java.nio.ByteBuffer container)Creates aVkImageBlit2KHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkImageBlit2KHRcalloc()Returns a newVkImageBlit2KHRinstance allocated withmemCalloc.static VkImageBlit2KHR.Buffercalloc(int capacity)Returns a newVkImageBlit2KHR.Bufferinstance allocated withmemCalloc.static VkImageBlit2KHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkImageBlit2KHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImageBlit2KHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkImageBlit2KHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImageBlit2KHRcreate()Returns a newVkImageBlit2KHRinstance allocated withBufferUtils.static VkImageBlit2KHR.Buffercreate(int capacity)Returns a newVkImageBlit2KHR.Bufferinstance allocated withBufferUtils.static VkImageBlit2KHRcreate(long address)Returns a newVkImageBlit2KHRinstance for the specified memory address.static VkImageBlit2KHR.Buffercreate(long address, int capacity)Create aVkImageBlit2KHR.Bufferinstance at the specified memory.static VkImageBlit2KHRcreateSafe(long address)static VkImageBlit2KHR.BuffercreateSafe(long address, int capacity)VkImageBlit2KHRdstOffsets(int index, java.util.function.Consumer<VkOffset3D> consumer)Passes the element atindexof thedstOffsetsfield to the specifiedConsumer.VkImageBlit2KHRdstOffsets(int index, VkOffset3D value)Copies the specifiedVkOffset3Dat the specified index of thedstOffsetsfield.VkImageBlit2KHRdstOffsets(java.util.function.Consumer<VkOffset3D.Buffer> consumer)Passes thedstOffsetsfield to the specifiedConsumer.VkImageBlit2KHRdstOffsets(VkOffset3D.Buffer value)Copies the specifiedVkOffset3D.Bufferto thedstOffsetsfield.VkImageBlit2KHRdstSubresource(java.util.function.Consumer<VkImageSubresourceLayers> consumer)Passes thedstSubresourcefield to the specifiedConsumer.VkImageBlit2KHRdstSubresource(VkImageSubresourceLayers value)Copies the specifiedVkImageSubresourceLayersto thedstSubresourcefield.static VkImageBlit2KHRmalloc()Returns a newVkImageBlit2KHRinstance allocated withmemAlloc.static VkImageBlit2KHR.Buffermalloc(int capacity)Returns a newVkImageBlit2KHR.Bufferinstance allocated withmemAlloc.static VkImageBlit2KHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkImageBlit2KHR.Bufferinstance allocated on the specifiedMemoryStack.static VkImageBlit2KHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkImageBlit2KHRinstance allocated on the specifiedMemoryStack.VkImageBlit2KHRpNext(long value)Sets the specified value to thepNextfield.VkImageBlit2KHRset(int sType, long pNext, VkImageSubresourceLayers srcSubresource, VkOffset3D.Buffer srcOffsets, VkImageSubresourceLayers dstSubresource, VkOffset3D.Buffer dstOffsets)Initializes this struct with the specified values.VkImageBlit2KHRset(VkImageBlit2KHR src)Copies the specified struct data to this struct.VkImageBlit2KHRsrcOffsets(int index, java.util.function.Consumer<VkOffset3D> consumer)Passes the element atindexof thesrcOffsetsfield to the specifiedConsumer.VkImageBlit2KHRsrcOffsets(int index, VkOffset3D value)Copies the specifiedVkOffset3Dat the specified index of thesrcOffsetsfield.VkImageBlit2KHRsrcOffsets(java.util.function.Consumer<VkOffset3D.Buffer> consumer)Passes thesrcOffsetsfield to the specifiedConsumer.VkImageBlit2KHRsrcOffsets(VkOffset3D.Buffer value)Copies the specifiedVkOffset3D.Bufferto thesrcOffsetsfield.VkImageBlit2KHRsrcSubresource(java.util.function.Consumer<VkImageSubresourceLayers> consumer)Passes thesrcSubresourcefield to the specifiedConsumer.VkImageBlit2KHRsrcSubresource(VkImageSubresourceLayers value)Copies the specifiedVkImageSubresourceLayersto thesrcSubresourcefield.VkImageBlit2KHRsType(int value)Sets the specified value to thesTypefield.VkImageBlit2KHRsType$Default()Sets theSTRUCTURE_TYPE_IMAGE_BLIT_2value to thesTypefield.-
Methods inherited from class org.lwjgl.vulkan.VkImageBlit2
dstOffsets, dstOffsets, dstSubresource, ndstOffsets, ndstOffsets, ndstOffsets, ndstOffsets, ndstSubresource, ndstSubresource, npNext, npNext, nsrcOffsets, nsrcOffsets, nsrcOffsets, nsrcOffsets, nsrcSubresource, nsrcSubresource, nsType, nsType, pNext, pNext, set, sizeof, srcOffsets, srcOffsets, srcSubresource, sType
-
-
-
-
Constructor Detail
-
VkImageBlit2KHR
public VkImageBlit2KHR(java.nio.ByteBuffer container)
Creates aVkImageBlit2KHRinstance 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 VkImageBlit2KHR sType(int value)
Sets the specified value to thesTypefield.- Overrides:
sTypein classVkImageBlit2
-
sType$Default
public VkImageBlit2KHR sType$Default()
Sets theSTRUCTURE_TYPE_IMAGE_BLIT_2value to thesTypefield.- Overrides:
sType$Defaultin classVkImageBlit2
-
pNext
public VkImageBlit2KHR pNext(long value)
Sets the specified value to thepNextfield.- Overrides:
pNextin classVkImageBlit2
-
srcSubresource
public VkImageBlit2KHR srcSubresource(VkImageSubresourceLayers value)
Copies the specifiedVkImageSubresourceLayersto thesrcSubresourcefield.- Overrides:
srcSubresourcein classVkImageBlit2
-
srcSubresource
public VkImageBlit2KHR srcSubresource(java.util.function.Consumer<VkImageSubresourceLayers> consumer)
Passes thesrcSubresourcefield to the specifiedConsumer.- Overrides:
srcSubresourcein classVkImageBlit2
-
srcOffsets
public VkImageBlit2KHR srcOffsets(VkOffset3D.Buffer value)
Copies the specifiedVkOffset3D.Bufferto thesrcOffsetsfield.- Overrides:
srcOffsetsin classVkImageBlit2
-
srcOffsets
public VkImageBlit2KHR srcOffsets(int index, VkOffset3D value)
Copies the specifiedVkOffset3Dat the specified index of thesrcOffsetsfield.- Overrides:
srcOffsetsin classVkImageBlit2
-
srcOffsets
public VkImageBlit2KHR srcOffsets(java.util.function.Consumer<VkOffset3D.Buffer> consumer)
Passes thesrcOffsetsfield to the specifiedConsumer.- Overrides:
srcOffsetsin classVkImageBlit2
-
srcOffsets
public VkImageBlit2KHR srcOffsets(int index, java.util.function.Consumer<VkOffset3D> consumer)
Passes the element atindexof thesrcOffsetsfield to the specifiedConsumer.- Overrides:
srcOffsetsin classVkImageBlit2
-
dstSubresource
public VkImageBlit2KHR dstSubresource(VkImageSubresourceLayers value)
Copies the specifiedVkImageSubresourceLayersto thedstSubresourcefield.- Overrides:
dstSubresourcein classVkImageBlit2
-
dstSubresource
public VkImageBlit2KHR dstSubresource(java.util.function.Consumer<VkImageSubresourceLayers> consumer)
Passes thedstSubresourcefield to the specifiedConsumer.- Overrides:
dstSubresourcein classVkImageBlit2
-
dstOffsets
public VkImageBlit2KHR dstOffsets(VkOffset3D.Buffer value)
Copies the specifiedVkOffset3D.Bufferto thedstOffsetsfield.- Overrides:
dstOffsetsin classVkImageBlit2
-
dstOffsets
public VkImageBlit2KHR dstOffsets(int index, VkOffset3D value)
Copies the specifiedVkOffset3Dat the specified index of thedstOffsetsfield.- Overrides:
dstOffsetsin classVkImageBlit2
-
dstOffsets
public VkImageBlit2KHR dstOffsets(java.util.function.Consumer<VkOffset3D.Buffer> consumer)
Passes thedstOffsetsfield to the specifiedConsumer.- Overrides:
dstOffsetsin classVkImageBlit2
-
dstOffsets
public VkImageBlit2KHR dstOffsets(int index, java.util.function.Consumer<VkOffset3D> consumer)
Passes the element atindexof thedstOffsetsfield to the specifiedConsumer.- Overrides:
dstOffsetsin classVkImageBlit2
-
set
public VkImageBlit2KHR set(int sType, long pNext, VkImageSubresourceLayers srcSubresource, VkOffset3D.Buffer srcOffsets, VkImageSubresourceLayers dstSubresource, VkOffset3D.Buffer dstOffsets)
Initializes this struct with the specified values.- Overrides:
setin classVkImageBlit2
-
set
public VkImageBlit2KHR set(VkImageBlit2KHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkImageBlit2KHR malloc()
Returns a newVkImageBlit2KHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkImageBlit2KHR calloc()
Returns a newVkImageBlit2KHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkImageBlit2KHR create()
Returns a newVkImageBlit2KHRinstance allocated withBufferUtils.
-
create
public static VkImageBlit2KHR create(long address)
Returns a newVkImageBlit2KHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkImageBlit2KHR createSafe(long address)
-
malloc
public static VkImageBlit2KHR.Buffer malloc(int capacity)
Returns a newVkImageBlit2KHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkImageBlit2KHR.Buffer calloc(int capacity)
Returns a newVkImageBlit2KHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkImageBlit2KHR.Buffer create(int capacity)
Returns a newVkImageBlit2KHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkImageBlit2KHR.Buffer create(long address, int capacity)
Create aVkImageBlit2KHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkImageBlit2KHR.Buffer createSafe(long address, int capacity)
-
malloc
public static VkImageBlit2KHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkImageBlit2KHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkImageBlit2KHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkImageBlit2KHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkImageBlit2KHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkImageBlit2KHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkImageBlit2KHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkImageBlit2KHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
-