Package org.lwjgl.vulkan
Class VkImageSubresource
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct VkImageSubresource {
VkImageAspectFlags aspectMask;
uint32_t mipLevel;
uint32_t arrayLayer;
}-
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 size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVkImageSubresource(ByteBuffer container) Creates aVkImageSubresourceinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionintarrayLayer(int value) Sets the specified value to thearrayLayerfield.intaspectMask(int value) Sets the specified value to theaspectMaskfield.static VkImageSubresourcecalloc()Returns a newVkImageSubresourceinstance allocated withmemCalloc.static VkImageSubresource.Buffercalloc(int capacity) Returns a newVkImageSubresource.Bufferinstance allocated withmemCalloc.static VkImageSubresource.Buffercalloc(int capacity, MemoryStack stack) Returns a newVkImageSubresource.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImageSubresourcecalloc(MemoryStack stack) Returns a newVkImageSubresourceinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.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 @Nullable VkImageSubresourcecreateSafe(long address) static @Nullable 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, MemoryStack stack) Returns a newVkImageSubresource.Bufferinstance allocated on the specifiedMemoryStack.static VkImageSubresourcemalloc(MemoryStack stack) Returns a newVkImageSubresourceinstance allocated on the specifiedMemoryStack.intmipLevel()mipLevel(int value) Sets the specified value to themipLevelfield.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.set(int aspectMask, int mipLevel, int arrayLayer) Initializes this struct with the specified values.set(VkImageSubresource src) 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. -
ARRAYLAYER
public static final int ARRAYLAYERThe struct member offsets.
-
-
Constructor Details
-
VkImageSubresource
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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<VkImageSubresource>
-
aspectMask
public int aspectMask()- Returns:
- the value of the
aspectMaskfield.
-
mipLevel
public int mipLevel()- Returns:
- the value of the
mipLevelfield.
-
arrayLayer
public int arrayLayer()- Returns:
- the value of the
arrayLayerfield.
-
aspectMask
Sets the specified value to theaspectMaskfield. -
mipLevel
Sets the specified value to themipLevelfield. -
arrayLayer
Sets the specified value to thearrayLayerfield. -
set
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 newVkImageSubresourceinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkImageSubresourceinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkImageSubresourceinstance allocated withBufferUtils. -
create
Returns a newVkImageSubresourceinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkImageSubresource.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkImageSubresource.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkImageSubresource.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkImageSubresource.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newVkImageSubresourceinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkImageSubresourceinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkImageSubresource.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkImageSubresource.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(). -
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.
-