Package org.lwjgl.vulkan
Class VkImageFormatProperties
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkImageFormatProperties
-
- All Implemented Interfaces:
- java.lang.AutoCloseable, NativeResource, Pointer
public class VkImageFormatProperties extends Struct
Khronos Reference Page
Vulkan SpecificationContains additional capabilities for certain types of images.
Member documentation
maxExtent– the maximum image dimensionsmaxMipLevels– the maximum number of mipmap levelsmaxArrayLayers– the maximum number of array layerssampleCounts– a bitmask ofVkSampleCountFlagBitsspecifying all the supported sample counts for this image. One or more of:SAMPLE_COUNT_16_BITSAMPLE_COUNT_1_BITSAMPLE_COUNT_2_BITSAMPLE_COUNT_32_BITSAMPLE_COUNT_4_BITSAMPLE_COUNT_64_BITSAMPLE_COUNT_8_BITmaxResourceSize– an upper bound on the total image size in bytes, inclusive of all image subresources
Layout
struct VkImageFormatProperties {VkExtent3DmaxExtent; uint32_t maxMipLevels; uint32_t maxArrayLayers; VkSampleCountFlags sampleCounts; VkDeviceSize maxResourceSize; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classVkImageFormatProperties.BufferAn array ofVkImageFormatPropertiesstructs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field and Description static intSIZEOFThe struct size in bytes.-
Fields inherited from interface org.lwjgl.system.Pointer
POINTER_SHIFT, POINTER_SIZE
-
-
Constructor Summary
Constructors Constructor and Description VkImageFormatProperties(java.nio.ByteBuffer container)Creates aVkImageFormatPropertiesinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static VkImageFormatPropertiescalloc()Returns a newVkImageFormatPropertiesinstance allocated withmemCalloc.static VkImageFormatProperties.Buffercalloc(int capacity)Returns a newVkImageFormatProperties.Bufferinstance allocated withmemCalloc.static VkImageFormatPropertiescallocStack()Returns a newVkImageFormatPropertiesinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkImageFormatProperties.BuffercallocStack(int capacity)Returns a newVkImageFormatProperties.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkImageFormatProperties.BuffercallocStack(int capacity, MemoryStack stack)Returns a newVkImageFormatProperties.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImageFormatPropertiescallocStack(MemoryStack stack)Returns a newVkImageFormatPropertiesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImageFormatPropertiescreate()Returns a newVkImageFormatPropertiesinstance allocated withBufferUtils.static VkImageFormatProperties.Buffercreate(int capacity)Returns a newVkImageFormatProperties.Bufferinstance allocated withBufferUtils.static VkImageFormatPropertiescreate(long address)Returns a newVkImageFormatPropertiesinstance for the specified memory address ornullif the address isNULL.static VkImageFormatProperties.Buffercreate(long address, int capacity)Create aVkImageFormatProperties.Bufferinstance at the specified memory.static VkImageFormatPropertiesmalloc()Returns a newVkImageFormatPropertiesinstance allocated withmemAlloc.static VkImageFormatProperties.Buffermalloc(int capacity)Returns a newVkImageFormatProperties.Bufferinstance allocated withmemAlloc.static VkImageFormatPropertiesmallocStack()Returns a newVkImageFormatPropertiesinstance allocated on the thread-localMemoryStack.static VkImageFormatProperties.BuffermallocStack(int capacity)Returns a newVkImageFormatProperties.Bufferinstance allocated on the thread-localMemoryStack.static VkImageFormatProperties.BuffermallocStack(int capacity, MemoryStack stack)Returns a newVkImageFormatProperties.Bufferinstance allocated on the specifiedMemoryStack.static VkImageFormatPropertiesmallocStack(MemoryStack stack)Returns a newVkImageFormatPropertiesinstance allocated on the specifiedMemoryStack.intmaxArrayLayers()Returns the value of themaxArrayLayersfield.VkExtent3DmaxExtent()Returns aVkExtent3Dview of themaxExtentfield.intmaxMipLevels()Returns the value of themaxMipLevelsfield.longmaxResourceSize()Returns the value of themaxResourceSizefield.intsampleCounts()Returns the value of thesampleCountsfield.intsizeof()Returns thesizeof(struct).-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
-
-
-
Constructor Detail
-
VkImageFormatProperties
public VkImageFormatProperties(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
Description copied from class:StructReturns thesizeof(struct).
-
maxExtent
public VkExtent3D maxExtent()
Returns aVkExtent3Dview of themaxExtentfield.
-
maxMipLevels
public int maxMipLevels()
Returns the value of themaxMipLevelsfield.
-
maxArrayLayers
public int maxArrayLayers()
Returns the value of themaxArrayLayersfield.
-
sampleCounts
public int sampleCounts()
Returns the value of thesampleCountsfield.
-
maxResourceSize
public long maxResourceSize()
Returns the value of themaxResourceSizefield.
-
malloc
public static VkImageFormatProperties malloc()
Returns a newVkImageFormatPropertiesinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkImageFormatProperties calloc()
Returns a newVkImageFormatPropertiesinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkImageFormatProperties create()
Returns a newVkImageFormatPropertiesinstance allocated withBufferUtils.
-
create
public static VkImageFormatProperties create(long address)
Returns a newVkImageFormatPropertiesinstance for the specified memory address ornullif the address isNULL.
-
malloc
public static VkImageFormatProperties.Buffer malloc(int capacity)
Returns a newVkImageFormatProperties.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkImageFormatProperties.Buffer calloc(int capacity)
Returns a newVkImageFormatProperties.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkImageFormatProperties.Buffer create(int capacity)
Returns a newVkImageFormatProperties.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkImageFormatProperties.Buffer create(long address, int capacity)
Create aVkImageFormatProperties.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
mallocStack
public static VkImageFormatProperties mallocStack()
Returns a newVkImageFormatPropertiesinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkImageFormatProperties callocStack()
Returns a newVkImageFormatPropertiesinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkImageFormatProperties mallocStack(MemoryStack stack)
Returns a newVkImageFormatPropertiesinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkImageFormatProperties callocStack(MemoryStack stack)
Returns a newVkImageFormatPropertiesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkImageFormatProperties.Buffer mallocStack(int capacity)
Returns a newVkImageFormatProperties.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkImageFormatProperties.Buffer callocStack(int capacity)
Returns a newVkImageFormatProperties.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkImageFormatProperties.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newVkImageFormatProperties.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkImageFormatProperties.Buffer callocStack(int capacity, MemoryStack stack)
Returns a newVkImageFormatProperties.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
-