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;
VkSparseImageFormatProperties
properties; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VkSparseImageFormatProperties2KHR.Buffer
An array ofVkSparseImageFormatProperties2KHR
structs.
-
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 aVkSparseImageFormatProperties2KHR
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkSparseImageFormatProperties2KHR
calloc()
Returns a newVkSparseImageFormatProperties2KHR
instance allocated withmemCalloc
.static VkSparseImageFormatProperties2KHR.Buffer
calloc(int capacity)
Returns a newVkSparseImageFormatProperties2KHR.Buffer
instance allocated withmemCalloc
.static VkSparseImageFormatProperties2KHR
callocStack()
Returns a newVkSparseImageFormatProperties2KHR
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkSparseImageFormatProperties2KHR.Buffer
callocStack(int capacity)
Returns a newVkSparseImageFormatProperties2KHR.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkSparseImageFormatProperties2KHR.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkSparseImageFormatProperties2KHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkSparseImageFormatProperties2KHR
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkSparseImageFormatProperties2KHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkSparseImageFormatProperties2KHR
create()
Returns a newVkSparseImageFormatProperties2KHR
instance allocated withBufferUtils
.static VkSparseImageFormatProperties2KHR.Buffer
create(int capacity)
Returns a newVkSparseImageFormatProperties2KHR.Buffer
instance allocated withBufferUtils
.static VkSparseImageFormatProperties2KHR
create(long address)
Returns a newVkSparseImageFormatProperties2KHR
instance for the specified memory address.static VkSparseImageFormatProperties2KHR.Buffer
create(long address, int capacity)
Create aVkSparseImageFormatProperties2KHR.Buffer
instance at the specified memory.static VkSparseImageFormatProperties2KHR
createSafe(long address)
static VkSparseImageFormatProperties2KHR.Buffer
createSafe(long address, int capacity)
static VkSparseImageFormatProperties2KHR
malloc()
Returns a newVkSparseImageFormatProperties2KHR
instance allocated withmemAlloc
.static VkSparseImageFormatProperties2KHR.Buffer
malloc(int capacity)
Returns a newVkSparseImageFormatProperties2KHR.Buffer
instance allocated withmemAlloc
.static VkSparseImageFormatProperties2KHR
mallocStack()
Returns a newVkSparseImageFormatProperties2KHR
instance allocated on the thread-localMemoryStack
.static VkSparseImageFormatProperties2KHR.Buffer
mallocStack(int capacity)
Returns a newVkSparseImageFormatProperties2KHR.Buffer
instance allocated on the thread-localMemoryStack
.static VkSparseImageFormatProperties2KHR.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkSparseImageFormatProperties2KHR.Buffer
instance allocated on the specifiedMemoryStack
.static VkSparseImageFormatProperties2KHR
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkSparseImageFormatProperties2KHR
instance allocated on the specifiedMemoryStack
.VkSparseImageFormatProperties2KHR
pNext(long value)
Sets the specified value to thepNext
field.VkSparseImageFormatProperties2KHR
set(int sType, long pNext)
Initializes this struct with the specified values.VkSparseImageFormatProperties2KHR
set(VkSparseImageFormatProperties2KHR src)
Copies the specified struct data to this struct.VkSparseImageFormatProperties2KHR
sType(int value)
Sets the specified value to thesType
field.-
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 aVkSparseImageFormatProperties2KHR
instance at the current position of the specifiedByteBuffer
container. 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 thesType
field.- Overrides:
sType
in classVkSparseImageFormatProperties2
-
pNext
public VkSparseImageFormatProperties2KHR pNext(long value)
Sets the specified value to thepNext
field.- Overrides:
pNext
in classVkSparseImageFormatProperties2
-
set
public VkSparseImageFormatProperties2KHR set(int sType, long pNext)
Initializes this struct with the specified values.- Overrides:
set
in 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 newVkSparseImageFormatProperties2KHR
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkSparseImageFormatProperties2KHR calloc()
Returns a newVkSparseImageFormatProperties2KHR
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkSparseImageFormatProperties2KHR create()
Returns a newVkSparseImageFormatProperties2KHR
instance allocated withBufferUtils
.
-
create
public static VkSparseImageFormatProperties2KHR create(long address)
Returns a newVkSparseImageFormatProperties2KHR
instance for the specified memory address.
-
createSafe
@Nullable public static VkSparseImageFormatProperties2KHR createSafe(long address)
-
malloc
public static VkSparseImageFormatProperties2KHR.Buffer malloc(int capacity)
Returns a newVkSparseImageFormatProperties2KHR.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkSparseImageFormatProperties2KHR.Buffer calloc(int capacity)
Returns a newVkSparseImageFormatProperties2KHR.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkSparseImageFormatProperties2KHR.Buffer create(int capacity)
Returns a newVkSparseImageFormatProperties2KHR.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkSparseImageFormatProperties2KHR.Buffer create(long address, int capacity)
Create aVkSparseImageFormatProperties2KHR.Buffer
instance 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 newVkSparseImageFormatProperties2KHR
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkSparseImageFormatProperties2KHR callocStack()
Returns a newVkSparseImageFormatProperties2KHR
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkSparseImageFormatProperties2KHR mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkSparseImageFormatProperties2KHR
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkSparseImageFormatProperties2KHR callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkSparseImageFormatProperties2KHR
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkSparseImageFormatProperties2KHR.Buffer callocStack(int capacity)
Returns a newVkSparseImageFormatProperties2KHR.Buffer
instance allocated on the thread-localMemoryStack
and 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.Buffer
instance 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.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
-