Package org.lwjgl.util.vma
Class VmaVirtualBlockCreateInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.util.vma.VmaVirtualBlockCreateInfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VmaVirtualBlockCreateInfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceParameters of createdVmaVirtualBlockobject to be passed toCreateVirtualBlock.Layout
struct VmaVirtualBlockCreateInfo { VkDeviceSizesize(); VmaVirtualBlockCreateFlagBitsflags();VkAllocationCallbacksconst *pAllocationCallbacks(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVmaVirtualBlockCreateInfo.BufferAn array ofVmaVirtualBlockCreateInfostructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intFLAGS
PALLOCATIONCALLBACKS
SIZEThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description VmaVirtualBlockCreateInfo(java.nio.ByteBuffer container)Creates aVmaVirtualBlockCreateInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VmaVirtualBlockCreateInfocalloc()Returns a newVmaVirtualBlockCreateInfoinstance allocated withmemCalloc.static VmaVirtualBlockCreateInfo.Buffercalloc(int capacity)Returns a newVmaVirtualBlockCreateInfo.Bufferinstance allocated withmemCalloc.static VmaVirtualBlockCreateInfo.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVmaVirtualBlockCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VmaVirtualBlockCreateInfocalloc(org.lwjgl.system.MemoryStack stack)Returns a newVmaVirtualBlockCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VmaVirtualBlockCreateInfocreate()Returns a newVmaVirtualBlockCreateInfoinstance allocated withBufferUtils.static VmaVirtualBlockCreateInfo.Buffercreate(int capacity)Returns a newVmaVirtualBlockCreateInfo.Bufferinstance allocated withBufferUtils.static VmaVirtualBlockCreateInfocreate(long address)Returns a newVmaVirtualBlockCreateInfoinstance for the specified memory address.static VmaVirtualBlockCreateInfo.Buffercreate(long address, int capacity)Create aVmaVirtualBlockCreateInfo.Bufferinstance at the specified memory.static VmaVirtualBlockCreateInfocreateSafe(long address)static VmaVirtualBlockCreateInfo.BuffercreateSafe(long address, int capacity)intflags()use combination ofVmaVirtualBlockCreateFlagBits.VmaVirtualBlockCreateInfoflags(int value)Sets the specified value to theflags()field.static VmaVirtualBlockCreateInfomalloc()Returns a newVmaVirtualBlockCreateInfoinstance allocated withmemAlloc.static VmaVirtualBlockCreateInfo.Buffermalloc(int capacity)Returns a newVmaVirtualBlockCreateInfo.Bufferinstance allocated withmemAlloc.static VmaVirtualBlockCreateInfo.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVmaVirtualBlockCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.static VmaVirtualBlockCreateInfomalloc(org.lwjgl.system.MemoryStack stack)Returns a newVmaVirtualBlockCreateInfoinstance allocated on the specifiedMemoryStack.static intnflags(long struct)Unsafe version offlags().static voidnflags(long struct, int value)Unsafe version offlags.static org.lwjgl.vulkan.VkAllocationCallbacksnpAllocationCallbacks(long struct)Unsafe version ofpAllocationCallbacks().static voidnpAllocationCallbacks(long struct, org.lwjgl.vulkan.VkAllocationCallbacks value)Unsafe version ofpAllocationCallbacks.static longnsize(long struct)Unsafe version ofsize().static voidnsize(long struct, long value)Unsafe version ofsize.org.lwjgl.vulkan.VkAllocationCallbackspAllocationCallbacks()custom CPU memory allocation callbacks.VmaVirtualBlockCreateInfopAllocationCallbacks(org.lwjgl.vulkan.VkAllocationCallbacks value)Sets the address of the specifiedVkAllocationCallbacksto thepAllocationCallbacks()field.VmaVirtualBlockCreateInfoset(long size, int flags, org.lwjgl.vulkan.VkAllocationCallbacks pAllocationCallbacks)Initializes this struct with the specified values.VmaVirtualBlockCreateInfoset(VmaVirtualBlockCreateInfo src)Copies the specified struct data to this struct.longsize()total size of the virtual block.VmaVirtualBlockCreateInfosize(long value)Sets the specified value to thesize()field.intsizeof()
-
-
-
Constructor Detail
-
VmaVirtualBlockCreateInfo
public VmaVirtualBlockCreateInfo(java.nio.ByteBuffer container)
Creates aVmaVirtualBlockCreateInfoinstance 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
-
size
public long size()
total size of the virtual block.Sizes can be expressed in bytes or any units you want as long as you are consistent in using them. For example, if you allocate from some array of structures, 1 can mean single instance of entire structure.
-
flags
public int flags()
use combination ofVmaVirtualBlockCreateFlagBits. One or more of:VIRTUAL_BLOCK_CREATE_LINEAR_ALGORITHM_BITVIRTUAL_BLOCK_CREATE_BUDDY_ALGORITHM_BITVIRTUAL_BLOCK_CREATE_TLSF_ALGORITHM_BITVIRTUAL_BLOCK_CREATE_ALGORITHM_MASK
-
pAllocationCallbacks
@Nullable public org.lwjgl.vulkan.VkAllocationCallbacks pAllocationCallbacks()
custom CPU memory allocation callbacks. Optional.Optional, can be null. When specified, they will be used for all CPU-side memory allocations.
-
size
public VmaVirtualBlockCreateInfo size(long value)
Sets the specified value to thesize()field.
-
flags
public VmaVirtualBlockCreateInfo flags(int value)
Sets the specified value to theflags()field.
-
pAllocationCallbacks
public VmaVirtualBlockCreateInfo pAllocationCallbacks(@Nullable org.lwjgl.vulkan.VkAllocationCallbacks value)
Sets the address of the specifiedVkAllocationCallbacksto thepAllocationCallbacks()field.
-
set
public VmaVirtualBlockCreateInfo set(long size, int flags, @Nullable org.lwjgl.vulkan.VkAllocationCallbacks pAllocationCallbacks)
Initializes this struct with the specified values.
-
set
public VmaVirtualBlockCreateInfo set(VmaVirtualBlockCreateInfo src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VmaVirtualBlockCreateInfo malloc()
Returns a newVmaVirtualBlockCreateInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VmaVirtualBlockCreateInfo calloc()
Returns a newVmaVirtualBlockCreateInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VmaVirtualBlockCreateInfo create()
Returns a newVmaVirtualBlockCreateInfoinstance allocated withBufferUtils.
-
create
public static VmaVirtualBlockCreateInfo create(long address)
Returns a newVmaVirtualBlockCreateInfoinstance for the specified memory address.
-
createSafe
@Nullable public static VmaVirtualBlockCreateInfo createSafe(long address)
-
malloc
public static VmaVirtualBlockCreateInfo.Buffer malloc(int capacity)
Returns a newVmaVirtualBlockCreateInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VmaVirtualBlockCreateInfo.Buffer calloc(int capacity)
Returns a newVmaVirtualBlockCreateInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VmaVirtualBlockCreateInfo.Buffer create(int capacity)
Returns a newVmaVirtualBlockCreateInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VmaVirtualBlockCreateInfo.Buffer create(long address, int capacity)
Create aVmaVirtualBlockCreateInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VmaVirtualBlockCreateInfo.Buffer createSafe(long address, int capacity)
-
malloc
public static VmaVirtualBlockCreateInfo malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVmaVirtualBlockCreateInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VmaVirtualBlockCreateInfo calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVmaVirtualBlockCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VmaVirtualBlockCreateInfo.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVmaVirtualBlockCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VmaVirtualBlockCreateInfo.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVmaVirtualBlockCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nsize
public static long nsize(long struct)
Unsafe version ofsize().
-
nflags
public static int nflags(long struct)
Unsafe version offlags().
-
npAllocationCallbacks
@Nullable public static org.lwjgl.vulkan.VkAllocationCallbacks npAllocationCallbacks(long struct)
Unsafe version ofpAllocationCallbacks().
-
nsize
public static void nsize(long struct, long value)Unsafe version ofsize.
-
nflags
public static void nflags(long struct, int value)Unsafe version offlags.
-
npAllocationCallbacks
public static void npAllocationCallbacks(long struct, @Nullable org.lwjgl.vulkan.VkAllocationCallbacks value)Unsafe version ofpAllocationCallbacks.
-
-