Package org.lwjgl.vulkan
Class VkSparseImageFormatProperties
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkSparseImageFormatProperties
-
- All Implemented Interfaces:
- java.lang.AutoCloseable, NativeResource, Pointer
public class VkSparseImageFormatProperties extends Struct
Khronos Reference Page
Vulkan SpecificationDescribes properties for a set of image aspects that are bound simultaneously in an image.
Member documentation
aspectMask– aVkImageAspectFlagsspecifying which aspects of the image the properties apply toimageGranularity– the width, height, and depth of the sparse image block in texels or compressed texel blocksflags– aVkSparseImageFormatFlagBitsbitmask specifying additional information about the sparse resource. One or more of:SPARSE_IMAGE_FORMAT_ALIGNED_MIP_SIZE_BITSPARSE_IMAGE_FORMAT_NONSTANDARD_BLOCK_SIZE_BITSPARSE_IMAGE_FORMAT_SINGLE_MIPTAIL_BIT
Layout
struct VkSparseImageFormatProperties { VkImageAspectFlags aspectMask;VkExtent3DimageGranularity; VkSparseImageFormatFlags flags; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classVkSparseImageFormatProperties.BufferAn array ofVkSparseImageFormatPropertiesstructs.-
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 VkSparseImageFormatProperties(java.nio.ByteBuffer container)Creates aVkSparseImageFormatPropertiesinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description intaspectMask()Returns the value of theaspectMaskfield.static VkSparseImageFormatPropertiescalloc()Returns a newVkSparseImageFormatPropertiesinstance allocated withmemCalloc.static VkSparseImageFormatProperties.Buffercalloc(int capacity)Returns a newVkSparseImageFormatProperties.Bufferinstance allocated withmemCalloc.static VkSparseImageFormatPropertiescallocStack()Returns a newVkSparseImageFormatPropertiesinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkSparseImageFormatProperties.BuffercallocStack(int capacity)Returns a newVkSparseImageFormatProperties.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkSparseImageFormatProperties.BuffercallocStack(int capacity, MemoryStack stack)Returns a newVkSparseImageFormatProperties.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkSparseImageFormatPropertiescallocStack(MemoryStack stack)Returns a newVkSparseImageFormatPropertiesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkSparseImageFormatPropertiescreate()Returns a newVkSparseImageFormatPropertiesinstance allocated withBufferUtils.static VkSparseImageFormatProperties.Buffercreate(int capacity)Returns a newVkSparseImageFormatProperties.Bufferinstance allocated withBufferUtils.static VkSparseImageFormatPropertiescreate(long address)Returns a newVkSparseImageFormatPropertiesinstance for the specified memory address ornullif the address isNULL.static VkSparseImageFormatProperties.Buffercreate(long address, int capacity)Create aVkSparseImageFormatProperties.Bufferinstance at the specified memory.intflags()Returns the value of theflagsfield.VkExtent3DimageGranularity()Returns aVkExtent3Dview of theimageGranularityfield.static VkSparseImageFormatPropertiesmalloc()Returns a newVkSparseImageFormatPropertiesinstance allocated withmemAlloc.static VkSparseImageFormatProperties.Buffermalloc(int capacity)Returns a newVkSparseImageFormatProperties.Bufferinstance allocated withmemAlloc.static VkSparseImageFormatPropertiesmallocStack()Returns a newVkSparseImageFormatPropertiesinstance allocated on the thread-localMemoryStack.static VkSparseImageFormatProperties.BuffermallocStack(int capacity)Returns a newVkSparseImageFormatProperties.Bufferinstance allocated on the thread-localMemoryStack.static VkSparseImageFormatProperties.BuffermallocStack(int capacity, MemoryStack stack)Returns a newVkSparseImageFormatProperties.Bufferinstance allocated on the specifiedMemoryStack.static VkSparseImageFormatPropertiesmallocStack(MemoryStack stack)Returns a newVkSparseImageFormatPropertiesinstance allocated on the specifiedMemoryStack.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
-
VkSparseImageFormatProperties
public VkSparseImageFormatProperties(java.nio.ByteBuffer container)
Creates aVkSparseImageFormatPropertiesinstance 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).
-
aspectMask
public int aspectMask()
Returns the value of theaspectMaskfield.
-
imageGranularity
public VkExtent3D imageGranularity()
Returns aVkExtent3Dview of theimageGranularityfield.
-
flags
public int flags()
Returns the value of theflagsfield.
-
malloc
public static VkSparseImageFormatProperties malloc()
Returns a newVkSparseImageFormatPropertiesinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkSparseImageFormatProperties calloc()
Returns a newVkSparseImageFormatPropertiesinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkSparseImageFormatProperties create()
Returns a newVkSparseImageFormatPropertiesinstance allocated withBufferUtils.
-
create
public static VkSparseImageFormatProperties create(long address)
Returns a newVkSparseImageFormatPropertiesinstance for the specified memory address ornullif the address isNULL.
-
malloc
public static VkSparseImageFormatProperties.Buffer malloc(int capacity)
Returns a newVkSparseImageFormatProperties.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkSparseImageFormatProperties.Buffer calloc(int capacity)
Returns a newVkSparseImageFormatProperties.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkSparseImageFormatProperties.Buffer create(int capacity)
Returns a newVkSparseImageFormatProperties.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkSparseImageFormatProperties.Buffer create(long address, int capacity)
Create aVkSparseImageFormatProperties.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
mallocStack
public static VkSparseImageFormatProperties mallocStack()
Returns a newVkSparseImageFormatPropertiesinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkSparseImageFormatProperties callocStack()
Returns a newVkSparseImageFormatPropertiesinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkSparseImageFormatProperties mallocStack(MemoryStack stack)
Returns a newVkSparseImageFormatPropertiesinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkSparseImageFormatProperties callocStack(MemoryStack stack)
Returns a newVkSparseImageFormatPropertiesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkSparseImageFormatProperties.Buffer mallocStack(int capacity)
Returns a newVkSparseImageFormatProperties.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkSparseImageFormatProperties.Buffer callocStack(int capacity)
Returns a newVkSparseImageFormatProperties.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkSparseImageFormatProperties.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newVkSparseImageFormatProperties.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkSparseImageFormatProperties.Buffer callocStack(int capacity, MemoryStack stack)
Returns a newVkSparseImageFormatProperties.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
-