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,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkSparseImageFormatProperties extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying sparse image format properties.Member documentation
aspectMask– a bitmaskVkImageAspectFlagBitsspecifying which aspects of the image the properties apply to.imageGranularity– the width, height, and depth of the sparse image block in texels or compressed texel blocks.flags– a bitmask ofVkSparseImageFormatFlagBitsspecifying additional information about the sparse resource.
Layout
struct VkSparseImageFormatProperties { VkImageAspectFlags aspectMask;VkExtent3DimageGranularity; VkSparseImageFormatFlags flags; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkSparseImageFormatProperties.BufferAn array ofVkSparseImageFormatPropertiesstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intASPECTMASK
FLAGS
IMAGEGRANULARITYThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor 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 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, org.lwjgl.system.MemoryStack stack)Returns a newVkSparseImageFormatProperties.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkSparseImageFormatPropertiescallocStack(org.lwjgl.system.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.static VkSparseImageFormatProperties.Buffercreate(long address, int capacity)Create aVkSparseImageFormatProperties.Bufferinstance at the specified memory.static VkSparseImageFormatPropertiescreateSafe(long address)static VkSparseImageFormatProperties.BuffercreateSafe(long address, int capacity)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, org.lwjgl.system.MemoryStack stack)Returns a newVkSparseImageFormatProperties.Bufferinstance allocated on the specifiedMemoryStack.static VkSparseImageFormatPropertiesmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkSparseImageFormatPropertiesinstance allocated on the specifiedMemoryStack.static intnaspectMask(long struct)Unsafe version ofaspectMask().static intnflags(long struct)Unsafe version offlags().static VkExtent3DnimageGranularity(long struct)Unsafe version ofimageGranularity().intsizeof()
-
-
-
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()
- Specified by:
sizeofin classorg.lwjgl.system.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.
-
createSafe
@Nullable public static VkSparseImageFormatProperties createSafe(long address)
-
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
-
createSafe
@Nullable public static VkSparseImageFormatProperties.Buffer createSafe(long address, int 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(org.lwjgl.system.MemoryStack stack)
Returns a newVkSparseImageFormatPropertiesinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkSparseImageFormatProperties callocStack(org.lwjgl.system.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, org.lwjgl.system.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, org.lwjgl.system.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
-
naspectMask
public static int naspectMask(long struct)
Unsafe version ofaspectMask().
-
nimageGranularity
public static VkExtent3D nimageGranularity(long struct)
Unsafe version ofimageGranularity().
-
nflags
public static int nflags(long struct)
Unsafe version offlags().
-
-