Package org.lwjgl.vulkan
Class VkImageFormatProperties
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
public class VkImageFormatProperties
extends Struct<VkImageFormatProperties>
implements NativeResource
struct VkImageFormatProperties {
{@link VkExtent3D VkExtent3D} maxExtent;
uint32_t maxMipLevels;
uint32_t maxArrayLayers;
VkSampleCountFlags sampleCounts;
VkDeviceSize maxResourceSize;
}
-
Nested Class Summary
Nested ClassesNested 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
FieldsModifier 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 member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionVkImageFormatProperties
(ByteBuffer container) Creates aVkImageFormatProperties
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkImageFormatProperties
calloc()
Returns a newVkImageFormatProperties
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newVkImageFormatProperties.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newVkImageFormatProperties.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkImageFormatProperties
calloc
(MemoryStack stack) Returns a newVkImageFormatProperties
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkImageFormatProperties
Deprecated.callocStack
(int capacity) Deprecated.callocStack
(int capacity, MemoryStack stack) Deprecated.static VkImageFormatProperties
callocStack
(MemoryStack stack) Deprecated.static VkImageFormatProperties
create()
Returns a newVkImageFormatProperties
instance allocated withBufferUtils
.create
(int capacity) Returns a newVkImageFormatProperties.Buffer
instance allocated withBufferUtils
.static VkImageFormatProperties
create
(long address) Returns a newVkImageFormatProperties
instance for the specified memory address.create
(long address, int capacity) Create aVkImageFormatProperties.Buffer
instance at the specified memory.static @Nullable VkImageFormatProperties
createSafe
(long address) static @Nullable VkImageFormatProperties.Buffer
createSafe
(long address, int capacity) static VkImageFormatProperties
malloc()
Returns a newVkImageFormatProperties
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newVkImageFormatProperties.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newVkImageFormatProperties.Buffer
instance allocated on the specifiedMemoryStack
.static VkImageFormatProperties
malloc
(MemoryStack stack) Returns a newVkImageFormatProperties
instance allocated on the specifiedMemoryStack
.static VkImageFormatProperties
Deprecated.mallocStack
(int capacity) Deprecated.mallocStack
(int capacity, MemoryStack stack) Deprecated.static VkImageFormatProperties
mallocStack
(MemoryStack stack) Deprecated.int
int
long
static int
nmaxArrayLayers
(long struct) Unsafe version ofmaxArrayLayers()
.static VkExtent3D
nmaxExtent
(long struct) Unsafe version ofmaxExtent()
.static int
nmaxMipLevels
(long struct) Unsafe version ofmaxMipLevels()
.static long
nmaxResourceSize
(long struct) Unsafe version ofmaxResourceSize()
.static int
nsampleCounts
(long struct) Unsafe version ofsampleCounts()
.int
int
sizeof()
Returnssizeof(struct)
.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. -
MAXEXTENT
public static final int MAXEXTENTThe struct member offsets. -
MAXMIPLEVELS
public static final int MAXMIPLEVELSThe struct member offsets. -
MAXARRAYLAYERS
public static final int MAXARRAYLAYERSThe struct member offsets. -
SAMPLECOUNTS
public static final int SAMPLECOUNTSThe struct member offsets. -
MAXRESOURCESIZE
public static final int MAXRESOURCESIZEThe struct member offsets.
-
-
Constructor Details
-
VkImageFormatProperties
Creates aVkImageFormatProperties
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<VkImageFormatProperties>
-
maxExtent
- Returns:
- a
VkExtent3D
view of themaxExtent
field.
-
maxMipLevels
public int maxMipLevels()- Returns:
- the value of the
maxMipLevels
field.
-
maxArrayLayers
public int maxArrayLayers()- Returns:
- the value of the
maxArrayLayers
field.
-
sampleCounts
public int sampleCounts()- Returns:
- the value of the
sampleCounts
field.
-
maxResourceSize
public long maxResourceSize()- Returns:
- the value of the
maxResourceSize
field.
-
malloc
Returns a newVkImageFormatProperties
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newVkImageFormatProperties
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newVkImageFormatProperties
instance allocated withBufferUtils
. -
create
Returns a newVkImageFormatProperties
instance for the specified memory address. -
createSafe
-
malloc
Returns a newVkImageFormatProperties.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newVkImageFormatProperties.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newVkImageFormatProperties.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aVkImageFormatProperties.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 public static VkImageFormatProperties.Buffer mallocStack(int capacity, MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
@Deprecated public static VkImageFormatProperties.Buffer callocStack(int capacity, MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newVkImageFormatProperties
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newVkImageFormatProperties
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newVkImageFormatProperties.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newVkImageFormatProperties.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nmaxExtent
Unsafe version ofmaxExtent()
. -
nmaxMipLevels
public static int nmaxMipLevels(long struct) Unsafe version ofmaxMipLevels()
. -
nmaxArrayLayers
public static int nmaxArrayLayers(long struct) Unsafe version ofmaxArrayLayers()
. -
nsampleCounts
public static int nsampleCounts(long struct) Unsafe version ofsampleCounts()
. -
nmaxResourceSize
public static long nmaxResourceSize(long struct) Unsafe version ofmaxResourceSize()
.
-