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, NativeResource, Pointer
public class VkSparseImageOpaqueMemoryBindInfo extends Struct
Khronos Reference Page
Vulkan SpecificationDescribes a memory binding to an opaque region of a
VkImageobject.Valid Usage
imagemust be a validVkImagehandlepBindsmust be a pointer to an array ofbindCountvalidVkSparseMemoryBindstructuresbindCountmust be greater than 0- For any given element of
pBinds, if theflagsmember of that element containsSPARSE_MEMORY_BIND_METADATA_BIT, the binding range defined must be within the mip tail region of the metadata aspect ofimage
Member documentation
image– theVkImageobject to be boundbindCount– the number ofVkSparseMemoryBindstructures in thepBindsarraypBinds– a pointer to array ofVkSparseMemoryBindstructures
Layout
struct VkSparseImageOpaqueMemoryBindInfo { VkImage image; uint32_t bindCount; const VkSparseMemoryBind * pBinds; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classVkSparseImageOpaqueMemoryBindInfo.BufferAn array ofVkSparseImageOpaqueMemoryBindInfostructs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field and Description static intSIZEOFThe struct size in bytes.-
Fields inherited from interface org.lwjgl.system.Pointer
POINTER_SHIFT, POINTER_SIZE
-
-
Constructor Summary
Constructors Constructor and 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 Modifier and Type Method and Description intbindCount()Returns the value of thebindCountfield.static VkSparseImageOpaqueMemoryBindInfocalloc()Returns a newVkSparseImageOpaqueMemoryBindInfoinstance allocated withmemCalloc.static VkSparseImageOpaqueMemoryBindInfo.Buffercalloc(int capacity)Returns a newVkSparseImageOpaqueMemoryBindInfo.Bufferinstance allocated withmemCalloc.static VkSparseImageOpaqueMemoryBindInfocallocStack()Returns a newVkSparseImageOpaqueMemoryBindInfoinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkSparseImageOpaqueMemoryBindInfo.BuffercallocStack(int capacity)Returns a newVkSparseImageOpaqueMemoryBindInfo.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkSparseImageOpaqueMemoryBindInfo.BuffercallocStack(int capacity, MemoryStack stack)Returns a newVkSparseImageOpaqueMemoryBindInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkSparseImageOpaqueMemoryBindInfocallocStack(MemoryStack stack)Returns a newVkSparseImageOpaqueMemoryBindInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.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 ornullif the address isNULL.static VkSparseImageOpaqueMemoryBindInfo.Buffercreate(long address, int capacity)Create aVkSparseImageOpaqueMemoryBindInfo.Bufferinstance at the specified memory.longimage()Returns the value of theimagefield.VkSparseImageOpaqueMemoryBindInfoimage(long value)Sets the specified value to theimagefield.static VkSparseImageOpaqueMemoryBindInfomalloc()Returns a newVkSparseImageOpaqueMemoryBindInfoinstance allocated withmemAlloc.static VkSparseImageOpaqueMemoryBindInfo.Buffermalloc(int capacity)Returns a newVkSparseImageOpaqueMemoryBindInfo.Bufferinstance allocated withmemAlloc.static VkSparseImageOpaqueMemoryBindInfomallocStack()Returns a newVkSparseImageOpaqueMemoryBindInfoinstance allocated on the thread-localMemoryStack.static VkSparseImageOpaqueMemoryBindInfo.BuffermallocStack(int capacity)Returns a newVkSparseImageOpaqueMemoryBindInfo.Bufferinstance allocated on the thread-localMemoryStack.static VkSparseImageOpaqueMemoryBindInfo.BuffermallocStack(int capacity, MemoryStack stack)Returns a newVkSparseImageOpaqueMemoryBindInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkSparseImageOpaqueMemoryBindInfomallocStack(MemoryStack stack)Returns a newVkSparseImageOpaqueMemoryBindInfoinstance allocated on the specifiedMemoryStack.VkSparseImageOpaqueMemoryBindInfonset(long struct)Unsafe version ofset.VkSparseMemoryBind.BufferpBinds()Returns aVkSparseMemoryBind.Bufferview of the struct array pointed to by thepBindsfield.VkSparseImageOpaqueMemoryBindInfopBinds(VkSparseMemoryBind.Buffer value)Sets the address of the specifiedVkSparseMemoryBind.Bufferto thepBindsfield.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()Returns thesizeof(struct).static voidvalidate(long struct)Validates pointer members that should not beNULL.static voidvalidate(long array, int count)CallsVkSparseImageOpaqueMemoryBindInfo.validate(long)for each struct contained in the specified struct array.-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
-
-
-
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()
Description copied from class:StructReturns thesizeof(struct).
-
image
public long image()
Returns the value of theimagefield.
-
bindCount
public int bindCount()
Returns the value of thebindCountfield.
-
pBinds
public VkSparseMemoryBind.Buffer pBinds()
Returns aVkSparseMemoryBind.Bufferview of the struct array pointed to by thepBindsfield.
-
image
public VkSparseImageOpaqueMemoryBindInfo image(long value)
Sets the specified value to theimagefield.
-
pBinds
public VkSparseImageOpaqueMemoryBindInfo pBinds(VkSparseMemoryBind.Buffer value)
Sets the address of the specifiedVkSparseMemoryBind.Bufferto thepBindsfield.
-
set
public VkSparseImageOpaqueMemoryBindInfo set(long image, VkSparseMemoryBind.Buffer pBinds)
Initializes this struct with the specified values.
-
nset
public VkSparseImageOpaqueMemoryBindInfo nset(long struct)
Unsafe version ofset.
-
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 ornullif the address isNULL.
-
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
-
mallocStack
public static VkSparseImageOpaqueMemoryBindInfo mallocStack()
Returns a newVkSparseImageOpaqueMemoryBindInfoinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkSparseImageOpaqueMemoryBindInfo callocStack()
Returns a newVkSparseImageOpaqueMemoryBindInfoinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkSparseImageOpaqueMemoryBindInfo mallocStack(MemoryStack stack)
Returns a newVkSparseImageOpaqueMemoryBindInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkSparseImageOpaqueMemoryBindInfo callocStack(MemoryStack stack)
Returns a newVkSparseImageOpaqueMemoryBindInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkSparseImageOpaqueMemoryBindInfo.Buffer mallocStack(int capacity)
Returns a newVkSparseImageOpaqueMemoryBindInfo.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkSparseImageOpaqueMemoryBindInfo.Buffer callocStack(int capacity)
Returns a newVkSparseImageOpaqueMemoryBindInfo.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkSparseImageOpaqueMemoryBindInfo.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newVkSparseImageOpaqueMemoryBindInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkSparseImageOpaqueMemoryBindInfo.Buffer callocStack(int capacity, 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
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
validate
public static void validate(long array, int count)CallsVkSparseImageOpaqueMemoryBindInfo.validate(long)for each struct contained in the specified struct array.- Parameters:
array- the struct array to validatecount- the number of structs inarray
-
-