Package org.lwjgl.vulkan
Class VkDeviceGroupBindSparseInfoKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkDeviceGroupBindSparseInfo
-
- org.lwjgl.vulkan.VkDeviceGroupBindSparseInfoKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class VkDeviceGroupBindSparseInfoKHR extends VkDeviceGroupBindSparseInfo
SeeVkDeviceGroupBindSparseInfo
.Layout
struct VkDeviceGroupBindSparseInfoKHR { VkStructureType sType; void const * pNext; uint32_t resourceDeviceIndex; uint32_t memoryDeviceIndex; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VkDeviceGroupBindSparseInfoKHR.Buffer
An array ofVkDeviceGroupBindSparseInfoKHR
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.VkDeviceGroupBindSparseInfo
ALIGNOF, MEMORYDEVICEINDEX, PNEXT, RESOURCEDEVICEINDEX, SIZEOF, STYPE
-
-
Constructor Summary
Constructors Constructor Description VkDeviceGroupBindSparseInfoKHR(java.nio.ByteBuffer container)
Creates aVkDeviceGroupBindSparseInfoKHR
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 VkDeviceGroupBindSparseInfoKHR
calloc()
Returns a newVkDeviceGroupBindSparseInfoKHR
instance allocated withmemCalloc
.static VkDeviceGroupBindSparseInfoKHR.Buffer
calloc(int capacity)
Returns a newVkDeviceGroupBindSparseInfoKHR.Buffer
instance allocated withmemCalloc
.static VkDeviceGroupBindSparseInfoKHR
callocStack()
Returns a newVkDeviceGroupBindSparseInfoKHR
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkDeviceGroupBindSparseInfoKHR.Buffer
callocStack(int capacity)
Returns a newVkDeviceGroupBindSparseInfoKHR.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkDeviceGroupBindSparseInfoKHR.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceGroupBindSparseInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkDeviceGroupBindSparseInfoKHR
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceGroupBindSparseInfoKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkDeviceGroupBindSparseInfoKHR
create()
Returns a newVkDeviceGroupBindSparseInfoKHR
instance allocated withBufferUtils
.static VkDeviceGroupBindSparseInfoKHR.Buffer
create(int capacity)
Returns a newVkDeviceGroupBindSparseInfoKHR.Buffer
instance allocated withBufferUtils
.static VkDeviceGroupBindSparseInfoKHR
create(long address)
Returns a newVkDeviceGroupBindSparseInfoKHR
instance for the specified memory address.static VkDeviceGroupBindSparseInfoKHR.Buffer
create(long address, int capacity)
Create aVkDeviceGroupBindSparseInfoKHR.Buffer
instance at the specified memory.static VkDeviceGroupBindSparseInfoKHR
createSafe(long address)
static VkDeviceGroupBindSparseInfoKHR.Buffer
createSafe(long address, int capacity)
static VkDeviceGroupBindSparseInfoKHR
malloc()
Returns a newVkDeviceGroupBindSparseInfoKHR
instance allocated withmemAlloc
.static VkDeviceGroupBindSparseInfoKHR.Buffer
malloc(int capacity)
Returns a newVkDeviceGroupBindSparseInfoKHR.Buffer
instance allocated withmemAlloc
.static VkDeviceGroupBindSparseInfoKHR
mallocStack()
Returns a newVkDeviceGroupBindSparseInfoKHR
instance allocated on the thread-localMemoryStack
.static VkDeviceGroupBindSparseInfoKHR.Buffer
mallocStack(int capacity)
Returns a newVkDeviceGroupBindSparseInfoKHR.Buffer
instance allocated on the thread-localMemoryStack
.static VkDeviceGroupBindSparseInfoKHR.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceGroupBindSparseInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
.static VkDeviceGroupBindSparseInfoKHR
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceGroupBindSparseInfoKHR
instance allocated on the specifiedMemoryStack
.VkDeviceGroupBindSparseInfoKHR
memoryDeviceIndex(int value)
Sets the specified value to thememoryDeviceIndex
field.VkDeviceGroupBindSparseInfoKHR
pNext(long value)
Sets the specified value to thepNext
field.VkDeviceGroupBindSparseInfoKHR
resourceDeviceIndex(int value)
Sets the specified value to theresourceDeviceIndex
field.VkDeviceGroupBindSparseInfoKHR
set(int sType, long pNext, int resourceDeviceIndex, int memoryDeviceIndex)
Initializes this struct with the specified values.VkDeviceGroupBindSparseInfoKHR
set(VkDeviceGroupBindSparseInfoKHR src)
Copies the specified struct data to this struct.VkDeviceGroupBindSparseInfoKHR
sType(int value)
Sets the specified value to thesType
field.-
Methods inherited from class org.lwjgl.vulkan.VkDeviceGroupBindSparseInfo
memoryDeviceIndex, nmemoryDeviceIndex, nmemoryDeviceIndex, npNext, npNext, nresourceDeviceIndex, nresourceDeviceIndex, nsType, nsType, pNext, resourceDeviceIndex, set, sizeof, sType
-
-
-
-
Constructor Detail
-
VkDeviceGroupBindSparseInfoKHR
public VkDeviceGroupBindSparseInfoKHR(java.nio.ByteBuffer container)
Creates aVkDeviceGroupBindSparseInfoKHR
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 VkDeviceGroupBindSparseInfoKHR sType(int value)
Sets the specified value to thesType
field.- Overrides:
sType
in classVkDeviceGroupBindSparseInfo
-
pNext
public VkDeviceGroupBindSparseInfoKHR pNext(long value)
Sets the specified value to thepNext
field.- Overrides:
pNext
in classVkDeviceGroupBindSparseInfo
-
resourceDeviceIndex
public VkDeviceGroupBindSparseInfoKHR resourceDeviceIndex(int value)
Sets the specified value to theresourceDeviceIndex
field.- Overrides:
resourceDeviceIndex
in classVkDeviceGroupBindSparseInfo
-
memoryDeviceIndex
public VkDeviceGroupBindSparseInfoKHR memoryDeviceIndex(int value)
Sets the specified value to thememoryDeviceIndex
field.- Overrides:
memoryDeviceIndex
in classVkDeviceGroupBindSparseInfo
-
set
public VkDeviceGroupBindSparseInfoKHR set(int sType, long pNext, int resourceDeviceIndex, int memoryDeviceIndex)
Initializes this struct with the specified values.- Overrides:
set
in classVkDeviceGroupBindSparseInfo
-
set
public VkDeviceGroupBindSparseInfoKHR set(VkDeviceGroupBindSparseInfoKHR src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static VkDeviceGroupBindSparseInfoKHR malloc()
Returns a newVkDeviceGroupBindSparseInfoKHR
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkDeviceGroupBindSparseInfoKHR calloc()
Returns a newVkDeviceGroupBindSparseInfoKHR
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkDeviceGroupBindSparseInfoKHR create()
Returns a newVkDeviceGroupBindSparseInfoKHR
instance allocated withBufferUtils
.
-
create
public static VkDeviceGroupBindSparseInfoKHR create(long address)
Returns a newVkDeviceGroupBindSparseInfoKHR
instance for the specified memory address.
-
createSafe
@Nullable public static VkDeviceGroupBindSparseInfoKHR createSafe(long address)
-
malloc
public static VkDeviceGroupBindSparseInfoKHR.Buffer malloc(int capacity)
Returns a newVkDeviceGroupBindSparseInfoKHR.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkDeviceGroupBindSparseInfoKHR.Buffer calloc(int capacity)
Returns a newVkDeviceGroupBindSparseInfoKHR.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkDeviceGroupBindSparseInfoKHR.Buffer create(int capacity)
Returns a newVkDeviceGroupBindSparseInfoKHR.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkDeviceGroupBindSparseInfoKHR.Buffer create(long address, int capacity)
Create aVkDeviceGroupBindSparseInfoKHR.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VkDeviceGroupBindSparseInfoKHR.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkDeviceGroupBindSparseInfoKHR mallocStack()
Returns a newVkDeviceGroupBindSparseInfoKHR
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkDeviceGroupBindSparseInfoKHR callocStack()
Returns a newVkDeviceGroupBindSparseInfoKHR
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkDeviceGroupBindSparseInfoKHR mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceGroupBindSparseInfoKHR
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkDeviceGroupBindSparseInfoKHR callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceGroupBindSparseInfoKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VkDeviceGroupBindSparseInfoKHR.Buffer mallocStack(int capacity)
Returns a newVkDeviceGroupBindSparseInfoKHR.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkDeviceGroupBindSparseInfoKHR.Buffer callocStack(int capacity)
Returns a newVkDeviceGroupBindSparseInfoKHR.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkDeviceGroupBindSparseInfoKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceGroupBindSparseInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VkDeviceGroupBindSparseInfoKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceGroupBindSparseInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
-