Package org.lwjgl.vulkan
Class VkImageSubresourceLayers
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
public class VkImageSubresourceLayers
extends Struct<VkImageSubresourceLayers>
implements NativeResource
struct VkImageSubresourceLayers {
VkImageAspectFlags aspectMask;
uint32_t mipLevel;
uint32_t baseArrayLayer;
uint32_t layerCount;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
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 member offsets.static final intThe struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVkImageSubresourceLayers(ByteBuffer container) Creates aVkImageSubresourceLayersinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionintaspectMask(int value) Sets the specified value to theaspectMaskfield.intbaseArrayLayer(int value) Sets the specified value to thebaseArrayLayerfield.static VkImageSubresourceLayerscalloc()Returns a newVkImageSubresourceLayersinstance allocated withmemCalloc.calloc(int capacity) Returns a newVkImageSubresourceLayers.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newVkImageSubresourceLayers.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImageSubresourceLayerscalloc(MemoryStack stack) Returns a newVkImageSubresourceLayersinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImageSubresourceLayerscreate()Returns a newVkImageSubresourceLayersinstance allocated withBufferUtils.create(int capacity) Returns a newVkImageSubresourceLayers.Bufferinstance allocated withBufferUtils.static VkImageSubresourceLayerscreate(long address) Returns a newVkImageSubresourceLayersinstance for the specified memory address.create(long address, int capacity) Create aVkImageSubresourceLayers.Bufferinstance at the specified memory.static @Nullable VkImageSubresourceLayerscreateSafe(long address) static @Nullable VkImageSubresourceLayers.BuffercreateSafe(long address, int capacity) intlayerCount(int value) Sets the specified value to thelayerCountfield.static VkImageSubresourceLayersmalloc()Returns a newVkImageSubresourceLayersinstance allocated withmemAlloc.malloc(int capacity) Returns a newVkImageSubresourceLayers.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newVkImageSubresourceLayers.Bufferinstance allocated on the specifiedMemoryStack.static VkImageSubresourceLayersmalloc(MemoryStack stack) Returns a newVkImageSubresourceLayersinstance allocated on the specifiedMemoryStack.intmipLevel()mipLevel(int value) Sets the specified value to themipLevelfield.static intnaspectMask(long struct) Unsafe version ofaspectMask().static voidnaspectMask(long struct, int value) Unsafe version ofaspectMask.static intnbaseArrayLayer(long struct) Unsafe version ofbaseArrayLayer().static voidnbaseArrayLayer(long struct, int value) Unsafe version ofbaseArrayLayer.static intnlayerCount(long struct) Unsafe version oflayerCount().static voidnlayerCount(long struct, int value) Unsafe version oflayerCount.static intnmipLevel(long struct) Unsafe version ofmipLevel().static voidnmipLevel(long struct, int value) Unsafe version ofmipLevel.set(int aspectMask, int mipLevel, int baseArrayLayer, int layerCount) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).Methods 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. -
ASPECTMASK
public static final int ASPECTMASKThe struct member offsets. -
MIPLEVEL
public static final int MIPLEVELThe struct member offsets. -
BASEARRAYLAYER
public static final int BASEARRAYLAYERThe struct member offsets. -
LAYERCOUNT
public static final int LAYERCOUNTThe struct member offsets.
-
-
Constructor Details
-
VkImageSubresourceLayers
Creates aVkImageSubresourceLayersinstance 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()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<VkImageSubresourceLayers>
-
aspectMask
public int aspectMask()- Returns:
- the value of the
aspectMaskfield.
-
mipLevel
public int mipLevel()- Returns:
- the value of the
mipLevelfield.
-
baseArrayLayer
public int baseArrayLayer()- Returns:
- the value of the
baseArrayLayerfield.
-
layerCount
public int layerCount()- Returns:
- the value of the
layerCountfield.
-
aspectMask
Sets the specified value to theaspectMaskfield. -
mipLevel
Sets the specified value to themipLevelfield. -
baseArrayLayer
Sets the specified value to thebaseArrayLayerfield. -
layerCount
Sets the specified value to thelayerCountfield. -
set
public VkImageSubresourceLayers set(int aspectMask, int mipLevel, int baseArrayLayer, int layerCount) 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 newVkImageSubresourceLayersinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkImageSubresourceLayersinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkImageSubresourceLayersinstance allocated withBufferUtils. -
create
Returns a newVkImageSubresourceLayersinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkImageSubresourceLayers.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkImageSubresourceLayers.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkImageSubresourceLayers.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkImageSubresourceLayers.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newVkImageSubresourceLayersinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkImageSubresourceLayersinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkImageSubresourceLayers.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkImageSubresourceLayers.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
naspectMask
public static int naspectMask(long struct) Unsafe version ofaspectMask(). -
nmipLevel
public static int nmipLevel(long struct) Unsafe version ofmipLevel(). -
nbaseArrayLayer
public static int nbaseArrayLayer(long struct) Unsafe version ofbaseArrayLayer(). -
nlayerCount
public static int nlayerCount(long struct) Unsafe version oflayerCount(). -
naspectMask
public static void naspectMask(long struct, int value) Unsafe version ofaspectMask. -
nmipLevel
public static void nmipLevel(long struct, int value) Unsafe version ofmipLevel. -
nbaseArrayLayer
public static void nbaseArrayLayer(long struct, int value) Unsafe version ofbaseArrayLayer. -
nlayerCount
public static void nlayerCount(long struct, int value) Unsafe version oflayerCount.
-