public class VmaRecordSettings
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
VmaAllocatorCreateInfo::pRecordSettings.
flags – flags for recording. Must be:RECORD_FLUSH_AFTER_CALL_BIT |
pFilePath –
path to the file that should be written by the recording.
Suggested extension: "csv". If the file already exists, it will be overwritten. It will be opened for the whole time VmaAllocator object is
alive. If opening this file fails, creation of the whole allocator object fails.
struct VmaRecordSettings {
VmaRecordFlags flags;
char const * pFilePath;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VmaRecordSettings.Buffer
An array of
VmaRecordSettings structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
FLAGS
The struct member offsets.
|
static int |
PFILEPATH
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
VmaRecordSettings(java.nio.ByteBuffer container)
Creates a
VmaRecordSettings instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VmaRecordSettings |
calloc()
Returns a new
VmaRecordSettings instance allocated with memCalloc. |
static VmaRecordSettings.Buffer |
calloc(int capacity)
Returns a new
VmaRecordSettings.Buffer instance allocated with memCalloc. |
static VmaRecordSettings |
callocStack()
Returns a new
VmaRecordSettings instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VmaRecordSettings.Buffer |
callocStack(int capacity)
Returns a new
VmaRecordSettings.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VmaRecordSettings.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VmaRecordSettings.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VmaRecordSettings |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VmaRecordSettings instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VmaRecordSettings |
create()
Returns a new
VmaRecordSettings instance allocated with BufferUtils. |
static VmaRecordSettings.Buffer |
create(int capacity)
Returns a new
VmaRecordSettings.Buffer instance allocated with BufferUtils. |
static VmaRecordSettings |
create(long address)
Returns a new
VmaRecordSettings instance for the specified memory address. |
static VmaRecordSettings.Buffer |
create(long address,
int capacity)
Create a
VmaRecordSettings.Buffer instance at the specified memory. |
static VmaRecordSettings |
createSafe(long address)
|
static VmaRecordSettings.Buffer |
createSafe(long address,
int capacity)
|
int |
flags()
Returns the value of the
flags field. |
VmaRecordSettings |
flags(int value)
Sets the specified value to the
flags field. |
static VmaRecordSettings |
malloc()
Returns a new
VmaRecordSettings instance allocated with memAlloc. |
static VmaRecordSettings.Buffer |
malloc(int capacity)
Returns a new
VmaRecordSettings.Buffer instance allocated with memAlloc. |
static VmaRecordSettings |
mallocStack()
Returns a new
VmaRecordSettings instance allocated on the thread-local MemoryStack. |
static VmaRecordSettings.Buffer |
mallocStack(int capacity)
Returns a new
VmaRecordSettings.Buffer instance allocated on the thread-local MemoryStack. |
static VmaRecordSettings.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VmaRecordSettings.Buffer instance allocated on the specified MemoryStack. |
static VmaRecordSettings |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VmaRecordSettings instance allocated on the specified MemoryStack. |
static int |
nflags(long struct)
Unsafe version of
flags(). |
static void |
nflags(long struct,
int value)
Unsafe version of
flags. |
static java.nio.ByteBuffer |
npFilePath(long struct)
Unsafe version of
pFilePath(). |
static void |
npFilePath(long struct,
java.nio.ByteBuffer value)
Unsafe version of
pFilePath. |
static java.lang.String |
npFilePathString(long struct)
Unsafe version of
pFilePathString(). |
java.nio.ByteBuffer |
pFilePath()
Returns a
ByteBuffer view of the null-terminated string pointed to by the pFilePath field. |
VmaRecordSettings |
pFilePath(java.nio.ByteBuffer value)
Sets the address of the specified encoded string to the
pFilePath field. |
java.lang.String |
pFilePathString()
Decodes the null-terminated string pointed to by the
pFilePath field. |
VmaRecordSettings |
set(int flags,
java.nio.ByteBuffer pFilePath)
Initializes this struct with the specified values.
|
VmaRecordSettings |
set(VmaRecordSettings src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
static void |
validate(long struct)
Validates pointer members that should not be
NULL. |
static void |
validate(long array,
int count)
Calls
validate(long) for each struct contained in the specified struct array. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int FLAGS
public static final int PFILEPATH
public VmaRecordSettings(java.nio.ByteBuffer container)
VmaRecordSettings instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int flags()
flags field.public java.nio.ByteBuffer pFilePath()
ByteBuffer view of the null-terminated string pointed to by the pFilePath field.public java.lang.String pFilePathString()
pFilePath field.public VmaRecordSettings flags(int value)
flags field.public VmaRecordSettings pFilePath(java.nio.ByteBuffer value)
pFilePath field.public VmaRecordSettings set(int flags, java.nio.ByteBuffer pFilePath)
public VmaRecordSettings set(VmaRecordSettings src)
src - the source structpublic static VmaRecordSettings malloc()
VmaRecordSettings instance allocated with memAlloc. The instance must be explicitly freed.public static VmaRecordSettings calloc()
VmaRecordSettings instance allocated with memCalloc. The instance must be explicitly freed.public static VmaRecordSettings create()
VmaRecordSettings instance allocated with BufferUtils.public static VmaRecordSettings create(long address)
VmaRecordSettings instance for the specified memory address.@Nullable public static VmaRecordSettings createSafe(long address)
public static VmaRecordSettings.Buffer malloc(int capacity)
VmaRecordSettings.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VmaRecordSettings.Buffer calloc(int capacity)
VmaRecordSettings.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VmaRecordSettings.Buffer create(int capacity)
VmaRecordSettings.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VmaRecordSettings.Buffer create(long address, int capacity)
VmaRecordSettings.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VmaRecordSettings.Buffer createSafe(long address, int capacity)
public static VmaRecordSettings mallocStack()
VmaRecordSettings instance allocated on the thread-local MemoryStack.public static VmaRecordSettings callocStack()
VmaRecordSettings instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VmaRecordSettings mallocStack(org.lwjgl.system.MemoryStack stack)
VmaRecordSettings instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VmaRecordSettings callocStack(org.lwjgl.system.MemoryStack stack)
VmaRecordSettings instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VmaRecordSettings.Buffer mallocStack(int capacity)
VmaRecordSettings.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VmaRecordSettings.Buffer callocStack(int capacity)
VmaRecordSettings.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VmaRecordSettings.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VmaRecordSettings.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VmaRecordSettings.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VmaRecordSettings.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nflags(long struct)
flags().public static java.nio.ByteBuffer npFilePath(long struct)
pFilePath().public static java.lang.String npFilePathString(long struct)
pFilePathString().public static void nflags(long struct,
int value)
flags.public static void npFilePath(long struct,
java.nio.ByteBuffer value)
pFilePath.public static void validate(long struct)
NULL.struct - the struct to validatepublic static void validate(long array,
int count)
validate(long) for each struct contained in the specified struct array.array - the struct array to validatecount - the number of structs in arrayCopyright LWJGL. All Rights Reserved. License terms.