Package org.lwjgl.vulkan
Class VkDeviceGroupBindSparseInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkDeviceGroupBindSparseInfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkDeviceGroupBindSparseInfoKHR
public class VkDeviceGroupBindSparseInfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Structure indicating which instances are bound.Description
These device indices apply to all buffer and image memory binds included in the batch that points to this structure. The semaphore waits and signals for the batch are executed only by the physical device specified by the
resourceDeviceIndex
.If this structure is not present,
resourceDeviceIndex
andmemoryDeviceIndex
are assumed to be zero.Valid Usage
resourceDeviceIndex
andmemoryDeviceIndex
must both be valid device indices.- Each memory allocation bound in this batch must have allocated an instance for
memoryDeviceIndex
.
Valid Usage (Implicit)
sType
must beSTRUCTURE_TYPE_DEVICE_GROUP_BIND_SPARSE_INFO
Member documentation
sType
– the type of this structure.pNext
–NULL
or a pointer to an extension-specific structure.resourceDeviceIndex
– a device index indicating which instance of the resource is bound.memoryDeviceIndex
– a device index indicating which instance of the memory the resource instance is bound to.
Layout
struct VkDeviceGroupBindSparseInfo { VkStructureType sType; void const * pNext; uint32_t resourceDeviceIndex; uint32_t memoryDeviceIndex; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VkDeviceGroupBindSparseInfo.Buffer
An array ofVkDeviceGroupBindSparseInfo
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
MEMORYDEVICEINDEX
PNEXT
RESOURCEDEVICEINDEXThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
STYPE
The struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkDeviceGroupBindSparseInfo(java.nio.ByteBuffer container)
Creates aVkDeviceGroupBindSparseInfo
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 VkDeviceGroupBindSparseInfo
calloc()
Returns a newVkDeviceGroupBindSparseInfo
instance allocated withmemCalloc
.static VkDeviceGroupBindSparseInfo.Buffer
calloc(int capacity)
Returns a newVkDeviceGroupBindSparseInfo.Buffer
instance allocated withmemCalloc
.static VkDeviceGroupBindSparseInfo
callocStack()
Returns a newVkDeviceGroupBindSparseInfo
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkDeviceGroupBindSparseInfo.Buffer
callocStack(int capacity)
Returns a newVkDeviceGroupBindSparseInfo.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkDeviceGroupBindSparseInfo.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceGroupBindSparseInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkDeviceGroupBindSparseInfo
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceGroupBindSparseInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkDeviceGroupBindSparseInfo
create()
Returns a newVkDeviceGroupBindSparseInfo
instance allocated withBufferUtils
.static VkDeviceGroupBindSparseInfo.Buffer
create(int capacity)
Returns a newVkDeviceGroupBindSparseInfo.Buffer
instance allocated withBufferUtils
.static VkDeviceGroupBindSparseInfo
create(long address)
Returns a newVkDeviceGroupBindSparseInfo
instance for the specified memory address.static VkDeviceGroupBindSparseInfo.Buffer
create(long address, int capacity)
Create aVkDeviceGroupBindSparseInfo.Buffer
instance at the specified memory.static VkDeviceGroupBindSparseInfo
createSafe(long address)
static VkDeviceGroupBindSparseInfo.Buffer
createSafe(long address, int capacity)
static VkDeviceGroupBindSparseInfo
malloc()
Returns a newVkDeviceGroupBindSparseInfo
instance allocated withmemAlloc
.static VkDeviceGroupBindSparseInfo.Buffer
malloc(int capacity)
Returns a newVkDeviceGroupBindSparseInfo.Buffer
instance allocated withmemAlloc
.static VkDeviceGroupBindSparseInfo
mallocStack()
Returns a newVkDeviceGroupBindSparseInfo
instance allocated on the thread-localMemoryStack
.static VkDeviceGroupBindSparseInfo.Buffer
mallocStack(int capacity)
Returns a newVkDeviceGroupBindSparseInfo.Buffer
instance allocated on the thread-localMemoryStack
.static VkDeviceGroupBindSparseInfo.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceGroupBindSparseInfo.Buffer
instance allocated on the specifiedMemoryStack
.static VkDeviceGroupBindSparseInfo
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceGroupBindSparseInfo
instance allocated on the specifiedMemoryStack
.int
memoryDeviceIndex()
Returns the value of thememoryDeviceIndex
field.VkDeviceGroupBindSparseInfo
memoryDeviceIndex(int value)
Sets the specified value to thememoryDeviceIndex
field.static int
nmemoryDeviceIndex(long struct)
Unsafe version ofmemoryDeviceIndex()
.static void
nmemoryDeviceIndex(long struct, int value)
Unsafe version ofmemoryDeviceIndex
.static long
npNext(long struct)
Unsafe version ofpNext()
.static void
npNext(long struct, long value)
Unsafe version ofpNext
.static int
nresourceDeviceIndex(long struct)
Unsafe version ofresourceDeviceIndex()
.static void
nresourceDeviceIndex(long struct, int value)
Unsafe version ofresourceDeviceIndex
.static int
nsType(long struct)
Unsafe version ofsType()
.static void
nsType(long struct, int value)
Unsafe version ofsType
.long
pNext()
Returns the value of thepNext
field.VkDeviceGroupBindSparseInfo
pNext(long value)
Sets the specified value to thepNext
field.int
resourceDeviceIndex()
Returns the value of theresourceDeviceIndex
field.VkDeviceGroupBindSparseInfo
resourceDeviceIndex(int value)
Sets the specified value to theresourceDeviceIndex
field.VkDeviceGroupBindSparseInfo
set(int sType, long pNext, int resourceDeviceIndex, int memoryDeviceIndex)
Initializes this struct with the specified values.VkDeviceGroupBindSparseInfo
set(VkDeviceGroupBindSparseInfo src)
Copies the specified struct data to this struct.int
sizeof()
int
sType()
Returns the value of thesType
field.VkDeviceGroupBindSparseInfo
sType(int value)
Sets the specified value to thesType
field.
-
-
-
Constructor Detail
-
VkDeviceGroupBindSparseInfo
public VkDeviceGroupBindSparseInfo(java.nio.ByteBuffer container)
Creates aVkDeviceGroupBindSparseInfo
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
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
sType
public int sType()
Returns the value of thesType
field.
-
pNext
public long pNext()
Returns the value of thepNext
field.
-
resourceDeviceIndex
public int resourceDeviceIndex()
Returns the value of theresourceDeviceIndex
field.
-
memoryDeviceIndex
public int memoryDeviceIndex()
Returns the value of thememoryDeviceIndex
field.
-
sType
public VkDeviceGroupBindSparseInfo sType(int value)
Sets the specified value to thesType
field.
-
pNext
public VkDeviceGroupBindSparseInfo pNext(long value)
Sets the specified value to thepNext
field.
-
resourceDeviceIndex
public VkDeviceGroupBindSparseInfo resourceDeviceIndex(int value)
Sets the specified value to theresourceDeviceIndex
field.
-
memoryDeviceIndex
public VkDeviceGroupBindSparseInfo memoryDeviceIndex(int value)
Sets the specified value to thememoryDeviceIndex
field.
-
set
public VkDeviceGroupBindSparseInfo set(int sType, long pNext, int resourceDeviceIndex, int memoryDeviceIndex)
Initializes this struct with the specified values.
-
set
public VkDeviceGroupBindSparseInfo set(VkDeviceGroupBindSparseInfo src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static VkDeviceGroupBindSparseInfo malloc()
Returns a newVkDeviceGroupBindSparseInfo
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkDeviceGroupBindSparseInfo calloc()
Returns a newVkDeviceGroupBindSparseInfo
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkDeviceGroupBindSparseInfo create()
Returns a newVkDeviceGroupBindSparseInfo
instance allocated withBufferUtils
.
-
create
public static VkDeviceGroupBindSparseInfo create(long address)
Returns a newVkDeviceGroupBindSparseInfo
instance for the specified memory address.
-
createSafe
@Nullable public static VkDeviceGroupBindSparseInfo createSafe(long address)
-
malloc
public static VkDeviceGroupBindSparseInfo.Buffer malloc(int capacity)
Returns a newVkDeviceGroupBindSparseInfo.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkDeviceGroupBindSparseInfo.Buffer calloc(int capacity)
Returns a newVkDeviceGroupBindSparseInfo.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkDeviceGroupBindSparseInfo.Buffer create(int capacity)
Returns a newVkDeviceGroupBindSparseInfo.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkDeviceGroupBindSparseInfo.Buffer create(long address, int capacity)
Create aVkDeviceGroupBindSparseInfo.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VkDeviceGroupBindSparseInfo.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkDeviceGroupBindSparseInfo mallocStack()
Returns a newVkDeviceGroupBindSparseInfo
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkDeviceGroupBindSparseInfo callocStack()
Returns a newVkDeviceGroupBindSparseInfo
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkDeviceGroupBindSparseInfo mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceGroupBindSparseInfo
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkDeviceGroupBindSparseInfo callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceGroupBindSparseInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VkDeviceGroupBindSparseInfo.Buffer mallocStack(int capacity)
Returns a newVkDeviceGroupBindSparseInfo.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkDeviceGroupBindSparseInfo.Buffer callocStack(int capacity)
Returns a newVkDeviceGroupBindSparseInfo.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkDeviceGroupBindSparseInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceGroupBindSparseInfo.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VkDeviceGroupBindSparseInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceGroupBindSparseInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
nsType
public static int nsType(long struct)
Unsafe version ofsType()
.
-
npNext
public static long npNext(long struct)
Unsafe version ofpNext()
.
-
nresourceDeviceIndex
public static int nresourceDeviceIndex(long struct)
Unsafe version ofresourceDeviceIndex()
.
-
nmemoryDeviceIndex
public static int nmemoryDeviceIndex(long struct)
Unsafe version ofmemoryDeviceIndex()
.
-
nsType
public static void nsType(long struct, int value)
Unsafe version ofsType
.
-
npNext
public static void npNext(long struct, long value)
Unsafe version ofpNext
.
-
nresourceDeviceIndex
public static void nresourceDeviceIndex(long struct, int value)
Unsafe version ofresourceDeviceIndex
.
-
nmemoryDeviceIndex
public static void nmemoryDeviceIndex(long struct, int value)
Unsafe version ofmemoryDeviceIndex
.
-
-