public class VkDebugReportCallbackCreateInfoEXT
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
For each VkDebugReportCallbackEXT that is created the VkDebugReportCallbackCreateInfoEXT::flags determine when that VkDebugReportCallbackCreateInfoEXT::pfnCallback is called. When an event happens, the implementation will do a bitwise AND of the event's VkDebugReportFlagBitsEXT flags to each VkDebugReportCallbackEXT object's flags. For each non-zero result the corresponding callback will be called. 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 may receive multiple callbacks if multiple VkDebugReportCallbackEXT objects were created. A callback will always be executed in the same thread as the originating Vulkan call.
A callback may be called from multiple threads simultaneously (if the application is making Vulkan calls from multiple threads).
sType must be STRUCTURE_TYPE_DEBUG_REPORT_CALLBACK_CREATE_INFO_EXTflags must be a valid combination of VkDebugReportFlagBitsEXT valuespfnCallback must be a valid VkDebugReportCallbackEXT valueVkDebugReportCallbackEXT, CreateDebugReportCallbackEXT
sType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.flags – a bitmask of VkDebugReportFlagBitsEXT specifying which event(s) will cause this callback to be called.pfnCallback – the application callback function to call.pUserData – user data to be passed to the callback.
struct VkDebugReportCallbackCreateInfoEXT {
VkStructureType sType;
void const * pNext;
VkDebugReportFlagsEXT flags;
PFN_vkDebugReportCallbackEXT pfnCallback;
void * pUserData;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkDebugReportCallbackCreateInfoEXT.Buffer
An array of
VkDebugReportCallbackCreateInfoEXT structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
FLAGS
The struct member offsets.
|
static int |
PFNCALLBACK
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
PUSERDATA
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkDebugReportCallbackCreateInfoEXT(java.nio.ByteBuffer container)
Creates a
VkDebugReportCallbackCreateInfoEXT instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkDebugReportCallbackCreateInfoEXT |
calloc()
Returns a new
VkDebugReportCallbackCreateInfoEXT instance allocated with memCalloc. |
static VkDebugReportCallbackCreateInfoEXT.Buffer |
calloc(int capacity)
Returns a new
VkDebugReportCallbackCreateInfoEXT.Buffer instance allocated with memCalloc. |
static VkDebugReportCallbackCreateInfoEXT |
callocStack()
Returns a new
VkDebugReportCallbackCreateInfoEXT instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkDebugReportCallbackCreateInfoEXT.Buffer |
callocStack(int capacity)
Returns a new
VkDebugReportCallbackCreateInfoEXT.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkDebugReportCallbackCreateInfoEXT.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkDebugReportCallbackCreateInfoEXT.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkDebugReportCallbackCreateInfoEXT |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkDebugReportCallbackCreateInfoEXT instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkDebugReportCallbackCreateInfoEXT |
create()
Returns a new
VkDebugReportCallbackCreateInfoEXT instance allocated with BufferUtils. |
static VkDebugReportCallbackCreateInfoEXT.Buffer |
create(int capacity)
Returns a new
VkDebugReportCallbackCreateInfoEXT.Buffer instance allocated with BufferUtils. |
static VkDebugReportCallbackCreateInfoEXT |
create(long address)
Returns a new
VkDebugReportCallbackCreateInfoEXT instance for the specified memory address. |
static VkDebugReportCallbackCreateInfoEXT.Buffer |
create(long address,
int capacity)
Create a
VkDebugReportCallbackCreateInfoEXT.Buffer instance at the specified memory. |
static VkDebugReportCallbackCreateInfoEXT |
createSafe(long address)
|
static VkDebugReportCallbackCreateInfoEXT.Buffer |
createSafe(long address,
int capacity)
|
int |
flags()
Returns the value of the
flags field. |
VkDebugReportCallbackCreateInfoEXT |
flags(int value)
Sets the specified value to the
flags field. |
static VkDebugReportCallbackCreateInfoEXT |
malloc()
Returns a new
VkDebugReportCallbackCreateInfoEXT instance allocated with memAlloc. |
static VkDebugReportCallbackCreateInfoEXT.Buffer |
malloc(int capacity)
Returns a new
VkDebugReportCallbackCreateInfoEXT.Buffer instance allocated with memAlloc. |
static VkDebugReportCallbackCreateInfoEXT |
mallocStack()
Returns a new
VkDebugReportCallbackCreateInfoEXT instance allocated on the thread-local MemoryStack. |
static VkDebugReportCallbackCreateInfoEXT.Buffer |
mallocStack(int capacity)
Returns a new
VkDebugReportCallbackCreateInfoEXT.Buffer instance allocated on the thread-local MemoryStack. |
static VkDebugReportCallbackCreateInfoEXT.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkDebugReportCallbackCreateInfoEXT.Buffer instance allocated on the specified MemoryStack. |
static VkDebugReportCallbackCreateInfoEXT |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkDebugReportCallbackCreateInfoEXT 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 VkDebugReportCallbackEXT |
npfnCallback(long struct)
Unsafe version of
pfnCallback(). |
static void |
npfnCallback(long struct,
VkDebugReportCallbackEXTI value)
Unsafe version of
pfnCallback. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static long |
npUserData(long struct)
Unsafe version of
pUserData(). |
static void |
npUserData(long struct,
long value)
Unsafe version of
pUserData. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
VkDebugReportCallbackEXT |
pfnCallback()
Returns the value of the
pfnCallback field. |
VkDebugReportCallbackCreateInfoEXT |
pfnCallback(VkDebugReportCallbackEXTI value)
Sets the specified value to the
pfnCallback field. |
long |
pNext()
Returns the value of the
pNext field. |
VkDebugReportCallbackCreateInfoEXT |
pNext(long value)
Sets the specified value to the
pNext field. |
long |
pUserData()
Returns the value of the
pUserData field. |
VkDebugReportCallbackCreateInfoEXT |
pUserData(long value)
Sets the specified value to the
pUserData field. |
VkDebugReportCallbackCreateInfoEXT |
set(int sType,
long pNext,
int flags,
VkDebugReportCallbackEXTI pfnCallback,
long pUserData)
Initializes this struct with the specified values.
|
VkDebugReportCallbackCreateInfoEXT |
set(VkDebugReportCallbackCreateInfoEXT src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkDebugReportCallbackCreateInfoEXT |
sType(int value)
Sets the specified value to the
sType field. |
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 STYPE
public static final int PNEXT
public static final int FLAGS
public static final int PFNCALLBACK
public static final int PUSERDATA
public VkDebugReportCallbackCreateInfoEXT(java.nio.ByteBuffer container)
VkDebugReportCallbackCreateInfoEXT 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 sType()
sType field.public long pNext()
pNext field.public int flags()
flags field.public VkDebugReportCallbackEXT pfnCallback()
pfnCallback field.public long pUserData()
pUserData field.public VkDebugReportCallbackCreateInfoEXT sType(int value)
sType field.public VkDebugReportCallbackCreateInfoEXT pNext(long value)
pNext field.public VkDebugReportCallbackCreateInfoEXT flags(int value)
flags field.public VkDebugReportCallbackCreateInfoEXT pfnCallback(VkDebugReportCallbackEXTI value)
pfnCallback field.public VkDebugReportCallbackCreateInfoEXT pUserData(long value)
pUserData field.public VkDebugReportCallbackCreateInfoEXT set(int sType, long pNext, int flags, VkDebugReportCallbackEXTI pfnCallback, long pUserData)
public VkDebugReportCallbackCreateInfoEXT set(VkDebugReportCallbackCreateInfoEXT src)
src - the source structpublic static VkDebugReportCallbackCreateInfoEXT malloc()
VkDebugReportCallbackCreateInfoEXT instance allocated with memAlloc. The instance must be explicitly freed.public static VkDebugReportCallbackCreateInfoEXT calloc()
VkDebugReportCallbackCreateInfoEXT instance allocated with memCalloc. The instance must be explicitly freed.public static VkDebugReportCallbackCreateInfoEXT create()
VkDebugReportCallbackCreateInfoEXT instance allocated with BufferUtils.public static VkDebugReportCallbackCreateInfoEXT create(long address)
VkDebugReportCallbackCreateInfoEXT instance for the specified memory address.@Nullable public static VkDebugReportCallbackCreateInfoEXT createSafe(long address)
public static VkDebugReportCallbackCreateInfoEXT.Buffer malloc(int capacity)
VkDebugReportCallbackCreateInfoEXT.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkDebugReportCallbackCreateInfoEXT.Buffer calloc(int capacity)
VkDebugReportCallbackCreateInfoEXT.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkDebugReportCallbackCreateInfoEXT.Buffer create(int capacity)
VkDebugReportCallbackCreateInfoEXT.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkDebugReportCallbackCreateInfoEXT.Buffer create(long address, int capacity)
VkDebugReportCallbackCreateInfoEXT.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkDebugReportCallbackCreateInfoEXT.Buffer createSafe(long address, int capacity)
public static VkDebugReportCallbackCreateInfoEXT mallocStack()
VkDebugReportCallbackCreateInfoEXT instance allocated on the thread-local MemoryStack.public static VkDebugReportCallbackCreateInfoEXT callocStack()
VkDebugReportCallbackCreateInfoEXT instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkDebugReportCallbackCreateInfoEXT mallocStack(org.lwjgl.system.MemoryStack stack)
VkDebugReportCallbackCreateInfoEXT instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkDebugReportCallbackCreateInfoEXT callocStack(org.lwjgl.system.MemoryStack stack)
VkDebugReportCallbackCreateInfoEXT instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkDebugReportCallbackCreateInfoEXT.Buffer mallocStack(int capacity)
VkDebugReportCallbackCreateInfoEXT.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkDebugReportCallbackCreateInfoEXT.Buffer callocStack(int capacity)
VkDebugReportCallbackCreateInfoEXT.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkDebugReportCallbackCreateInfoEXT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkDebugReportCallbackCreateInfoEXT.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkDebugReportCallbackCreateInfoEXT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkDebugReportCallbackCreateInfoEXT.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 nsType(long struct)
sType().public static long npNext(long struct)
pNext().public static int nflags(long struct)
flags().public static VkDebugReportCallbackEXT npfnCallback(long struct)
pfnCallback().public static long npUserData(long struct)
pUserData().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nflags(long struct,
int value)
flags.public static void npfnCallback(long struct,
VkDebugReportCallbackEXTI value)
pfnCallback.public static void npUserData(long struct,
long value)
pUserData.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.