memoryObjectId is used to avoid double-counting on the same memory object.
If an internally-allocated device memory object or a VkDeviceMemory cannot be exported, memoryObjectId must be unique in the VkDevice.
If an internally-allocated device memory object or a VkDeviceMemory supports being exported, memoryObjectId must be unique system wide.
If an internal device memory object or a VkDeviceMemory is backed by an imported external memory object, memoryObjectId must be unique system wide.
This structure should only be considered valid during the lifetime of the triggered callback.
For DEVICE_MEMORY_REPORT_EVENT_TYPE_ALLOCATE_EXT and DEVICE_MEMORY_REPORT_EVENT_TYPE_IMPORT_EXT events, objectHandle usually will not yet exist when the application or tool receives the callback. objectHandle will only exist when the create or allocate call that triggered the event returns, and if the allocation or import ends up failing objectHandle will not ever exist.
sType must be STRUCTURE_TYPE_DEVICE_MEMORY_REPORT_CALLBACK_DATA_EXTpNext must be NULL
struct VkDeviceMemoryReportCallbackDataEXT {
VkStructureType sType;
void * pNext;
VkDeviceMemoryReportFlagsEXT flags;
VkDeviceMemoryReportEventTypeEXT type;
uint64_t memoryObjectId;
VkDeviceSize size;
VkObjectType objectType;
uint64_t objectHandle;
uint32_t heapIndex;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | VkDeviceMemoryReportCallbackDataEXT.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | FLAGS
The struct member offsets. |
| public static final int | HEAPINDEX
The struct member offsets. |
| public static final int | MEMORYOBJECTID
The struct member offsets. |
| public static final int | OBJECTHANDLE
The struct member offsets. |
| public static final int | OBJECTTYPE
The struct member offsets. |
| public static final int | PNEXT
The struct member offsets. |
| public static final int | SIZE
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | STYPE
The struct member offsets. |
| public static final int | TYPE
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | VkDeviceMemoryReportCallbackDataEXT(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static VkDeviceMemoryReportCallbackDataEXT | |
| public static VkDeviceMemoryReportCallbackDataEXT. | calloc(int
the buffer capacity capacity)Returns a new |
| public static VkDeviceMemoryReportCallbackDataEXT | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkDeviceMemoryReportCallbackDataEXT. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| protected VkDeviceMemoryReportCallbackDataEXT | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static VkDeviceMemoryReportCallbackDataEXT | |
| public static VkDeviceMemoryReportCallbackDataEXT | create(long address)
Returns a new |
| public static VkDeviceMemoryReportCallbackDataEXT. | create(int
the buffer capacity capacity)Returns a new |
| public static VkDeviceMemoryReportCallbackDataEXT. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static VkDeviceMemoryReportCallbackDataEXT | |
| public static VkDeviceMemoryReportCallbackDataEXT. | |
| public int | |
| public int | |
| public static VkDeviceMemoryReportCallbackDataEXT | |
| public static VkDeviceMemoryReportCallbackDataEXT. | malloc(int
the buffer capacity capacity)Returns a new |
| public static VkDeviceMemoryReportCallbackDataEXT | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkDeviceMemoryReportCallbackDataEXT. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public long | |
| public static int | |
| public static int | |
| public static long | |
| public static long | |
| public static int | |
| public static long | |
| public static void | |
| public static long | |
| public static int | |
| public static void | |
| public static int | |
| public long | |
| public int | objectType()
a |
| public long | |
| public VkDeviceMemoryReportCallbackDataEXT | |
| public VkDeviceMemoryReportCallbackDataEXT | |
| public VkDeviceMemoryReportCallbackDataEXT | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public long | |
| public int | |
| public int | |
| public VkDeviceMemoryReportCallbackDataEXT | |
| public VkDeviceMemoryReportCallbackDataEXT | sType$Default()
Sets the |
| public int | type()
a |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| FLAGS | back to summary |
|---|---|
| public static final int FLAGS The struct member offsets. | |
| HEAPINDEX | back to summary |
|---|---|
| public static final int HEAPINDEX The struct member offsets. | |
| MEMORYOBJECTID | back to summary |
|---|---|
| public static final int MEMORYOBJECTID The struct member offsets. | |
| OBJECTHANDLE | back to summary |
|---|---|
| public static final int OBJECTHANDLE The struct member offsets. | |
| OBJECTTYPE | back to summary |
|---|---|
| public static final int OBJECTTYPE The struct member offsets. | |
| PNEXT | back to summary |
|---|---|
| public static final int PNEXT The struct member offsets. | |
| SIZE | back to summary |
|---|---|
| public static final int SIZE The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| STYPE | back to summary |
|---|---|
| public static final int STYPE The struct member offsets. | |
| TYPE | back to summary |
|---|---|
| public static final int TYPE The struct member offsets. | |
| VkDeviceMemoryReportCallbackDataEXT | back to summary |
|---|---|
| protected VkDeviceMemoryReportCallbackDataEXT(long address, ByteBuffer container) | |
| VkDeviceMemoryReportCallbackDataEXT | back to summary |
|---|---|
| public VkDeviceMemoryReportCallbackDataEXT(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static VkDeviceMemoryReportCallbackDataEXT calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static VkDeviceMemoryReportCallbackDataEXT. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VkDeviceMemoryReportCallbackDataEXT calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VkDeviceMemoryReportCallbackDataEXT. Returns a new
| |
| create | back to summary |
|---|---|
| protected VkDeviceMemoryReportCallbackDataEXT create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static VkDeviceMemoryReportCallbackDataEXT create() Returns a new | |
| create | back to summary |
|---|---|
| public static VkDeviceMemoryReportCallbackDataEXT create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static VkDeviceMemoryReportCallbackDataEXT. Returns a new
| |
| create | back to summary |
|---|---|
| public static VkDeviceMemoryReportCallbackDataEXT. Create a
| |
| createSafe | back to summary |
|---|---|
| public static VkDeviceMemoryReportCallbackDataEXT createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static VkDeviceMemoryReportCallbackDataEXT. Like
| |
| flags | back to summary |
|---|---|
| public int flags() 0 and reserved for future use.
| |
| heapIndex | back to summary |
|---|---|
| public int heapIndex() describes which memory heap this device memory allocation is made from. If
| |
| malloc | back to summary |
|---|---|
| public static VkDeviceMemoryReportCallbackDataEXT malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static VkDeviceMemoryReportCallbackDataEXT. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VkDeviceMemoryReportCallbackDataEXT malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VkDeviceMemoryReportCallbackDataEXT. Returns a new
| |
| memoryObjectId | back to summary |
|---|---|
| public long memoryObjectId() the unique id for the underlying memory object as described below.
| |
| nflags | back to summary |
|---|---|
| public static int nflags(long struct) Unsafe version of | |
| nheapIndex | back to summary |
|---|---|
| public static int nheapIndex(long struct) Unsafe version of | |
| nmemoryObjectId | back to summary |
|---|---|
| public static long nmemoryObjectId(long struct) Unsafe version of | |
| nobjectHandle | back to summary |
|---|---|
| public static long nobjectHandle(long struct) Unsafe version of | |
| nobjectType | back to summary |
|---|---|
| public static int nobjectType(long struct) Unsafe version of | |
| npNext | back to summary |
|---|---|
| public static long npNext(long struct) Unsafe version of | |
| npNext | back to summary |
|---|---|
| public static void npNext(long struct, long value) Unsafe version of | |
| nsize | back to summary |
|---|---|
| public static long nsize(long struct) Unsafe version of | |
| nsType | back to summary |
|---|---|
| public static int nsType(long struct) Unsafe version of | |
| nsType | back to summary |
|---|---|
| public static void nsType(long struct, int value) Unsafe version of | |
| ntype | back to summary |
|---|---|
| public static int ntype(long struct) Unsafe version of | |
| objectHandle | back to summary |
|---|---|
| public long objectHandle() the object this device memory report event is attributed to. If
| |
| objectType | back to summary |
|---|---|
| public int objectType() a
| |
| pNext | back to summary |
|---|---|
| public long pNext()
| |
| pNext | back to summary |
|---|---|
| public VkDeviceMemoryReportCallbackDataEXT pNext(long value) Sets the specified value to the | |
| set | back to summary |
|---|---|
| public VkDeviceMemoryReportCallbackDataEXT set(int sType, long pNext) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public VkDeviceMemoryReportCallbackDataEXT set(VkDeviceMemoryReportCallbackDataEXT src) Copies the specified struct data to this struct.
| |
| size | back to summary |
|---|---|
| public long size() the size of the memory object in bytes. If
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| sType | back to summary |
|---|---|
| public int sType() a
| |
| sType | back to summary |
|---|---|
| public VkDeviceMemoryReportCallbackDataEXT sType(int value) Sets the specified value to the | |
| sType$Default | back to summary |
|---|---|
| public VkDeviceMemoryReportCallbackDataEXT sType$Default() Sets the | |
| type | back to summary |
|---|---|
| public int type() a
| |
VkDeviceMemoryReportCallbackDataEXT structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final VkDeviceMemoryReportCallbackDataEXT |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| protected VkDeviceMemoryReportCallbackDataEXT | |
| public int | |
| public long | |
| public long | |
| public int | |
| public long | |
| public VkDeviceMemoryReportCallbackDataEXT. | |
| protected VkDeviceMemoryReportCallbackDataEXT. | |
| public long | |
| public int | |
| public VkDeviceMemoryReportCallbackDataEXT. | |
| public VkDeviceMemoryReportCallbackDataEXT. | sType$Default()
Sets the |
| public int |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final VkDeviceMemoryReportCallbackDataEXT ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
by The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| flags | back to summary |
|---|---|
public int flags()
| |
| getElementFactory | back to summary |
|---|---|
| protected VkDeviceMemoryReportCallbackDataEXT getElementFactory() Implements abstract org.
| |
| heapIndex | back to summary |
|---|---|
public int heapIndex()
| |
| memoryObjectId | back to summary |
|---|---|
public long memoryObjectId()
| |
| objectHandle | back to summary |
|---|---|
public long objectHandle()
| |
| objectType | back to summary |
|---|---|
public int objectType()
| |
| pNext | back to summary |
|---|---|
public long pNext()
| |
| pNext | back to summary |
|---|---|
| public VkDeviceMemoryReportCallbackDataEXT. Sets the specified value to the | |
| self | back to summary |
|---|---|
| protected VkDeviceMemoryReportCallbackDataEXT. Implements abstract org.
| |
| size | back to summary |
|---|---|
public long size()
| |
| sType | back to summary |
|---|---|
public int sType()
| |
| sType | back to summary |
|---|---|
| public VkDeviceMemoryReportCallbackDataEXT. Sets the specified value to the | |
| sType$Default | back to summary |
|---|---|
| public VkDeviceMemoryReportCallbackDataEXT. Sets the | |
| type | back to summary |
|---|---|
public int type()
| |