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.NativeResourceStructure 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,
resourceDeviceIndexandmemoryDeviceIndexare assumed to be zero.Valid Usage
resourceDeviceIndexandmemoryDeviceIndexmust both be valid device indices.- Each memory allocation bound in this batch must have allocated an instance for
memoryDeviceIndex.
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_DEVICE_GROUP_BIND_SPARSE_INFO
Member documentation
sType– the type of this structure.pNext–NULLor 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 classVkDeviceGroupBindSparseInfo.BufferAn array ofVkDeviceGroupBindSparseInfostructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intMEMORYDEVICEINDEX
PNEXT
RESOURCEDEVICEINDEXThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkDeviceGroupBindSparseInfo(java.nio.ByteBuffer container)Creates aVkDeviceGroupBindSparseInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkDeviceGroupBindSparseInfocalloc()Returns a newVkDeviceGroupBindSparseInfoinstance allocated withmemCalloc.static VkDeviceGroupBindSparseInfo.Buffercalloc(int capacity)Returns a newVkDeviceGroupBindSparseInfo.Bufferinstance allocated withmemCalloc.static VkDeviceGroupBindSparseInfocallocStack()Returns a newVkDeviceGroupBindSparseInfoinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkDeviceGroupBindSparseInfo.BuffercallocStack(int capacity)Returns a newVkDeviceGroupBindSparseInfo.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkDeviceGroupBindSparseInfo.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDeviceGroupBindSparseInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDeviceGroupBindSparseInfocallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkDeviceGroupBindSparseInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDeviceGroupBindSparseInfocreate()Returns a newVkDeviceGroupBindSparseInfoinstance allocated withBufferUtils.static VkDeviceGroupBindSparseInfo.Buffercreate(int capacity)Returns a newVkDeviceGroupBindSparseInfo.Bufferinstance allocated withBufferUtils.static VkDeviceGroupBindSparseInfocreate(long address)Returns a newVkDeviceGroupBindSparseInfoinstance for the specified memory address.static VkDeviceGroupBindSparseInfo.Buffercreate(long address, int capacity)Create aVkDeviceGroupBindSparseInfo.Bufferinstance at the specified memory.static VkDeviceGroupBindSparseInfocreateSafe(long address)static VkDeviceGroupBindSparseInfo.BuffercreateSafe(long address, int capacity)static VkDeviceGroupBindSparseInfomalloc()Returns a newVkDeviceGroupBindSparseInfoinstance allocated withmemAlloc.static VkDeviceGroupBindSparseInfo.Buffermalloc(int capacity)Returns a newVkDeviceGroupBindSparseInfo.Bufferinstance allocated withmemAlloc.static VkDeviceGroupBindSparseInfomallocStack()Returns a newVkDeviceGroupBindSparseInfoinstance allocated on the thread-localMemoryStack.static VkDeviceGroupBindSparseInfo.BuffermallocStack(int capacity)Returns a newVkDeviceGroupBindSparseInfo.Bufferinstance allocated on the thread-localMemoryStack.static VkDeviceGroupBindSparseInfo.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDeviceGroupBindSparseInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkDeviceGroupBindSparseInfomallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkDeviceGroupBindSparseInfoinstance allocated on the specifiedMemoryStack.intmemoryDeviceIndex()Returns the value of thememoryDeviceIndexfield.VkDeviceGroupBindSparseInfomemoryDeviceIndex(int value)Sets the specified value to thememoryDeviceIndexfield.static intnmemoryDeviceIndex(long struct)Unsafe version ofmemoryDeviceIndex().static voidnmemoryDeviceIndex(long struct, int value)Unsafe version ofmemoryDeviceIndex.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnresourceDeviceIndex(long struct)Unsafe version ofresourceDeviceIndex().static voidnresourceDeviceIndex(long struct, int value)Unsafe version ofresourceDeviceIndex.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.longpNext()Returns the value of thepNextfield.VkDeviceGroupBindSparseInfopNext(long value)Sets the specified value to thepNextfield.intresourceDeviceIndex()Returns the value of theresourceDeviceIndexfield.VkDeviceGroupBindSparseInforesourceDeviceIndex(int value)Sets the specified value to theresourceDeviceIndexfield.VkDeviceGroupBindSparseInfoset(int sType, long pNext, int resourceDeviceIndex, int memoryDeviceIndex)Initializes this struct with the specified values.VkDeviceGroupBindSparseInfoset(VkDeviceGroupBindSparseInfo src)Copies the specified struct data to this struct.intsizeof()intsType()Returns the value of thesTypefield.VkDeviceGroupBindSparseInfosType(int value)Sets the specified value to thesTypefield.
-
-
-
Constructor Detail
-
VkDeviceGroupBindSparseInfo
public VkDeviceGroupBindSparseInfo(java.nio.ByteBuffer container)
Creates aVkDeviceGroupBindSparseInfoinstance 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
-
sType
public int sType()
Returns the value of thesTypefield.
-
pNext
public long pNext()
Returns the value of thepNextfield.
-
resourceDeviceIndex
public int resourceDeviceIndex()
Returns the value of theresourceDeviceIndexfield.
-
memoryDeviceIndex
public int memoryDeviceIndex()
Returns the value of thememoryDeviceIndexfield.
-
sType
public VkDeviceGroupBindSparseInfo sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkDeviceGroupBindSparseInfo pNext(long value)
Sets the specified value to thepNextfield.
-
resourceDeviceIndex
public VkDeviceGroupBindSparseInfo resourceDeviceIndex(int value)
Sets the specified value to theresourceDeviceIndexfield.
-
memoryDeviceIndex
public VkDeviceGroupBindSparseInfo memoryDeviceIndex(int value)
Sets the specified value to thememoryDeviceIndexfield.
-
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 newVkDeviceGroupBindSparseInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkDeviceGroupBindSparseInfo calloc()
Returns a newVkDeviceGroupBindSparseInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkDeviceGroupBindSparseInfo create()
Returns a newVkDeviceGroupBindSparseInfoinstance allocated withBufferUtils.
-
create
public static VkDeviceGroupBindSparseInfo create(long address)
Returns a newVkDeviceGroupBindSparseInfoinstance for the specified memory address.
-
createSafe
@Nullable public static VkDeviceGroupBindSparseInfo createSafe(long address)
-
malloc
public static VkDeviceGroupBindSparseInfo.Buffer malloc(int capacity)
Returns a newVkDeviceGroupBindSparseInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkDeviceGroupBindSparseInfo.Buffer calloc(int capacity)
Returns a newVkDeviceGroupBindSparseInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkDeviceGroupBindSparseInfo.Buffer create(int capacity)
Returns a newVkDeviceGroupBindSparseInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkDeviceGroupBindSparseInfo.Buffer create(long address, int capacity)
Create aVkDeviceGroupBindSparseInfo.Bufferinstance 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 newVkDeviceGroupBindSparseInfoinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkDeviceGroupBindSparseInfo callocStack()
Returns a newVkDeviceGroupBindSparseInfoinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkDeviceGroupBindSparseInfo mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceGroupBindSparseInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkDeviceGroupBindSparseInfo callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceGroupBindSparseInfoinstance allocated on the specifiedMemoryStackand 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.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkDeviceGroupBindSparseInfo.Buffer callocStack(int capacity)
Returns a newVkDeviceGroupBindSparseInfo.Bufferinstance allocated on the thread-localMemoryStackand 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.Bufferinstance 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.Bufferinstance allocated on the specifiedMemoryStackand 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.
-
-