Package org.lwjgl.vulkan
Class VkImageFormatProperties
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
public class VkImageFormatProperties
extends Struct<VkImageFormatProperties>
implements NativeResource
struct VkImageFormatProperties {
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.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 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
ConstructorsConstructorDescriptionVkImageFormatProperties(ByteBuffer container) Creates aVkImageFormatPropertiesinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkImageFormatPropertiescalloc()Returns a newVkImageFormatPropertiesinstance allocated withmemCalloc.calloc(int capacity) Returns a newVkImageFormatProperties.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newVkImageFormatProperties.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImageFormatPropertiescalloc(MemoryStack stack) Returns a newVkImageFormatPropertiesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImageFormatPropertiescreate()Returns a newVkImageFormatPropertiesinstance allocated withBufferUtils.create(int capacity) Returns a newVkImageFormatProperties.Bufferinstance allocated withBufferUtils.static VkImageFormatPropertiescreate(long address) Returns a newVkImageFormatPropertiesinstance for the specified memory address.create(long address, int capacity) Create aVkImageFormatProperties.Bufferinstance at the specified memory.static @Nullable VkImageFormatPropertiescreateSafe(long address) static @Nullable VkImageFormatProperties.BuffercreateSafe(long address, int capacity) static VkImageFormatPropertiesmalloc()Returns a newVkImageFormatPropertiesinstance allocated withmemAlloc.malloc(int capacity) Returns a newVkImageFormatProperties.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newVkImageFormatProperties.Bufferinstance allocated on the specifiedMemoryStack.static VkImageFormatPropertiesmalloc(MemoryStack stack) Returns a newVkImageFormatPropertiesinstance allocated on the specifiedMemoryStack.intintlongstatic intnmaxArrayLayers(long struct) Unsafe version ofmaxArrayLayers().static VkExtent3DnmaxExtent(long struct) Unsafe version ofmaxExtent().static intnmaxMipLevels(long struct) Unsafe version ofmaxMipLevels().static longnmaxResourceSize(long struct) Unsafe version ofmaxResourceSize().static intnsampleCounts(long struct) Unsafe version ofsampleCounts().intintsizeof()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. -
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 aVkImageFormatPropertiesinstance 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<VkImageFormatProperties>
-
maxExtent
- Returns:
- a
VkExtent3Dview of themaxExtentfield.
-
maxMipLevels
public int maxMipLevels()- Returns:
- the value of the
maxMipLevelsfield.
-
maxArrayLayers
public int maxArrayLayers()- Returns:
- the value of the
maxArrayLayersfield.
-
sampleCounts
public int sampleCounts()- Returns:
- the value of the
sampleCountsfield.
-
maxResourceSize
public long maxResourceSize()- Returns:
- the value of the
maxResourceSizefield.
-
malloc
Returns a newVkImageFormatPropertiesinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkImageFormatPropertiesinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkImageFormatPropertiesinstance allocated withBufferUtils. -
create
Returns a newVkImageFormatPropertiesinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkImageFormatProperties.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkImageFormatProperties.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkImageFormatProperties.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkImageFormatProperties.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newVkImageFormatPropertiesinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkImageFormatPropertiesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkImageFormatProperties.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkImageFormatProperties.Bufferinstance allocated on the specifiedMemoryStackand 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().
-