Package org.lwjgl.vulkan
Class VkImageResolve
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
Structure specifying an image resolve operation.
Valid Usage
- The
aspectMask
member ofsrcSubresource
anddstSubresource
must only containIMAGE_ASPECT_COLOR_BIT
- If neither of the
layerCount
members ofsrcSubresource
ordstSubresource
areREMAINING_ARRAY_LAYERS
, thelayerCount
member ofsrcSubresource
anddstSubresource
must match - If the
maintenance5
feature is not enabled, thelayerCount
member ofsrcSubresource
ordstSubresource
must not beREMAINING_ARRAY_LAYERS
- If one of the
layerCount
members ofsrcSubresource
ordstSubresource
isREMAINING_ARRAY_LAYERS
, the other member must be eitherREMAINING_ARRAY_LAYERS
or equal to thearrayLayers
member of theVkImageCreateInfo
used to create the image minusbaseArrayLayer
Valid Usage (Implicit)
srcSubresource
must be a validVkImageSubresourceLayers
structuredstSubresource
must be a validVkImageSubresourceLayers
structure
See Also
VkExtent3D
, VkImageSubresourceLayers
, VkOffset3D
, CmdResolveImage
Layout
struct VkImageResolve {
VkImageSubresourceLayers
srcSubresource()
;
VkOffset3D
srcOffset()
;
VkImageSubresourceLayers
dstSubresource()
;
VkOffset3D
dstOffset()
;
VkExtent3D
extent()
;
}
-
Nested Class Summary
Nested 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
Modifier 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.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionVkImageResolve
(ByteBuffer container) Creates aVkImageResolve
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkImageResolve
calloc()
Returns a newVkImageResolve
instance allocated withmemCalloc
.static VkImageResolve.Buffer
calloc
(int capacity) Returns a newVkImageResolve.Buffer
instance allocated withmemCalloc
.static VkImageResolve.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newVkImageResolve.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkImageResolve
calloc
(MemoryStack stack) Returns a newVkImageResolve
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkImageResolve
Deprecated.static VkImageResolve.Buffer
callocStack
(int capacity) Deprecated.static VkImageResolve.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static VkImageResolve
callocStack
(MemoryStack stack) Deprecated.static VkImageResolve
create()
Returns a newVkImageResolve
instance allocated withBufferUtils
.static VkImageResolve.Buffer
create
(int capacity) Returns a newVkImageResolve.Buffer
instance allocated withBufferUtils
.static VkImageResolve
create
(long address) Returns a newVkImageResolve
instance for the specified memory address.static VkImageResolve.Buffer
create
(long address, int capacity) Create aVkImageResolve.Buffer
instance at the specified memory.static VkImageResolve
createSafe
(long address) static VkImageResolve.Buffer
createSafe
(long address, int capacity) seesrcOffset
dstOffset
(Consumer<VkOffset3D> consumer) Passes thedstOffset()
field to the specifiedConsumer
.dstOffset
(VkOffset3D value) Copies the specifiedVkOffset3D
to thedstOffset()
field.seesrcSubresource
dstSubresource
(Consumer<VkImageSubresourceLayers> consumer) Passes thedstSubresource()
field to the specifiedConsumer
.Copies the specifiedVkImageSubresourceLayers
to thedstSubresource()
field.extent()
the size in texels of the source image to resolve inwidth
,height
anddepth
.extent
(Consumer<VkExtent3D> consumer) extent
(VkExtent3D value) Copies the specifiedVkExtent3D
to theextent()
field.static VkImageResolve
malloc()
Returns a newVkImageResolve
instance allocated withmemAlloc
.static VkImageResolve.Buffer
malloc
(int capacity) Returns a newVkImageResolve.Buffer
instance allocated withmemAlloc
.static VkImageResolve.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newVkImageResolve.Buffer
instance allocated on the specifiedMemoryStack
.static VkImageResolve
malloc
(MemoryStack stack) Returns a newVkImageResolve
instance allocated on the specifiedMemoryStack
.static VkImageResolve
Deprecated.static VkImageResolve.Buffer
mallocStack
(int capacity) Deprecated.static VkImageResolve.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static VkImageResolve
mallocStack
(MemoryStack stack) Deprecated.static VkOffset3D
ndstOffset
(long struct) Unsafe version ofdstOffset()
.static void
ndstOffset
(long struct, VkOffset3D value) Unsafe version ofdstOffset
.static VkImageSubresourceLayers
ndstSubresource
(long struct) Unsafe version ofdstSubresource()
.static void
ndstSubresource
(long struct, VkImageSubresourceLayers value) Unsafe version ofdstSubresource
.static VkExtent3D
nextent
(long struct) Unsafe version ofextent()
.static void
nextent
(long struct, VkExtent3D value) Unsafe version ofextent
.static VkOffset3D
nsrcOffset
(long struct) Unsafe version ofsrcOffset()
.static void
nsrcOffset
(long struct, VkOffset3D value) Unsafe version ofsrcOffset
.static VkImageSubresourceLayers
nsrcSubresource
(long struct) Unsafe version ofsrcSubresource()
.static void
nsrcSubresource
(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.int
sizeof()
Returnssizeof(struct)
.srcOffset
anddstOffset
select the initialx
,y
, andz
offsets 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 specifiedVkOffset3D
to thesrcOffset()
field.srcSubresource
anddstSubresource
areVkImageSubresourceLayers
structures 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 specifiedVkImageSubresourceLayers
to thesrcSubresource()
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. -
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 aVkImageResolve
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<VkImageResolve>
-
srcSubresource
srcSubresource
anddstSubresource
areVkImageSubresourceLayers
structures 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
srcOffset
anddstOffset
select the initialx
,y
, andz
offsets 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
,height
anddepth
. -
srcSubresource
Copies the specifiedVkImageSubresourceLayers
to thesrcSubresource()
field. -
srcSubresource
Passes thesrcSubresource()
field to the specifiedConsumer
. -
srcOffset
Copies the specifiedVkOffset3D
to thesrcOffset()
field. -
srcOffset
Passes thesrcOffset()
field to the specifiedConsumer
. -
dstSubresource
Copies the specifiedVkImageSubresourceLayers
to thedstSubresource()
field. -
dstSubresource
Passes thedstSubresource()
field to the specifiedConsumer
. -
dstOffset
Copies the specifiedVkOffset3D
to thedstOffset()
field. -
dstOffset
Passes thedstOffset()
field to the specifiedConsumer
. -
extent
Copies the specifiedVkExtent3D
to 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 newVkImageResolve
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newVkImageResolve
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newVkImageResolve
instance allocated withBufferUtils
. -
create
Returns a newVkImageResolve
instance for the specified memory address. -
createSafe
-
malloc
Returns a newVkImageResolve.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newVkImageResolve.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newVkImageResolve.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aVkImageResolve.Buffer
instance 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.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newVkImageResolve
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newVkImageResolve
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newVkImageResolve.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newVkImageResolve.Buffer
instance allocated on the specifiedMemoryStack
and 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
.
-