Package org.lwjgl.vulkan
Class VkImageResolve2KHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkImageResolve2
-
- org.lwjgl.vulkan.VkImageResolve2KHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkImageResolve2KHR extends VkImageResolve2
SeeVkImageResolve2.Layout
struct VkImageResolve2KHR { VkStructureType sType; void const * pNext;VkImageSubresourceLayerssrcSubresource;VkOffset3DsrcOffset;VkImageSubresourceLayersdstSubresource;VkOffset3DdstOffset;VkExtent3Dextent; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkImageResolve2KHR.BufferAn array ofVkImageResolve2KHRstructs.
-
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.VkImageResolve2
ALIGNOF, DSTOFFSET, DSTSUBRESOURCE, EXTENT, PNEXT, SIZEOF, SRCOFFSET, SRCSUBRESOURCE, STYPE
-
-
Constructor Summary
Constructors Constructor Description VkImageResolve2KHR(java.nio.ByteBuffer container)Creates aVkImageResolve2KHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkImageResolve2KHRcalloc()Returns a newVkImageResolve2KHRinstance allocated withmemCalloc.static VkImageResolve2KHR.Buffercalloc(int capacity)Returns a newVkImageResolve2KHR.Bufferinstance allocated withmemCalloc.static VkImageResolve2KHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkImageResolve2KHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImageResolve2KHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkImageResolve2KHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImageResolve2KHRcreate()Returns a newVkImageResolve2KHRinstance allocated withBufferUtils.static VkImageResolve2KHR.Buffercreate(int capacity)Returns a newVkImageResolve2KHR.Bufferinstance allocated withBufferUtils.static VkImageResolve2KHRcreate(long address)Returns a newVkImageResolve2KHRinstance for the specified memory address.static VkImageResolve2KHR.Buffercreate(long address, int capacity)Create aVkImageResolve2KHR.Bufferinstance at the specified memory.static VkImageResolve2KHRcreateSafe(long address)static VkImageResolve2KHR.BuffercreateSafe(long address, int capacity)VkImageResolve2KHRdstOffset(java.util.function.Consumer<VkOffset3D> consumer)Passes thedstOffsetfield to the specifiedConsumer.VkImageResolve2KHRdstOffset(VkOffset3D value)Copies the specifiedVkOffset3Dto thedstOffsetfield.VkImageResolve2KHRdstSubresource(java.util.function.Consumer<VkImageSubresourceLayers> consumer)Passes thedstSubresourcefield to the specifiedConsumer.VkImageResolve2KHRdstSubresource(VkImageSubresourceLayers value)Copies the specifiedVkImageSubresourceLayersto thedstSubresourcefield.VkImageResolve2KHRextent(java.util.function.Consumer<VkExtent3D> consumer)Passes theextentfield to the specifiedConsumer.VkImageResolve2KHRextent(VkExtent3D value)Copies the specifiedVkExtent3Dto theextentfield.static VkImageResolve2KHRmalloc()Returns a newVkImageResolve2KHRinstance allocated withmemAlloc.static VkImageResolve2KHR.Buffermalloc(int capacity)Returns a newVkImageResolve2KHR.Bufferinstance allocated withmemAlloc.static VkImageResolve2KHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkImageResolve2KHR.Bufferinstance allocated on the specifiedMemoryStack.static VkImageResolve2KHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkImageResolve2KHRinstance allocated on the specifiedMemoryStack.VkImageResolve2KHRpNext(long value)Sets the specified value to thepNextfield.VkImageResolve2KHRset(int sType, long pNext, VkImageSubresourceLayers srcSubresource, VkOffset3D srcOffset, VkImageSubresourceLayers dstSubresource, VkOffset3D dstOffset, VkExtent3D extent)Initializes this struct with the specified values.VkImageResolve2KHRset(VkImageResolve2KHR src)Copies the specified struct data to this struct.VkImageResolve2KHRsrcOffset(java.util.function.Consumer<VkOffset3D> consumer)Passes thesrcOffsetfield to the specifiedConsumer.VkImageResolve2KHRsrcOffset(VkOffset3D value)Copies the specifiedVkOffset3Dto thesrcOffsetfield.VkImageResolve2KHRsrcSubresource(java.util.function.Consumer<VkImageSubresourceLayers> consumer)Passes thesrcSubresourcefield to the specifiedConsumer.VkImageResolve2KHRsrcSubresource(VkImageSubresourceLayers value)Copies the specifiedVkImageSubresourceLayersto thesrcSubresourcefield.VkImageResolve2KHRsType(int value)Sets the specified value to thesTypefield.VkImageResolve2KHRsType$Default()Sets theSTRUCTURE_TYPE_IMAGE_RESOLVE_2value to thesTypefield.-
Methods inherited from class org.lwjgl.vulkan.VkImageResolve2
dstOffset, dstSubresource, extent, ndstOffset, ndstOffset, ndstSubresource, ndstSubresource, nextent, nextent, npNext, npNext, nsrcOffset, nsrcOffset, nsrcSubresource, nsrcSubresource, nsType, nsType, pNext, set, sizeof, srcOffset, srcSubresource, sType
-
-
-
-
Constructor Detail
-
VkImageResolve2KHR
public VkImageResolve2KHR(java.nio.ByteBuffer container)
Creates aVkImageResolve2KHRinstance 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 VkImageResolve2KHR sType(int value)
Sets the specified value to thesTypefield.- Overrides:
sTypein classVkImageResolve2
-
sType$Default
public VkImageResolve2KHR sType$Default()
Sets theSTRUCTURE_TYPE_IMAGE_RESOLVE_2value to thesTypefield.- Overrides:
sType$Defaultin classVkImageResolve2
-
pNext
public VkImageResolve2KHR pNext(long value)
Sets the specified value to thepNextfield.- Overrides:
pNextin classVkImageResolve2
-
srcSubresource
public VkImageResolve2KHR srcSubresource(VkImageSubresourceLayers value)
Copies the specifiedVkImageSubresourceLayersto thesrcSubresourcefield.- Overrides:
srcSubresourcein classVkImageResolve2
-
srcSubresource
public VkImageResolve2KHR srcSubresource(java.util.function.Consumer<VkImageSubresourceLayers> consumer)
Passes thesrcSubresourcefield to the specifiedConsumer.- Overrides:
srcSubresourcein classVkImageResolve2
-
srcOffset
public VkImageResolve2KHR srcOffset(VkOffset3D value)
Copies the specifiedVkOffset3Dto thesrcOffsetfield.- Overrides:
srcOffsetin classVkImageResolve2
-
srcOffset
public VkImageResolve2KHR srcOffset(java.util.function.Consumer<VkOffset3D> consumer)
Passes thesrcOffsetfield to the specifiedConsumer.- Overrides:
srcOffsetin classVkImageResolve2
-
dstSubresource
public VkImageResolve2KHR dstSubresource(VkImageSubresourceLayers value)
Copies the specifiedVkImageSubresourceLayersto thedstSubresourcefield.- Overrides:
dstSubresourcein classVkImageResolve2
-
dstSubresource
public VkImageResolve2KHR dstSubresource(java.util.function.Consumer<VkImageSubresourceLayers> consumer)
Passes thedstSubresourcefield to the specifiedConsumer.- Overrides:
dstSubresourcein classVkImageResolve2
-
dstOffset
public VkImageResolve2KHR dstOffset(VkOffset3D value)
Copies the specifiedVkOffset3Dto thedstOffsetfield.- Overrides:
dstOffsetin classVkImageResolve2
-
dstOffset
public VkImageResolve2KHR dstOffset(java.util.function.Consumer<VkOffset3D> consumer)
Passes thedstOffsetfield to the specifiedConsumer.- Overrides:
dstOffsetin classVkImageResolve2
-
extent
public VkImageResolve2KHR extent(VkExtent3D value)
Copies the specifiedVkExtent3Dto theextentfield.- Overrides:
extentin classVkImageResolve2
-
extent
public VkImageResolve2KHR extent(java.util.function.Consumer<VkExtent3D> consumer)
Passes theextentfield to the specifiedConsumer.- Overrides:
extentin classVkImageResolve2
-
set
public VkImageResolve2KHR set(int sType, long pNext, VkImageSubresourceLayers srcSubresource, VkOffset3D srcOffset, VkImageSubresourceLayers dstSubresource, VkOffset3D dstOffset, VkExtent3D extent)
Initializes this struct with the specified values.- Overrides:
setin classVkImageResolve2
-
set
public VkImageResolve2KHR set(VkImageResolve2KHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkImageResolve2KHR malloc()
Returns a newVkImageResolve2KHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkImageResolve2KHR calloc()
Returns a newVkImageResolve2KHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkImageResolve2KHR create()
Returns a newVkImageResolve2KHRinstance allocated withBufferUtils.
-
create
public static VkImageResolve2KHR create(long address)
Returns a newVkImageResolve2KHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkImageResolve2KHR createSafe(long address)
-
malloc
public static VkImageResolve2KHR.Buffer malloc(int capacity)
Returns a newVkImageResolve2KHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkImageResolve2KHR.Buffer calloc(int capacity)
Returns a newVkImageResolve2KHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkImageResolve2KHR.Buffer create(int capacity)
Returns a newVkImageResolve2KHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkImageResolve2KHR.Buffer create(long address, int capacity)
Create aVkImageResolve2KHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkImageResolve2KHR.Buffer createSafe(long address, int capacity)
-
malloc
public static VkImageResolve2KHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkImageResolve2KHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkImageResolve2KHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkImageResolve2KHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkImageResolve2KHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkImageResolve2KHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkImageResolve2KHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkImageResolve2KHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
-