Package org.lwjgl.vulkan
Class VkSparseImageFormatProperties2KHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkSparseImageFormatProperties2
-
- org.lwjgl.vulkan.VkSparseImageFormatProperties2KHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkSparseImageFormatProperties2KHR extends VkSparseImageFormatProperties2
SeeVkSparseImageFormatProperties2.Layout
struct VkSparseImageFormatProperties2KHR { VkStructureType sType; void * pNext;VkSparseImageFormatPropertiesproperties; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkSparseImageFormatProperties2KHR.BufferAn array ofVkSparseImageFormatProperties2KHRstructs.
-
Field Summary
-
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Fields inherited from class org.lwjgl.vulkan.VkSparseImageFormatProperties2
ALIGNOF, PNEXT, PROPERTIES, SIZEOF, STYPE
-
-
Constructor Summary
Constructors Constructor Description VkSparseImageFormatProperties2KHR(java.nio.ByteBuffer container)Creates aVkSparseImageFormatProperties2KHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkSparseImageFormatProperties2KHRcalloc()Returns a newVkSparseImageFormatProperties2KHRinstance allocated withmemCalloc.static VkSparseImageFormatProperties2KHR.Buffercalloc(int capacity)Returns a newVkSparseImageFormatProperties2KHR.Bufferinstance allocated withmemCalloc.static VkSparseImageFormatProperties2KHRcallocStack()Returns a newVkSparseImageFormatProperties2KHRinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkSparseImageFormatProperties2KHR.BuffercallocStack(int capacity)Returns a newVkSparseImageFormatProperties2KHR.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkSparseImageFormatProperties2KHR.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkSparseImageFormatProperties2KHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkSparseImageFormatProperties2KHRcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkSparseImageFormatProperties2KHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkSparseImageFormatProperties2KHRcreate()Returns a newVkSparseImageFormatProperties2KHRinstance allocated withBufferUtils.static VkSparseImageFormatProperties2KHR.Buffercreate(int capacity)Returns a newVkSparseImageFormatProperties2KHR.Bufferinstance allocated withBufferUtils.static VkSparseImageFormatProperties2KHRcreate(long address)Returns a newVkSparseImageFormatProperties2KHRinstance for the specified memory address.static VkSparseImageFormatProperties2KHR.Buffercreate(long address, int capacity)Create aVkSparseImageFormatProperties2KHR.Bufferinstance at the specified memory.static VkSparseImageFormatProperties2KHRcreateSafe(long address)static VkSparseImageFormatProperties2KHR.BuffercreateSafe(long address, int capacity)static VkSparseImageFormatProperties2KHRmalloc()Returns a newVkSparseImageFormatProperties2KHRinstance allocated withmemAlloc.static VkSparseImageFormatProperties2KHR.Buffermalloc(int capacity)Returns a newVkSparseImageFormatProperties2KHR.Bufferinstance allocated withmemAlloc.static VkSparseImageFormatProperties2KHRmallocStack()Returns a newVkSparseImageFormatProperties2KHRinstance allocated on the thread-localMemoryStack.static VkSparseImageFormatProperties2KHR.BuffermallocStack(int capacity)Returns a newVkSparseImageFormatProperties2KHR.Bufferinstance allocated on the thread-localMemoryStack.static VkSparseImageFormatProperties2KHR.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkSparseImageFormatProperties2KHR.Bufferinstance allocated on the specifiedMemoryStack.static VkSparseImageFormatProperties2KHRmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkSparseImageFormatProperties2KHRinstance allocated on the specifiedMemoryStack.VkSparseImageFormatProperties2KHRpNext(long value)Sets the specified value to thepNextfield.VkSparseImageFormatProperties2KHRset(int sType, long pNext)Initializes this struct with the specified values.VkSparseImageFormatProperties2KHRset(VkSparseImageFormatProperties2KHR src)Copies the specified struct data to this struct.VkSparseImageFormatProperties2KHRsType(int value)Sets the specified value to thesTypefield.-
Methods inherited from class org.lwjgl.vulkan.VkSparseImageFormatProperties2
npNext, npNext, nproperties, nsType, nsType, pNext, properties, set, sizeof, sType
-
-
-
-
Constructor Detail
-
VkSparseImageFormatProperties2KHR
public VkSparseImageFormatProperties2KHR(java.nio.ByteBuffer container)
Creates aVkSparseImageFormatProperties2KHRinstance 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
-
sType
public VkSparseImageFormatProperties2KHR sType(int value)
Sets the specified value to thesTypefield.- Overrides:
sTypein classVkSparseImageFormatProperties2
-
pNext
public VkSparseImageFormatProperties2KHR pNext(long value)
Sets the specified value to thepNextfield.- Overrides:
pNextin classVkSparseImageFormatProperties2
-
set
public VkSparseImageFormatProperties2KHR set(int sType, long pNext)
Initializes this struct with the specified values.- Overrides:
setin classVkSparseImageFormatProperties2
-
set
public VkSparseImageFormatProperties2KHR set(VkSparseImageFormatProperties2KHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkSparseImageFormatProperties2KHR malloc()
Returns a newVkSparseImageFormatProperties2KHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkSparseImageFormatProperties2KHR calloc()
Returns a newVkSparseImageFormatProperties2KHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkSparseImageFormatProperties2KHR create()
Returns a newVkSparseImageFormatProperties2KHRinstance allocated withBufferUtils.
-
create
public static VkSparseImageFormatProperties2KHR create(long address)
Returns a newVkSparseImageFormatProperties2KHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkSparseImageFormatProperties2KHR createSafe(long address)
-
malloc
public static VkSparseImageFormatProperties2KHR.Buffer malloc(int capacity)
Returns a newVkSparseImageFormatProperties2KHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkSparseImageFormatProperties2KHR.Buffer calloc(int capacity)
Returns a newVkSparseImageFormatProperties2KHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkSparseImageFormatProperties2KHR.Buffer create(int capacity)
Returns a newVkSparseImageFormatProperties2KHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkSparseImageFormatProperties2KHR.Buffer create(long address, int capacity)
Create aVkSparseImageFormatProperties2KHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkSparseImageFormatProperties2KHR.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkSparseImageFormatProperties2KHR mallocStack()
Returns a newVkSparseImageFormatProperties2KHRinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkSparseImageFormatProperties2KHR callocStack()
Returns a newVkSparseImageFormatProperties2KHRinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkSparseImageFormatProperties2KHR mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkSparseImageFormatProperties2KHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkSparseImageFormatProperties2KHR callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkSparseImageFormatProperties2KHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkSparseImageFormatProperties2KHR.Buffer mallocStack(int capacity)
Returns a newVkSparseImageFormatProperties2KHR.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkSparseImageFormatProperties2KHR.Buffer callocStack(int capacity)
Returns a newVkSparseImageFormatProperties2KHR.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkSparseImageFormatProperties2KHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkSparseImageFormatProperties2KHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkSparseImageFormatProperties2KHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkSparseImageFormatProperties2KHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
-