Package org.lwjgl.vulkan
Class VkDeviceDeviceMemoryReportCreateInfoEXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkDeviceDeviceMemoryReportCreateInfoEXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkDeviceDeviceMemoryReportCreateInfoEXT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceRegister device memory report callbacks for a Vulkan device.Description
The callback may be called from multiple threads simultaneously.
The callback must be called only once by the implementation when a
VkDeviceMemoryReportEventTypeEXTevent occurs.Note
The callback could be called from a background thread other than the thread calling the Vulkan commands.
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_DEVICE_DEVICE_MEMORY_REPORT_CREATE_INFO_EXTflagsmust be 0pfnUserCallbackmust be a validVkDeviceMemoryReportCallbackEXTvaluepUserDatamust be a pointer value
See Also
VkDeviceMemoryReportCallbackEXTLayout
struct VkDeviceDeviceMemoryReportCreateInfoEXT { VkStructureTypesType(); void const *pNext(); VkDeviceMemoryReportFlagsEXTflags();PFN_vkDeviceMemoryReportCallbackEXTpfnUserCallback(); void *pUserData(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkDeviceDeviceMemoryReportCreateInfoEXT.BufferAn array ofVkDeviceDeviceMemoryReportCreateInfoEXTstructs.
-
Constructor Summary
Constructors Constructor Description VkDeviceDeviceMemoryReportCreateInfoEXT(java.nio.ByteBuffer container)Creates aVkDeviceDeviceMemoryReportCreateInfoEXTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkDeviceDeviceMemoryReportCreateInfoEXTcalloc()Returns a newVkDeviceDeviceMemoryReportCreateInfoEXTinstance allocated withmemCalloc.static VkDeviceDeviceMemoryReportCreateInfoEXT.Buffercalloc(int capacity)Returns a newVkDeviceDeviceMemoryReportCreateInfoEXT.Bufferinstance allocated withmemCalloc.static VkDeviceDeviceMemoryReportCreateInfoEXT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDeviceDeviceMemoryReportCreateInfoEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDeviceDeviceMemoryReportCreateInfoEXTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkDeviceDeviceMemoryReportCreateInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDeviceDeviceMemoryReportCreateInfoEXTcreate()Returns a newVkDeviceDeviceMemoryReportCreateInfoEXTinstance allocated withBufferUtils.static VkDeviceDeviceMemoryReportCreateInfoEXT.Buffercreate(int capacity)Returns a newVkDeviceDeviceMemoryReportCreateInfoEXT.Bufferinstance allocated withBufferUtils.static VkDeviceDeviceMemoryReportCreateInfoEXTcreate(long address)Returns a newVkDeviceDeviceMemoryReportCreateInfoEXTinstance for the specified memory address.static VkDeviceDeviceMemoryReportCreateInfoEXT.Buffercreate(long address, int capacity)Create aVkDeviceDeviceMemoryReportCreateInfoEXT.Bufferinstance at the specified memory.static VkDeviceDeviceMemoryReportCreateInfoEXTcreateSafe(long address)static VkDeviceDeviceMemoryReportCreateInfoEXT.BuffercreateSafe(long address, int capacity)intflags()0 and reserved for future use.VkDeviceDeviceMemoryReportCreateInfoEXTflags(int value)Sets the specified value to theflags()field.static VkDeviceDeviceMemoryReportCreateInfoEXTmalloc()Returns a newVkDeviceDeviceMemoryReportCreateInfoEXTinstance allocated withmemAlloc.static VkDeviceDeviceMemoryReportCreateInfoEXT.Buffermalloc(int capacity)Returns a newVkDeviceDeviceMemoryReportCreateInfoEXT.Bufferinstance allocated withmemAlloc.static VkDeviceDeviceMemoryReportCreateInfoEXT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDeviceDeviceMemoryReportCreateInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkDeviceDeviceMemoryReportCreateInfoEXTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkDeviceDeviceMemoryReportCreateInfoEXTinstance allocated on the specifiedMemoryStack.static intnflags(long struct)Unsafe version offlags().static voidnflags(long struct, int value)Unsafe version offlags.static VkDeviceMemoryReportCallbackEXTnpfnUserCallback(long struct)Unsafe version ofpfnUserCallback().static voidnpfnUserCallback(long struct, VkDeviceMemoryReportCallbackEXTI value)Unsafe version ofpfnUserCallback.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static longnpUserData(long struct)Unsafe version ofpUserData().static voidnpUserData(long struct, long value)Unsafe version ofpUserData.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.VkDeviceMemoryReportCallbackEXTpfnUserCallback()the application callback function to call.VkDeviceDeviceMemoryReportCreateInfoEXTpfnUserCallback(VkDeviceMemoryReportCallbackEXTI value)Sets the specified value to thepfnUserCallback()field.longpNext()NULLor a pointer to a structure extending this structure.VkDeviceDeviceMemoryReportCreateInfoEXTpNext(long value)Sets the specified value to thepNext()field.longpUserData()user data to be passed to the callback.VkDeviceDeviceMemoryReportCreateInfoEXTpUserData(long value)Sets the specified value to thepUserData()field.VkDeviceDeviceMemoryReportCreateInfoEXTset(int sType, long pNext, int flags, VkDeviceMemoryReportCallbackEXTI pfnUserCallback, long pUserData)Initializes this struct with the specified values.VkDeviceDeviceMemoryReportCreateInfoEXTset(VkDeviceDeviceMemoryReportCreateInfoEXT src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkDeviceDeviceMemoryReportCreateInfoEXTsType(int value)Sets the specified value to thesType()field.VkDeviceDeviceMemoryReportCreateInfoEXTsType$Default()Sets theSTRUCTURE_TYPE_DEVICE_DEVICE_MEMORY_REPORT_CREATE_INFO_EXTvalue to thesType()field.static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
VkDeviceDeviceMemoryReportCreateInfoEXT
public VkDeviceDeviceMemoryReportCreateInfoEXT(java.nio.ByteBuffer container)
Creates aVkDeviceDeviceMemoryReportCreateInfoEXTinstance 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
-
sType
public int sType()
the type of this structure.
-
pNext
public long pNext()
NULLor a pointer to a structure extending this structure.
-
flags
public int flags()
0 and reserved for future use.
-
pfnUserCallback
public VkDeviceMemoryReportCallbackEXT pfnUserCallback()
the application callback function to call.
-
pUserData
public long pUserData()
user data to be passed to the callback.
-
sType
public VkDeviceDeviceMemoryReportCreateInfoEXT sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkDeviceDeviceMemoryReportCreateInfoEXT sType$Default()
Sets theSTRUCTURE_TYPE_DEVICE_DEVICE_MEMORY_REPORT_CREATE_INFO_EXTvalue to thesType()field.
-
pNext
public VkDeviceDeviceMemoryReportCreateInfoEXT pNext(long value)
Sets the specified value to thepNext()field.
-
flags
public VkDeviceDeviceMemoryReportCreateInfoEXT flags(int value)
Sets the specified value to theflags()field.
-
pfnUserCallback
public VkDeviceDeviceMemoryReportCreateInfoEXT pfnUserCallback(VkDeviceMemoryReportCallbackEXTI value)
Sets the specified value to thepfnUserCallback()field.
-
pUserData
public VkDeviceDeviceMemoryReportCreateInfoEXT pUserData(long value)
Sets the specified value to thepUserData()field.
-
set
public VkDeviceDeviceMemoryReportCreateInfoEXT set(int sType, long pNext, int flags, VkDeviceMemoryReportCallbackEXTI pfnUserCallback, long pUserData)
Initializes this struct with the specified values.
-
set
public VkDeviceDeviceMemoryReportCreateInfoEXT set(VkDeviceDeviceMemoryReportCreateInfoEXT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkDeviceDeviceMemoryReportCreateInfoEXT malloc()
Returns a newVkDeviceDeviceMemoryReportCreateInfoEXTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkDeviceDeviceMemoryReportCreateInfoEXT calloc()
Returns a newVkDeviceDeviceMemoryReportCreateInfoEXTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkDeviceDeviceMemoryReportCreateInfoEXT create()
Returns a newVkDeviceDeviceMemoryReportCreateInfoEXTinstance allocated withBufferUtils.
-
create
public static VkDeviceDeviceMemoryReportCreateInfoEXT create(long address)
Returns a newVkDeviceDeviceMemoryReportCreateInfoEXTinstance for the specified memory address.
-
createSafe
@Nullable public static VkDeviceDeviceMemoryReportCreateInfoEXT createSafe(long address)
-
malloc
public static VkDeviceDeviceMemoryReportCreateInfoEXT.Buffer malloc(int capacity)
Returns a newVkDeviceDeviceMemoryReportCreateInfoEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkDeviceDeviceMemoryReportCreateInfoEXT.Buffer calloc(int capacity)
Returns a newVkDeviceDeviceMemoryReportCreateInfoEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkDeviceDeviceMemoryReportCreateInfoEXT.Buffer create(int capacity)
Returns a newVkDeviceDeviceMemoryReportCreateInfoEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkDeviceDeviceMemoryReportCreateInfoEXT.Buffer create(long address, int capacity)
Create aVkDeviceDeviceMemoryReportCreateInfoEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkDeviceDeviceMemoryReportCreateInfoEXT.Buffer createSafe(long address, int capacity)
-
malloc
public static VkDeviceDeviceMemoryReportCreateInfoEXT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceDeviceMemoryReportCreateInfoEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkDeviceDeviceMemoryReportCreateInfoEXT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceDeviceMemoryReportCreateInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkDeviceDeviceMemoryReportCreateInfoEXT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceDeviceMemoryReportCreateInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkDeviceDeviceMemoryReportCreateInfoEXT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceDeviceMemoryReportCreateInfoEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nsType
public static int nsType(long struct)
Unsafe version ofsType().
-
npNext
public static long npNext(long struct)
Unsafe version ofpNext().
-
nflags
public static int nflags(long struct)
Unsafe version offlags().
-
npfnUserCallback
public static VkDeviceMemoryReportCallbackEXT npfnUserCallback(long struct)
Unsafe version ofpfnUserCallback().
-
npUserData
public static long npUserData(long struct)
Unsafe version ofpUserData().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nflags
public static void nflags(long struct, int value)Unsafe version offlags.
-
npfnUserCallback
public static void npfnUserCallback(long struct, VkDeviceMemoryReportCallbackEXTI value)Unsafe version ofpfnUserCallback.
-
npUserData
public static void npUserData(long struct, long value)Unsafe version ofpUserData.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-