Package org.lwjgl.vulkan
Class VkSparseImageOpaqueMemoryBindInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkSparseImageOpaqueMemoryBindInfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkSparseImageOpaqueMemoryBindInfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying sparse image opaque memory bind information.Valid Usage
- If the
flagsmember of any element ofpBindscontainsSPARSE_MEMORY_BIND_METADATA_BIT, the binding range defined must be within the mip tail region of the metadata aspect ofimage
Valid Usage (Implicit)
imagemust be a validVkImagehandlepBindsmust be a valid pointer to an array ofbindCountvalidVkSparseMemoryBindstructuresbindCountmust be greater than 0
See Also
VkBindSparseInfo,VkSparseMemoryBindLayout
struct VkSparseImageOpaqueMemoryBindInfo { VkImageimage(); uint32_tbindCount();VkSparseMemoryBindconst *pBinds(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkSparseImageOpaqueMemoryBindInfo.BufferAn array ofVkSparseImageOpaqueMemoryBindInfostructs.
-
Constructor Summary
Constructors Constructor Description VkSparseImageOpaqueMemoryBindInfo(java.nio.ByteBuffer container)Creates aVkSparseImageOpaqueMemoryBindInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intbindCount()the number ofVkSparseMemoryBindstructures in thepBindsarray.static VkSparseImageOpaqueMemoryBindInfocalloc()Returns a newVkSparseImageOpaqueMemoryBindInfoinstance allocated withmemCalloc.static VkSparseImageOpaqueMemoryBindInfo.Buffercalloc(int capacity)Returns a newVkSparseImageOpaqueMemoryBindInfo.Bufferinstance allocated withmemCalloc.static VkSparseImageOpaqueMemoryBindInfo.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkSparseImageOpaqueMemoryBindInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkSparseImageOpaqueMemoryBindInfocalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkSparseImageOpaqueMemoryBindInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkSparseImageOpaqueMemoryBindInfocallocStack()Deprecated.static VkSparseImageOpaqueMemoryBindInfo.BuffercallocStack(int capacity)Deprecated.static VkSparseImageOpaqueMemoryBindInfo.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkSparseImageOpaqueMemoryBindInfocallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static VkSparseImageOpaqueMemoryBindInfocreate()Returns a newVkSparseImageOpaqueMemoryBindInfoinstance allocated withBufferUtils.static VkSparseImageOpaqueMemoryBindInfo.Buffercreate(int capacity)Returns a newVkSparseImageOpaqueMemoryBindInfo.Bufferinstance allocated withBufferUtils.static VkSparseImageOpaqueMemoryBindInfocreate(long address)Returns a newVkSparseImageOpaqueMemoryBindInfoinstance for the specified memory address.static VkSparseImageOpaqueMemoryBindInfo.Buffercreate(long address, int capacity)Create aVkSparseImageOpaqueMemoryBindInfo.Bufferinstance at the specified memory.static VkSparseImageOpaqueMemoryBindInfocreateSafe(long address)static VkSparseImageOpaqueMemoryBindInfo.BuffercreateSafe(long address, int capacity)longimage()theVkImageobject to be bound.VkSparseImageOpaqueMemoryBindInfoimage(long value)Sets the specified value to theimage()field.static VkSparseImageOpaqueMemoryBindInfomalloc()Returns a newVkSparseImageOpaqueMemoryBindInfoinstance allocated withmemAlloc.static VkSparseImageOpaqueMemoryBindInfo.Buffermalloc(int capacity)Returns a newVkSparseImageOpaqueMemoryBindInfo.Bufferinstance allocated withmemAlloc.static VkSparseImageOpaqueMemoryBindInfo.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkSparseImageOpaqueMemoryBindInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkSparseImageOpaqueMemoryBindInfomalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkSparseImageOpaqueMemoryBindInfoinstance allocated on the specifiedMemoryStack.static VkSparseImageOpaqueMemoryBindInfomallocStack()Deprecated.static VkSparseImageOpaqueMemoryBindInfo.BuffermallocStack(int capacity)Deprecated.static VkSparseImageOpaqueMemoryBindInfo.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkSparseImageOpaqueMemoryBindInfomallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static intnbindCount(long struct)Unsafe version ofbindCount().static voidnbindCount(long struct, int value)Sets the specified value to thebindCountfield of the specifiedstruct.static longnimage(long struct)Unsafe version ofimage().static voidnimage(long struct, long value)Unsafe version ofimage.static VkSparseMemoryBind.BuffernpBinds(long struct)Unsafe version ofpBinds().static voidnpBinds(long struct, VkSparseMemoryBind.Buffer value)Unsafe version ofpBinds.VkSparseMemoryBind.BufferpBinds()a pointer to an array ofVkSparseMemoryBindstructures.VkSparseImageOpaqueMemoryBindInfopBinds(VkSparseMemoryBind.Buffer value)Sets the address of the specifiedVkSparseMemoryBind.Bufferto thepBinds()field.VkSparseImageOpaqueMemoryBindInfoset(long image, VkSparseMemoryBind.Buffer pBinds)Initializes this struct with the specified values.VkSparseImageOpaqueMemoryBindInfoset(VkSparseImageOpaqueMemoryBindInfo src)Copies the specified struct data to this struct.intsizeof()static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
VkSparseImageOpaqueMemoryBindInfo
public VkSparseImageOpaqueMemoryBindInfo(java.nio.ByteBuffer container)
Creates aVkSparseImageOpaqueMemoryBindInfoinstance 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
-
image
public long image()
theVkImageobject to be bound.
-
bindCount
public int bindCount()
the number ofVkSparseMemoryBindstructures in thepBindsarray.
-
pBinds
public VkSparseMemoryBind.Buffer pBinds()
a pointer to an array ofVkSparseMemoryBindstructures.
-
image
public VkSparseImageOpaqueMemoryBindInfo image(long value)
Sets the specified value to theimage()field.
-
pBinds
public VkSparseImageOpaqueMemoryBindInfo pBinds(VkSparseMemoryBind.Buffer value)
Sets the address of the specifiedVkSparseMemoryBind.Bufferto thepBinds()field.
-
set
public VkSparseImageOpaqueMemoryBindInfo set(long image, VkSparseMemoryBind.Buffer pBinds)
Initializes this struct with the specified values.
-
set
public VkSparseImageOpaqueMemoryBindInfo set(VkSparseImageOpaqueMemoryBindInfo src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkSparseImageOpaqueMemoryBindInfo malloc()
Returns a newVkSparseImageOpaqueMemoryBindInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkSparseImageOpaqueMemoryBindInfo calloc()
Returns a newVkSparseImageOpaqueMemoryBindInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkSparseImageOpaqueMemoryBindInfo create()
Returns a newVkSparseImageOpaqueMemoryBindInfoinstance allocated withBufferUtils.
-
create
public static VkSparseImageOpaqueMemoryBindInfo create(long address)
Returns a newVkSparseImageOpaqueMemoryBindInfoinstance for the specified memory address.
-
createSafe
@Nullable public static VkSparseImageOpaqueMemoryBindInfo createSafe(long address)
-
malloc
public static VkSparseImageOpaqueMemoryBindInfo.Buffer malloc(int capacity)
Returns a newVkSparseImageOpaqueMemoryBindInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkSparseImageOpaqueMemoryBindInfo.Buffer calloc(int capacity)
Returns a newVkSparseImageOpaqueMemoryBindInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkSparseImageOpaqueMemoryBindInfo.Buffer create(int capacity)
Returns a newVkSparseImageOpaqueMemoryBindInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkSparseImageOpaqueMemoryBindInfo.Buffer create(long address, int capacity)
Create aVkSparseImageOpaqueMemoryBindInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkSparseImageOpaqueMemoryBindInfo.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static VkSparseImageOpaqueMemoryBindInfo mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkSparseImageOpaqueMemoryBindInfo callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkSparseImageOpaqueMemoryBindInfo mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkSparseImageOpaqueMemoryBindInfo callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkSparseImageOpaqueMemoryBindInfo.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkSparseImageOpaqueMemoryBindInfo.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkSparseImageOpaqueMemoryBindInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkSparseImageOpaqueMemoryBindInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkSparseImageOpaqueMemoryBindInfo malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkSparseImageOpaqueMemoryBindInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkSparseImageOpaqueMemoryBindInfo calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkSparseImageOpaqueMemoryBindInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkSparseImageOpaqueMemoryBindInfo.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkSparseImageOpaqueMemoryBindInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkSparseImageOpaqueMemoryBindInfo.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkSparseImageOpaqueMemoryBindInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nimage
public static long nimage(long struct)
Unsafe version ofimage().
-
nbindCount
public static int nbindCount(long struct)
Unsafe version ofbindCount().
-
npBinds
public static VkSparseMemoryBind.Buffer npBinds(long struct)
Unsafe version ofpBinds().
-
nimage
public static void nimage(long struct, long value)Unsafe version ofimage.
-
nbindCount
public static void nbindCount(long struct, int value)Sets the specified value to thebindCountfield of the specifiedstruct.
-
npBinds
public static void npBinds(long struct, VkSparseMemoryBind.Buffer value)Unsafe version ofpBinds.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-