Package org.lwjgl.vulkan
Class VkImageResolve
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkImageResolve
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkImageResolve extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying an image resolve operation.Valid Usage
- The
aspectMaskmember ofsrcSubresourceanddstSubresourcemust only containIMAGE_ASPECT_COLOR_BIT - The
layerCountmember ofsrcSubresourceanddstSubresourcemust match - If either of the calling command’s
srcImageordstImageparameters are ofVkImageTypeIMAGE_TYPE_3D, thebaseArrayLayerandlayerCountmembers of bothsrcSubresourceanddstSubresourcemust be 0 and 1, respectively srcOffset.xand(extent.width srcOffset.x)must both be greater than or equal to 0 and less than or equal to the source image subresource widthsrcOffset.yand(extent.height srcOffset.y)must both be greater than or equal to 0 and less than or equal to the source image subresource height- If the calling command’s
srcImageis of typeIMAGE_TYPE_1D, thensrcOffset.ymust be 0 andextent.heightmust be 1. srcOffset.zand(extent.depth srcOffset.z)must both be greater than or equal to 0 and less than or equal to the source image subresource depth- If the calling command’s
srcImageis of typeIMAGE_TYPE_1DorIMAGE_TYPE_2D, thensrcOffset.zmust be 0 andextent.depthmust be 1. dstOffset.xand(extent.width dstOffset.x)must both be greater than or equal to 0 and less than or equal to the destination image subresource widthdstOffset.yand(extent.height dstOffset.y)must both be greater than or equal to 0 and less than or equal to the destination image subresource height- If the calling command’s
dstImageis of typeIMAGE_TYPE_1D, thendstOffset.ymust be 0 andextent.heightmust be 1. dstOffset.zand(extent.depth dstOffset.z)must both be greater than or equal to 0 and less than or equal to the destination image subresource depth- If the calling command’s
dstImageis of typeIMAGE_TYPE_1DorIMAGE_TYPE_2D, thendstOffset.zmust be 0 andextent.depthmust be 1.
Valid Usage (Implicit)
srcSubresourcemust be a validVkImageSubresourceLayersstructuredstSubresourcemust be a validVkImageSubresourceLayersstructure
See Also
VkExtent3D,VkImageSubresourceLayers,VkOffset3D,CmdResolveImageMember documentation
srcSubresource–srcSubresourceanddstSubresourceareVkImageSubresourceLayersstructures specifying the image subresources of the images used for the source and destination image data, respectively. Resolve of depth/stencil images is not supported.srcOffset–srcOffsetanddstOffsetselect the initialx,y, andzoffsets in texels of the sub-regions of the source and destination image data.dstSubresource– seesrcSubresourcedstOffset– seesrcOffsetextent– the size in texels of the source image to resolve inwidth,heightanddepth.
Layout
struct VkImageResolve {VkImageSubresourceLayerssrcSubresource;VkOffset3DsrcOffset;VkImageSubresourceLayersdstSubresource;VkOffset3DdstOffset;VkExtent3Dextent; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkImageResolve.BufferAn array ofVkImageResolvestructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intDSTOFFSET
DSTSUBRESOURCE
EXTENTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSRCOFFSET
SRCSUBRESOURCEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkImageResolve(java.nio.ByteBuffer container)Creates aVkImageResolveinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkImageResolvecalloc()Returns a newVkImageResolveinstance allocated withmemCalloc.static VkImageResolve.Buffercalloc(int capacity)Returns a newVkImageResolve.Bufferinstance allocated withmemCalloc.static VkImageResolvecallocStack()Returns a newVkImageResolveinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkImageResolve.BuffercallocStack(int capacity)Returns a newVkImageResolve.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkImageResolve.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkImageResolve.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImageResolvecallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkImageResolveinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImageResolvecreate()Returns a newVkImageResolveinstance allocated withBufferUtils.static VkImageResolve.Buffercreate(int capacity)Returns a newVkImageResolve.Bufferinstance allocated withBufferUtils.static VkImageResolvecreate(long address)Returns a newVkImageResolveinstance for the specified memory address.static VkImageResolve.Buffercreate(long address, int capacity)Create aVkImageResolve.Bufferinstance at the specified memory.static VkImageResolvecreateSafe(long address)static VkImageResolve.BuffercreateSafe(long address, int capacity)VkOffset3DdstOffset()Returns aVkOffset3Dview of thedstOffsetfield.VkImageResolvedstOffset(java.util.function.Consumer<VkOffset3D> consumer)Passes thedstOffsetfield to the specifiedConsumer.VkImageResolvedstOffset(VkOffset3D value)Copies the specifiedVkOffset3Dto thedstOffsetfield.VkImageSubresourceLayersdstSubresource()Returns aVkImageSubresourceLayersview of thedstSubresourcefield.VkImageResolvedstSubresource(java.util.function.Consumer<VkImageSubresourceLayers> consumer)Passes thedstSubresourcefield to the specifiedConsumer.VkImageResolvedstSubresource(VkImageSubresourceLayers value)Copies the specifiedVkImageSubresourceLayersto thedstSubresourcefield.VkExtent3Dextent()Returns aVkExtent3Dview of theextentfield.VkImageResolveextent(java.util.function.Consumer<VkExtent3D> consumer)Passes theextentfield to the specifiedConsumer.VkImageResolveextent(VkExtent3D value)Copies the specifiedVkExtent3Dto theextentfield.static VkImageResolvemalloc()Returns a newVkImageResolveinstance allocated withmemAlloc.static VkImageResolve.Buffermalloc(int capacity)Returns a newVkImageResolve.Bufferinstance allocated withmemAlloc.static VkImageResolvemallocStack()Returns a newVkImageResolveinstance allocated on the thread-localMemoryStack.static VkImageResolve.BuffermallocStack(int capacity)Returns a newVkImageResolve.Bufferinstance allocated on the thread-localMemoryStack.static VkImageResolve.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkImageResolve.Bufferinstance allocated on the specifiedMemoryStack.static VkImageResolvemallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkImageResolveinstance allocated on the specifiedMemoryStack.static VkOffset3DndstOffset(long struct)Unsafe version ofdstOffset().static voidndstOffset(long struct, VkOffset3D value)Unsafe version ofdstOffset.static VkImageSubresourceLayersndstSubresource(long struct)Unsafe version ofdstSubresource().static voidndstSubresource(long struct, VkImageSubresourceLayers value)Unsafe version ofdstSubresource.static VkExtent3Dnextent(long struct)Unsafe version ofextent().static voidnextent(long struct, VkExtent3D value)Unsafe version ofextent.static VkOffset3DnsrcOffset(long struct)Unsafe version ofsrcOffset().static voidnsrcOffset(long struct, VkOffset3D value)Unsafe version ofsrcOffset.static VkImageSubresourceLayersnsrcSubresource(long struct)Unsafe version ofsrcSubresource().static voidnsrcSubresource(long struct, VkImageSubresourceLayers value)Unsafe version ofsrcSubresource.VkImageResolveset(VkImageResolve src)Copies the specified struct data to this struct.VkImageResolveset(VkImageSubresourceLayers srcSubresource, VkOffset3D srcOffset, VkImageSubresourceLayers dstSubresource, VkOffset3D dstOffset, VkExtent3D extent)Initializes this struct with the specified values.intsizeof()VkOffset3DsrcOffset()Returns aVkOffset3Dview of thesrcOffsetfield.VkImageResolvesrcOffset(java.util.function.Consumer<VkOffset3D> consumer)Passes thesrcOffsetfield to the specifiedConsumer.VkImageResolvesrcOffset(VkOffset3D value)Copies the specifiedVkOffset3Dto thesrcOffsetfield.VkImageSubresourceLayerssrcSubresource()Returns aVkImageSubresourceLayersview of thesrcSubresourcefield.VkImageResolvesrcSubresource(java.util.function.Consumer<VkImageSubresourceLayers> consumer)Passes thesrcSubresourcefield to the specifiedConsumer.VkImageResolvesrcSubresource(VkImageSubresourceLayers value)Copies the specifiedVkImageSubresourceLayersto thesrcSubresourcefield.
-
-
-
Constructor Detail
-
VkImageResolve
public VkImageResolve(java.nio.ByteBuffer container)
Creates aVkImageResolveinstance 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
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
srcSubresource
public VkImageSubresourceLayers srcSubresource()
Returns aVkImageSubresourceLayersview of thesrcSubresourcefield.
-
srcOffset
public VkOffset3D srcOffset()
Returns aVkOffset3Dview of thesrcOffsetfield.
-
dstSubresource
public VkImageSubresourceLayers dstSubresource()
Returns aVkImageSubresourceLayersview of thedstSubresourcefield.
-
dstOffset
public VkOffset3D dstOffset()
Returns aVkOffset3Dview of thedstOffsetfield.
-
extent
public VkExtent3D extent()
Returns aVkExtent3Dview of theextentfield.
-
srcSubresource
public VkImageResolve srcSubresource(VkImageSubresourceLayers value)
Copies the specifiedVkImageSubresourceLayersto thesrcSubresourcefield.
-
srcSubresource
public VkImageResolve srcSubresource(java.util.function.Consumer<VkImageSubresourceLayers> consumer)
Passes thesrcSubresourcefield to the specifiedConsumer.
-
srcOffset
public VkImageResolve srcOffset(VkOffset3D value)
Copies the specifiedVkOffset3Dto thesrcOffsetfield.
-
srcOffset
public VkImageResolve srcOffset(java.util.function.Consumer<VkOffset3D> consumer)
Passes thesrcOffsetfield to the specifiedConsumer.
-
dstSubresource
public VkImageResolve dstSubresource(VkImageSubresourceLayers value)
Copies the specifiedVkImageSubresourceLayersto thedstSubresourcefield.
-
dstSubresource
public VkImageResolve dstSubresource(java.util.function.Consumer<VkImageSubresourceLayers> consumer)
Passes thedstSubresourcefield to the specifiedConsumer.
-
dstOffset
public VkImageResolve dstOffset(VkOffset3D value)
Copies the specifiedVkOffset3Dto thedstOffsetfield.
-
dstOffset
public VkImageResolve dstOffset(java.util.function.Consumer<VkOffset3D> consumer)
Passes thedstOffsetfield to the specifiedConsumer.
-
extent
public VkImageResolve extent(VkExtent3D value)
Copies the specifiedVkExtent3Dto theextentfield.
-
extent
public VkImageResolve extent(java.util.function.Consumer<VkExtent3D> consumer)
Passes theextentfield to the specifiedConsumer.
-
set
public VkImageResolve set(VkImageSubresourceLayers srcSubresource, VkOffset3D srcOffset, VkImageSubresourceLayers dstSubresource, VkOffset3D dstOffset, VkExtent3D extent)
Initializes this struct with the specified values.
-
set
public VkImageResolve set(VkImageResolve src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkImageResolve malloc()
Returns a newVkImageResolveinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkImageResolve calloc()
Returns a newVkImageResolveinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkImageResolve create()
Returns a newVkImageResolveinstance allocated withBufferUtils.
-
create
public static VkImageResolve create(long address)
Returns a newVkImageResolveinstance for the specified memory address.
-
createSafe
@Nullable public static VkImageResolve createSafe(long address)
-
malloc
public static VkImageResolve.Buffer malloc(int capacity)
Returns a newVkImageResolve.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkImageResolve.Buffer calloc(int capacity)
Returns a newVkImageResolve.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkImageResolve.Buffer create(int capacity)
Returns a newVkImageResolve.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkImageResolve.Buffer create(long address, int capacity)
Create aVkImageResolve.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkImageResolve.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkImageResolve mallocStack()
Returns a newVkImageResolveinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkImageResolve callocStack()
Returns a newVkImageResolveinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkImageResolve mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkImageResolveinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkImageResolve callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkImageResolveinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkImageResolve.Buffer mallocStack(int capacity)
Returns a newVkImageResolve.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkImageResolve.Buffer callocStack(int capacity)
Returns a newVkImageResolve.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkImageResolve.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkImageResolve.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkImageResolve.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkImageResolve.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nsrcSubresource
public static VkImageSubresourceLayers nsrcSubresource(long struct)
Unsafe version ofsrcSubresource().
-
nsrcOffset
public static VkOffset3D nsrcOffset(long struct)
Unsafe version ofsrcOffset().
-
ndstSubresource
public static VkImageSubresourceLayers ndstSubresource(long struct)
Unsafe version ofdstSubresource().
-
ndstOffset
public static VkOffset3D ndstOffset(long struct)
Unsafe version ofdstOffset().
-
nextent
public static VkExtent3D nextent(long struct)
Unsafe version ofextent().
-
nsrcSubresource
public static void nsrcSubresource(long struct, VkImageSubresourceLayers value)Unsafe version ofsrcSubresource.
-
nsrcOffset
public static void nsrcOffset(long struct, VkOffset3D value)Unsafe version ofsrcOffset.
-
ndstSubresource
public static void ndstSubresource(long struct, VkImageSubresourceLayers value)Unsafe version ofdstSubresource.
-
ndstOffset
public static void ndstOffset(long struct, VkOffset3D value)Unsafe version ofdstOffset.
-
nextent
public static void nextent(long struct, VkExtent3D value)Unsafe version ofextent.
-
-