Package org.lwjgl.vulkan
Class VkImageSubresource
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkImageSubresource
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkImageSubresource extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying an image subresource.Valid Usage (Implicit)
aspectMaskmust be a valid combination ofVkImageAspectFlagBitsvaluesaspectMaskmust not be 0
See Also
VkSparseImageMemoryBind,GetImageSubresourceLayoutLayout
struct VkImageSubresource { VkImageAspectFlagsaspectMask(); uint32_tmipLevel(); uint32_tarrayLayer(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkImageSubresource.BufferAn array ofVkImageSubresourcestructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intARRAYLAYER
ASPECTMASK
MIPLEVELThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description VkImageSubresource(java.nio.ByteBuffer container)Creates aVkImageSubresourceinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intarrayLayer()selects the array layer.VkImageSubresourcearrayLayer(int value)Sets the specified value to thearrayLayer()field.intaspectMask()aVkImageAspectFlagsvalue selecting the image aspect.VkImageSubresourceaspectMask(int value)Sets the specified value to theaspectMask()field.static VkImageSubresourcecalloc()Returns a newVkImageSubresourceinstance allocated withmemCalloc.static VkImageSubresource.Buffercalloc(int capacity)Returns a newVkImageSubresource.Bufferinstance allocated withmemCalloc.static VkImageSubresource.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkImageSubresource.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImageSubresourcecalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkImageSubresourceinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImageSubresourcecallocStack()Deprecated.static VkImageSubresource.BuffercallocStack(int capacity)Deprecated.static VkImageSubresource.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkImageSubresourcecallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static VkImageSubresourcecreate()Returns a newVkImageSubresourceinstance allocated withBufferUtils.static VkImageSubresource.Buffercreate(int capacity)Returns a newVkImageSubresource.Bufferinstance allocated withBufferUtils.static VkImageSubresourcecreate(long address)Returns a newVkImageSubresourceinstance for the specified memory address.static VkImageSubresource.Buffercreate(long address, int capacity)Create aVkImageSubresource.Bufferinstance at the specified memory.static VkImageSubresourcecreateSafe(long address)static VkImageSubresource.BuffercreateSafe(long address, int capacity)static VkImageSubresourcemalloc()Returns a newVkImageSubresourceinstance allocated withmemAlloc.static VkImageSubresource.Buffermalloc(int capacity)Returns a newVkImageSubresource.Bufferinstance allocated withmemAlloc.static VkImageSubresource.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkImageSubresource.Bufferinstance allocated on the specifiedMemoryStack.static VkImageSubresourcemalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkImageSubresourceinstance allocated on the specifiedMemoryStack.static VkImageSubresourcemallocStack()Deprecated.static VkImageSubresource.BuffermallocStack(int capacity)Deprecated.static VkImageSubresource.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkImageSubresourcemallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.intmipLevel()selects the mipmap level.VkImageSubresourcemipLevel(int value)Sets the specified value to themipLevel()field.static intnarrayLayer(long struct)Unsafe version ofarrayLayer().static voidnarrayLayer(long struct, int value)Unsafe version ofarrayLayer.static intnaspectMask(long struct)Unsafe version ofaspectMask().static voidnaspectMask(long struct, int value)Unsafe version ofaspectMask.static intnmipLevel(long struct)Unsafe version ofmipLevel().static voidnmipLevel(long struct, int value)Unsafe version ofmipLevel.VkImageSubresourceset(int aspectMask, int mipLevel, int arrayLayer)Initializes this struct with the specified values.VkImageSubresourceset(VkImageSubresource src)Copies the specified struct data to this struct.intsizeof()
-
-
-
Constructor Detail
-
VkImageSubresource
public VkImageSubresource(java.nio.ByteBuffer container)
Creates aVkImageSubresourceinstance 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
-
aspectMask
public int aspectMask()
aVkImageAspectFlagsvalue selecting the image aspect.
-
mipLevel
public int mipLevel()
selects the mipmap level.
-
arrayLayer
public int arrayLayer()
selects the array layer.
-
aspectMask
public VkImageSubresource aspectMask(int value)
Sets the specified value to theaspectMask()field.
-
mipLevel
public VkImageSubresource mipLevel(int value)
Sets the specified value to themipLevel()field.
-
arrayLayer
public VkImageSubresource arrayLayer(int value)
Sets the specified value to thearrayLayer()field.
-
set
public VkImageSubresource set(int aspectMask, int mipLevel, int arrayLayer)
Initializes this struct with the specified values.
-
set
public VkImageSubresource set(VkImageSubresource src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkImageSubresource malloc()
Returns a newVkImageSubresourceinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkImageSubresource calloc()
Returns a newVkImageSubresourceinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkImageSubresource create()
Returns a newVkImageSubresourceinstance allocated withBufferUtils.
-
create
public static VkImageSubresource create(long address)
Returns a newVkImageSubresourceinstance for the specified memory address.
-
createSafe
@Nullable public static VkImageSubresource createSafe(long address)
-
malloc
public static VkImageSubresource.Buffer malloc(int capacity)
Returns a newVkImageSubresource.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkImageSubresource.Buffer calloc(int capacity)
Returns a newVkImageSubresource.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkImageSubresource.Buffer create(int capacity)
Returns a newVkImageSubresource.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkImageSubresource.Buffer create(long address, int capacity)
Create aVkImageSubresource.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkImageSubresource.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static VkImageSubresource mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkImageSubresource callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkImageSubresource mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkImageSubresource callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkImageSubresource.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkImageSubresource.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkImageSubresource.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 VkImageSubresource.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkImageSubresource malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkImageSubresourceinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkImageSubresource calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkImageSubresourceinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkImageSubresource.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkImageSubresource.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkImageSubresource.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkImageSubresource.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
naspectMask
public static int naspectMask(long struct)
Unsafe version ofaspectMask().
-
nmipLevel
public static int nmipLevel(long struct)
Unsafe version ofmipLevel().
-
narrayLayer
public static int narrayLayer(long struct)
Unsafe version ofarrayLayer().
-
naspectMask
public static void naspectMask(long struct, int value)Unsafe version ofaspectMask.
-
nmipLevel
public static void nmipLevel(long struct, int value)Unsafe version ofmipLevel.
-
narrayLayer
public static void narrayLayer(long struct, int value)Unsafe version ofarrayLayer.
-
-