Class VkDebugUtilsMessengerCreateInfoEXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkDebugUtilsMessengerCreateInfoEXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkDebugUtilsMessengerCreateInfoEXT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying parameters of a newly created debug messenger.Description
For each
VkDebugUtilsMessengerEXTthat is created theVkDebugUtilsMessengerCreateInfoEXT::messageSeverityandVkDebugUtilsMessengerCreateInfoEXT::messageTypedetermine when thatVkDebugUtilsMessengerCreateInfoEXT::pfnUserCallbackis called. The process to determine if the user'spfnUserCallbackis triggered when an event occurs is as follows:- The implementation will perform a bitwise AND of the event’s
VkDebugUtilsMessageSeverityFlagBitsEXTwith themessageSeverityprovided during creation of theVkDebugUtilsMessengerEXTobject.- If the value is 0, the message is skipped.
- The implementation will perform bitwise AND of the event’s
VkDebugUtilsMessageTypeFlagBitsEXTwith themessageTypeprovided during the creation of theVkDebugUtilsMessengerEXTobject.- If the value is 0, the message is skipped.
- The callback will trigger a debug message for the current event
The callback will come directly from the component that detected the event, unless some other layer intercepts the calls for its own purposes (filter them in a different way, log to a system error log, etc.).
An application can receive multiple callbacks if multiple
VkDebugUtilsMessengerEXTobjects are created. A callback will always be executed in the same thread as the originating Vulkan call.A callback can be called from multiple threads simultaneously (if the application is making Vulkan calls from multiple threads).
Valid Usage
pfnUserCallbackmust be a validVkDebugUtilsMessengerCallbackEXT
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_DEBUG_UTILS_MESSENGER_CREATE_INFO_EXTflagsmust be 0messageSeveritymust be a valid combination ofVkDebugUtilsMessageSeverityFlagBitsEXTvaluesmessageSeveritymust not be 0messageTypemust be a valid combination ofVkDebugUtilsMessageTypeFlagBitsEXTvaluesmessageTypemust not be 0pfnUserCallbackmust be a validVkDebugUtilsMessengerCallbackEXTvalue
See Also
VkDebugUtilsMessengerCallbackEXT,CreateDebugUtilsMessengerEXTMember documentation
sType– the type of this structure.pNext–NULLor a pointer to an extension-specific structure.flags– 0 and reserved for future use.messageSeverity– a bitmask ofVkDebugUtilsMessageSeverityFlagBitsEXTspecifying which severity of event(s) will cause this callback to be called.messageType– a bitmask ofVkDebugUtilsMessageTypeFlagBitsEXTspecifying which type of event(s) will cause this callback to be called.pfnUserCallback– the application callback function to call.pUserData– user data to be passed to the callback.
Layout
struct VkDebugUtilsMessengerCreateInfoEXT { VkStructureType sType; void const * pNext; VkDebugUtilsMessengerCreateFlagsEXT flags; VkDebugUtilsMessageSeverityFlagsEXT messageSeverity; VkDebugUtilsMessageTypeFlagsEXT messageType;PFN_vkDebugUtilsMessengerCallbackEXTpfnUserCallback; void * pUserData; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkDebugUtilsMessengerCreateInfoEXT.BufferAn array ofVkDebugUtilsMessengerCreateInfoEXTstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intFLAGS
MESSAGESEVERITY
MESSAGETYPE
PFNUSERCALLBACK
PNEXT
PUSERDATAThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkDebugUtilsMessengerCreateInfoEXT(java.nio.ByteBuffer container)Creates aVkDebugUtilsMessengerCreateInfoEXTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkDebugUtilsMessengerCreateInfoEXTcalloc()Returns a newVkDebugUtilsMessengerCreateInfoEXTinstance allocated withmemCalloc.static VkDebugUtilsMessengerCreateInfoEXT.Buffercalloc(int capacity)Returns a newVkDebugUtilsMessengerCreateInfoEXT.Bufferinstance allocated withmemCalloc.static VkDebugUtilsMessengerCreateInfoEXTcallocStack()Returns a newVkDebugUtilsMessengerCreateInfoEXTinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkDebugUtilsMessengerCreateInfoEXT.BuffercallocStack(int capacity)Returns a newVkDebugUtilsMessengerCreateInfoEXT.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkDebugUtilsMessengerCreateInfoEXT.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDebugUtilsMessengerCreateInfoEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDebugUtilsMessengerCreateInfoEXTcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkDebugUtilsMessengerCreateInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDebugUtilsMessengerCreateInfoEXTcreate()Returns a newVkDebugUtilsMessengerCreateInfoEXTinstance allocated withBufferUtils.static VkDebugUtilsMessengerCreateInfoEXT.Buffercreate(int capacity)Returns a newVkDebugUtilsMessengerCreateInfoEXT.Bufferinstance allocated withBufferUtils.static VkDebugUtilsMessengerCreateInfoEXTcreate(long address)Returns a newVkDebugUtilsMessengerCreateInfoEXTinstance for the specified memory address.static VkDebugUtilsMessengerCreateInfoEXT.Buffercreate(long address, int capacity)Create aVkDebugUtilsMessengerCreateInfoEXT.Bufferinstance at the specified memory.static VkDebugUtilsMessengerCreateInfoEXTcreateSafe(long address)static VkDebugUtilsMessengerCreateInfoEXT.BuffercreateSafe(long address, int capacity)intflags()Returns the value of theflagsfield.VkDebugUtilsMessengerCreateInfoEXTflags(int value)Sets the specified value to theflagsfield.static VkDebugUtilsMessengerCreateInfoEXTmalloc()Returns a newVkDebugUtilsMessengerCreateInfoEXTinstance allocated withmemAlloc.static VkDebugUtilsMessengerCreateInfoEXT.Buffermalloc(int capacity)Returns a newVkDebugUtilsMessengerCreateInfoEXT.Bufferinstance allocated withmemAlloc.static VkDebugUtilsMessengerCreateInfoEXTmallocStack()Returns a newVkDebugUtilsMessengerCreateInfoEXTinstance allocated on the thread-localMemoryStack.static VkDebugUtilsMessengerCreateInfoEXT.BuffermallocStack(int capacity)Returns a newVkDebugUtilsMessengerCreateInfoEXT.Bufferinstance allocated on the thread-localMemoryStack.static VkDebugUtilsMessengerCreateInfoEXT.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDebugUtilsMessengerCreateInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkDebugUtilsMessengerCreateInfoEXTmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkDebugUtilsMessengerCreateInfoEXTinstance allocated on the specifiedMemoryStack.intmessageSeverity()Returns the value of themessageSeverityfield.VkDebugUtilsMessengerCreateInfoEXTmessageSeverity(int value)Sets the specified value to themessageSeverityfield.intmessageType()Returns the value of themessageTypefield.VkDebugUtilsMessengerCreateInfoEXTmessageType(int value)Sets the specified value to themessageTypefield.static intnflags(long struct)Unsafe version offlags().static voidnflags(long struct, int value)Unsafe version offlags.static intnmessageSeverity(long struct)Unsafe version ofmessageSeverity().static voidnmessageSeverity(long struct, int value)Unsafe version ofmessageSeverity.static intnmessageType(long struct)Unsafe version ofmessageType().static voidnmessageType(long struct, int value)Unsafe version ofmessageType.static VkDebugUtilsMessengerCallbackEXTnpfnUserCallback(long struct)Unsafe version ofpfnUserCallback().static voidnpfnUserCallback(long struct, VkDebugUtilsMessengerCallbackEXTI 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.VkDebugUtilsMessengerCallbackEXTpfnUserCallback()Returns the value of thepfnUserCallbackfield.VkDebugUtilsMessengerCreateInfoEXTpfnUserCallback(VkDebugUtilsMessengerCallbackEXTI value)Sets the specified value to thepfnUserCallbackfield.longpNext()Returns the value of thepNextfield.VkDebugUtilsMessengerCreateInfoEXTpNext(long value)Sets the specified value to thepNextfield.longpUserData()Returns the value of thepUserDatafield.VkDebugUtilsMessengerCreateInfoEXTpUserData(long value)Sets the specified value to thepUserDatafield.VkDebugUtilsMessengerCreateInfoEXTset(int sType, long pNext, int flags, int messageSeverity, int messageType, VkDebugUtilsMessengerCallbackEXTI pfnUserCallback, long pUserData)Initializes this struct with the specified values.VkDebugUtilsMessengerCreateInfoEXTset(VkDebugUtilsMessengerCreateInfoEXT src)Copies the specified struct data to this struct.intsizeof()intsType()Returns the value of thesTypefield.VkDebugUtilsMessengerCreateInfoEXTsType(int value)Sets the specified value to thesTypefield.static voidvalidate(long struct)Validates pointer members that should not beNULL.static voidvalidate(long array, int count)Callsvalidate(long)for each struct contained in the specified struct array.
-
-
-
Constructor Detail
-
VkDebugUtilsMessengerCreateInfoEXT
public VkDebugUtilsMessengerCreateInfoEXT(java.nio.ByteBuffer container)
Creates aVkDebugUtilsMessengerCreateInfoEXTinstance 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()
Returns the value of thesTypefield.
-
pNext
public long pNext()
Returns the value of thepNextfield.
-
flags
public int flags()
Returns the value of theflagsfield.
-
messageSeverity
public int messageSeverity()
Returns the value of themessageSeverityfield.
-
messageType
public int messageType()
Returns the value of themessageTypefield.
-
pfnUserCallback
public VkDebugUtilsMessengerCallbackEXT pfnUserCallback()
Returns the value of thepfnUserCallbackfield.
-
pUserData
public long pUserData()
Returns the value of thepUserDatafield.
-
sType
public VkDebugUtilsMessengerCreateInfoEXT sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkDebugUtilsMessengerCreateInfoEXT pNext(long value)
Sets the specified value to thepNextfield.
-
flags
public VkDebugUtilsMessengerCreateInfoEXT flags(int value)
Sets the specified value to theflagsfield.
-
messageSeverity
public VkDebugUtilsMessengerCreateInfoEXT messageSeverity(int value)
Sets the specified value to themessageSeverityfield.
-
messageType
public VkDebugUtilsMessengerCreateInfoEXT messageType(int value)
Sets the specified value to themessageTypefield.
-
pfnUserCallback
public VkDebugUtilsMessengerCreateInfoEXT pfnUserCallback(VkDebugUtilsMessengerCallbackEXTI value)
Sets the specified value to thepfnUserCallbackfield.
-
pUserData
public VkDebugUtilsMessengerCreateInfoEXT pUserData(long value)
Sets the specified value to thepUserDatafield.
-
set
public VkDebugUtilsMessengerCreateInfoEXT set(int sType, long pNext, int flags, int messageSeverity, int messageType, VkDebugUtilsMessengerCallbackEXTI pfnUserCallback, long pUserData)
Initializes this struct with the specified values.
-
set
public VkDebugUtilsMessengerCreateInfoEXT set(VkDebugUtilsMessengerCreateInfoEXT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkDebugUtilsMessengerCreateInfoEXT malloc()
Returns a newVkDebugUtilsMessengerCreateInfoEXTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkDebugUtilsMessengerCreateInfoEXT calloc()
Returns a newVkDebugUtilsMessengerCreateInfoEXTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkDebugUtilsMessengerCreateInfoEXT create()
Returns a newVkDebugUtilsMessengerCreateInfoEXTinstance allocated withBufferUtils.
-
create
public static VkDebugUtilsMessengerCreateInfoEXT create(long address)
Returns a newVkDebugUtilsMessengerCreateInfoEXTinstance for the specified memory address.
-
createSafe
@Nullable public static VkDebugUtilsMessengerCreateInfoEXT createSafe(long address)
-
malloc
public static VkDebugUtilsMessengerCreateInfoEXT.Buffer malloc(int capacity)
Returns a newVkDebugUtilsMessengerCreateInfoEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkDebugUtilsMessengerCreateInfoEXT.Buffer calloc(int capacity)
Returns a newVkDebugUtilsMessengerCreateInfoEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkDebugUtilsMessengerCreateInfoEXT.Buffer create(int capacity)
Returns a newVkDebugUtilsMessengerCreateInfoEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkDebugUtilsMessengerCreateInfoEXT.Buffer create(long address, int capacity)
Create aVkDebugUtilsMessengerCreateInfoEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkDebugUtilsMessengerCreateInfoEXT.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkDebugUtilsMessengerCreateInfoEXT mallocStack()
Returns a newVkDebugUtilsMessengerCreateInfoEXTinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkDebugUtilsMessengerCreateInfoEXT callocStack()
Returns a newVkDebugUtilsMessengerCreateInfoEXTinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkDebugUtilsMessengerCreateInfoEXT mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDebugUtilsMessengerCreateInfoEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkDebugUtilsMessengerCreateInfoEXT callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDebugUtilsMessengerCreateInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkDebugUtilsMessengerCreateInfoEXT.Buffer mallocStack(int capacity)
Returns a newVkDebugUtilsMessengerCreateInfoEXT.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkDebugUtilsMessengerCreateInfoEXT.Buffer callocStack(int capacity)
Returns a newVkDebugUtilsMessengerCreateInfoEXT.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkDebugUtilsMessengerCreateInfoEXT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDebugUtilsMessengerCreateInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkDebugUtilsMessengerCreateInfoEXT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDebugUtilsMessengerCreateInfoEXT.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().
-
nmessageSeverity
public static int nmessageSeverity(long struct)
Unsafe version ofmessageSeverity().
-
nmessageType
public static int nmessageType(long struct)
Unsafe version ofmessageType().
-
npfnUserCallback
public static VkDebugUtilsMessengerCallbackEXT 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.
-
nmessageSeverity
public static void nmessageSeverity(long struct, int value)Unsafe version ofmessageSeverity.
-
nmessageType
public static void nmessageType(long struct, int value)Unsafe version ofmessageType.
-
npfnUserCallback
public static void npfnUserCallback(long struct, VkDebugUtilsMessengerCallbackEXTI 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
-
validate
public static void validate(long array, int count)Callsvalidate(long)for each struct contained in the specified struct array.- Parameters:
array- the struct array to validatecount- the number of structs inarray
-
-