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, NativeResource, Pointer
public class VkImageResolve extends Struct
Khronos Reference Page
Vulkan SpecificationSpecifies a region to resolve.
Valid Usage
srcSubresourcemust be a validVkImageSubresourceLayersstructuredstSubresourcemust be a validVkImageSubresourceLayersstructure- 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
Member documentation
srcSubresource– aVkImageSubresourceLayersstructure specifying the image subresource of the image used for the source image datasrcOffset– selects the initial x, y, and z offsets in texels of the sub-region of the source image datadstSubresource– aVkImageSubresourceLayersstructure specifying the image subresource of the image used for the destination image datadstOffset– selects the initial x, y, and z offsets in texels of the sub-region of the destination image dataextent– the size in texels of the source image to resolve in width, height and depth
Layout
struct VkImageResolve {VkImageSubresourceLayerssrcSubresource;VkOffset3DsrcOffset;VkImageSubresourceLayersdstSubresource;VkOffset3DdstOffset;VkExtent3Dextent; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classVkImageResolve.BufferAn array ofVkImageResolvestructs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field and Description static intSIZEOFThe struct size in bytes.-
Fields inherited from interface org.lwjgl.system.Pointer
POINTER_SHIFT, POINTER_SIZE
-
-
Constructor Summary
Constructors Constructor and 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 and 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, MemoryStack stack)Returns a newVkImageResolve.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImageResolvecallocStack(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 ornullif the address isNULL.static VkImageResolve.Buffercreate(long address, int capacity)Create aVkImageResolve.Bufferinstance at the specified memory.VkOffset3DdstOffset()Returns aVkOffset3Dview of thedstOffsetfield.VkImageResolvedstOffset(VkOffset3D value)Copies the specifiedVkOffset3Dto thedstOffsetfield.VkImageSubresourceLayersdstSubresource()Returns aVkImageSubresourceLayersview of thedstSubresourcefield.VkImageResolvedstSubresource(VkImageSubresourceLayers value)Copies the specifiedVkImageSubresourceLayersto thedstSubresourcefield.VkExtent3Dextent()Returns aVkExtent3Dview of theextentfield.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, MemoryStack stack)Returns a newVkImageResolve.Bufferinstance allocated on the specifiedMemoryStack.static VkImageResolvemallocStack(MemoryStack stack)Returns a newVkImageResolveinstance allocated on the specifiedMemoryStack.VkImageResolvenset(long struct)Unsafe version ofset.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()Returns thesizeof(struct).VkOffset3DsrcOffset()Returns aVkOffset3Dview of thesrcOffsetfield.VkImageResolvesrcOffset(VkOffset3D value)Copies the specifiedVkOffset3Dto thesrcOffsetfield.VkImageSubresourceLayerssrcSubresource()Returns aVkImageSubresourceLayersview of thesrcSubresourcefield.VkImageResolvesrcSubresource(VkImageSubresourceLayers value)Copies the specifiedVkImageSubresourceLayersto thesrcSubresourcefield.-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
-
-
-
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()
Description copied from class:StructReturns thesizeof(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.
-
srcOffset
public VkImageResolve srcOffset(VkOffset3D value)
Copies the specifiedVkOffset3Dto thesrcOffsetfield.
-
dstSubresource
public VkImageResolve dstSubresource(VkImageSubresourceLayers value)
Copies the specifiedVkImageSubresourceLayersto thedstSubresourcefield.
-
dstOffset
public VkImageResolve dstOffset(VkOffset3D value)
Copies the specifiedVkOffset3Dto thedstOffsetfield.
-
extent
public VkImageResolve extent(VkExtent3D value)
Copies the specifiedVkExtent3Dto theextentfield.
-
set
public VkImageResolve set(VkImageSubresourceLayers srcSubresource, VkOffset3D srcOffset, VkImageSubresourceLayers dstSubresource, VkOffset3D dstOffset, VkExtent3D extent)
Initializes this struct with the specified values.
-
nset
public VkImageResolve nset(long struct)
Unsafe version ofset.
-
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 ornullif the address isNULL.
-
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
-
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(MemoryStack stack)
Returns a newVkImageResolveinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkImageResolve callocStack(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, 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, 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
-
-