Package org.lwjgl.vulkan
Class VkImageResolve
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkImageResolve>
org.lwjgl.vulkan.VkImageResolve
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkImageResolve
extends org.lwjgl.system.Struct<VkImageResolve>
implements org.lwjgl.system.NativeResource
Structure specifying an image resolve operation.
Valid Usage
- The
aspectMaskmember ofsrcSubresourceanddstSubresourcemust only containIMAGE_ASPECT_COLOR_BIT - If neither of the
layerCountmembers ofsrcSubresourceordstSubresourceareREMAINING_ARRAY_LAYERS, thelayerCountmember ofsrcSubresourceanddstSubresourcemust match - If one of the
layerCountmembers ofsrcSubresourceordstSubresourceisREMAINING_ARRAY_LAYERS, the other member must be eitherREMAINING_ARRAY_LAYERSor equal to thearrayLayersmember of theVkImageCreateInfoused to create the image minusbaseArrayLayer
Valid Usage (Implicit)
srcSubresourcemust be a validVkImageSubresourceLayersstructuredstSubresourcemust be a validVkImageSubresourceLayersstructure
See Also
VkExtent3D, VkImageSubresourceLayers, VkOffset3D, CmdResolveImage
Layout
struct VkImageResolve {
VkImageSubresourceLayers srcSubresource();
VkOffset3D srcOffset();
VkImageSubresourceLayers dstSubresource();
VkOffset3D dstOffset();
VkExtent3D extent();
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVkImageResolve(ByteBuffer container) Creates aVkImageResolveinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkImageResolvecalloc()Returns a newVkImageResolveinstance allocated withmemCalloc.static VkImageResolve.Buffercalloc(int capacity) Returns a newVkImageResolve.Bufferinstance allocated withmemCalloc.static VkImageResolve.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkImageResolve.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImageResolvecalloc(org.lwjgl.system.MemoryStack stack) Returns a newVkImageResolveinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImageResolveDeprecated.static VkImageResolve.BuffercallocStack(int capacity) Deprecated.static VkImageResolve.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static VkImageResolvecallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.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 @Nullable VkImageResolvecreateSafe(long address) static @Nullable VkImageResolve.BuffercreateSafe(long address, int capacity) seesrcOffsetdstOffset(Consumer<VkOffset3D> consumer) Passes thedstOffset()field to the specifiedConsumer.dstOffset(VkOffset3D value) Copies the specifiedVkOffset3Dto thedstOffset()field.seesrcSubresourcedstSubresource(Consumer<VkImageSubresourceLayers> consumer) Passes thedstSubresource()field to the specifiedConsumer.Copies the specifiedVkImageSubresourceLayersto thedstSubresource()field.extent()the size in texels of the source image to resolve inwidth,heightanddepth.extent(Consumer<VkExtent3D> consumer) extent(VkExtent3D value) Copies the specifiedVkExtent3Dto theextent()field.static VkImageResolvemalloc()Returns a newVkImageResolveinstance allocated withmemAlloc.static VkImageResolve.Buffermalloc(int capacity) Returns a newVkImageResolve.Bufferinstance allocated withmemAlloc.static VkImageResolve.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkImageResolve.Bufferinstance allocated on the specifiedMemoryStack.static VkImageResolvemalloc(org.lwjgl.system.MemoryStack stack) Returns a newVkImageResolveinstance allocated on the specifiedMemoryStack.static VkImageResolveDeprecated.static VkImageResolve.BuffermallocStack(int capacity) Deprecated.static VkImageResolve.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static VkImageResolvemallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.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.set(VkImageResolve src) Copies the specified struct data to this struct.set(VkImageSubresourceLayers srcSubresource, VkOffset3D srcOffset, VkImageSubresourceLayers dstSubresource, VkOffset3D dstOffset, VkExtent3D extent) Initializes this struct with the specified values.intsizeof()srcOffsetanddstOffsetselect the initialx,y, andzoffsets in texels of the sub-regions of the source and destination image data.srcOffset(Consumer<VkOffset3D> consumer) Passes thesrcOffset()field to the specifiedConsumer.srcOffset(VkOffset3D value) Copies the specifiedVkOffset3Dto thesrcOffset()field.srcSubresourceanddstSubresourceareVkImageSubresourceLayersstructures specifying the image subresources of the images used for the source and destination image data, respectively.srcSubresource(Consumer<VkImageSubresourceLayers> consumer) Passes thesrcSubresource()field to the specifiedConsumer.Copies the specifiedVkImageSubresourceLayersto thesrcSubresource()field.Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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. -
SRCSUBRESOURCE
public static final int SRCSUBRESOURCEThe struct member offsets. -
SRCOFFSET
public static final int SRCOFFSETThe struct member offsets. -
DSTSUBRESOURCE
public static final int DSTSUBRESOURCEThe struct member offsets. -
DSTOFFSET
public static final int DSTOFFSETThe struct member offsets. -
EXTENT
public static final int EXTENTThe struct member offsets.
-
-
Constructor Details
-
VkImageResolve
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 Details
-
sizeof
public int sizeof()- Specified by:
sizeofin classorg.lwjgl.system.Struct<VkImageResolve>
-
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
seesrcSubresource -
dstOffset
seesrcOffset -
extent
the size in texels of the source image to resolve inwidth,heightanddepth. -
srcSubresource
Copies the specifiedVkImageSubresourceLayersto thesrcSubresource()field. -
srcSubresource
Passes thesrcSubresource()field to the specifiedConsumer. -
srcOffset
Copies the specifiedVkOffset3Dto thesrcOffset()field. -
srcOffset
Passes thesrcOffset()field to the specifiedConsumer. -
dstSubresource
Copies the specifiedVkImageSubresourceLayersto thedstSubresource()field. -
dstSubresource
Passes thedstSubresource()field to the specifiedConsumer. -
dstOffset
Copies the specifiedVkOffset3Dto thedstOffset()field. -
dstOffset
Passes thedstOffset()field to the specifiedConsumer. -
extent
Copies the specifiedVkExtent3Dto theextent()field. -
extent
-
set
public VkImageResolve set(VkImageSubresourceLayers srcSubresource, VkOffset3D srcOffset, VkImageSubresourceLayers dstSubresource, VkOffset3D dstOffset, VkExtent3D extent) 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 newVkImageResolveinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkImageResolveinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkImageResolveinstance allocated withBufferUtils. -
create
Returns a newVkImageResolveinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkImageResolve.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkImageResolve.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkImageResolve.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkImageResolve.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
mallocStack
@Deprecated public static VkImageResolve.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
@Deprecated public static VkImageResolve.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newVkImageResolveinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkImageResolveinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkImageResolve.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkImageResolve.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nsrcSubresource
Unsafe version ofsrcSubresource(). -
nsrcOffset
Unsafe version ofsrcOffset(). -
ndstSubresource
Unsafe version ofdstSubresource(). -
ndstOffset
Unsafe version ofdstOffset(). -
nextent
Unsafe version ofextent(). -
nsrcSubresource
Unsafe version ofsrcSubresource. -
nsrcOffset
Unsafe version ofsrcOffset. -
ndstSubresource
Unsafe version ofdstSubresource. -
ndstOffset
Unsafe version ofdstOffset. -
nextent
Unsafe version ofextent.
-