Class VkDebugReportCallbackCreateInfoEXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkDebugReportCallbackCreateInfoEXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class VkDebugReportCallbackCreateInfoEXT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Structure specifying parameters of a newly created debug report callback.Description
For each
VkDebugReportCallbackEXT
that is created theVkDebugReportCallbackCreateInfoEXT
::flags
determine when thatVkDebugReportCallbackCreateInfoEXT
::pfnCallback
is called. When an event happens, the implementation will do a bitwise AND of the event'sVkDebugReportFlagBitsEXT
flags to eachVkDebugReportCallbackEXT
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).
Valid Usage (Implicit)
sType
must beSTRUCTURE_TYPE_DEBUG_REPORT_CALLBACK_CREATE_INFO_EXT
flags
must be a valid combination ofVkDebugReportFlagBitsEXT
valuespfnCallback
must be a validVkDebugReportCallbackEXT
value
See Also
VkDebugReportCallbackEXT
,CreateDebugReportCallbackEXT
Member documentation
sType
– the type of this structure.pNext
–NULL
or a pointer to an extension-specific structure.flags
– a bitmask ofVkDebugReportFlagBitsEXT
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.
Layout
struct VkDebugReportCallbackCreateInfoEXT { VkStructureType sType; void const * pNext; VkDebugReportFlagsEXT flags;
PFN_vkDebugReportCallbackEXT
pfnCallback; void * pUserData; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VkDebugReportCallbackCreateInfoEXT.Buffer
An array ofVkDebugReportCallbackCreateInfoEXT
structs.
-
Constructor Summary
Constructors Constructor Description VkDebugReportCallbackCreateInfoEXT(java.nio.ByteBuffer container)
Creates aVkDebugReportCallbackCreateInfoEXT
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkDebugReportCallbackCreateInfoEXT
calloc()
Returns a newVkDebugReportCallbackCreateInfoEXT
instance allocated withmemCalloc
.static VkDebugReportCallbackCreateInfoEXT.Buffer
calloc(int capacity)
Returns a newVkDebugReportCallbackCreateInfoEXT.Buffer
instance allocated withmemCalloc
.static VkDebugReportCallbackCreateInfoEXT
callocStack()
Returns a newVkDebugReportCallbackCreateInfoEXT
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkDebugReportCallbackCreateInfoEXT.Buffer
callocStack(int capacity)
Returns a newVkDebugReportCallbackCreateInfoEXT.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkDebugReportCallbackCreateInfoEXT.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDebugReportCallbackCreateInfoEXT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkDebugReportCallbackCreateInfoEXT
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDebugReportCallbackCreateInfoEXT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkDebugReportCallbackCreateInfoEXT
create()
Returns a newVkDebugReportCallbackCreateInfoEXT
instance allocated withBufferUtils
.static VkDebugReportCallbackCreateInfoEXT.Buffer
create(int capacity)
Returns a newVkDebugReportCallbackCreateInfoEXT.Buffer
instance allocated withBufferUtils
.static VkDebugReportCallbackCreateInfoEXT
create(long address)
Returns a newVkDebugReportCallbackCreateInfoEXT
instance for the specified memory address.static VkDebugReportCallbackCreateInfoEXT.Buffer
create(long address, int capacity)
Create aVkDebugReportCallbackCreateInfoEXT.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 theflags
field.VkDebugReportCallbackCreateInfoEXT
flags(int value)
Sets the specified value to theflags
field.static VkDebugReportCallbackCreateInfoEXT
malloc()
Returns a newVkDebugReportCallbackCreateInfoEXT
instance allocated withmemAlloc
.static VkDebugReportCallbackCreateInfoEXT.Buffer
malloc(int capacity)
Returns a newVkDebugReportCallbackCreateInfoEXT.Buffer
instance allocated withmemAlloc
.static VkDebugReportCallbackCreateInfoEXT
mallocStack()
Returns a newVkDebugReportCallbackCreateInfoEXT
instance allocated on the thread-localMemoryStack
.static VkDebugReportCallbackCreateInfoEXT.Buffer
mallocStack(int capacity)
Returns a newVkDebugReportCallbackCreateInfoEXT.Buffer
instance allocated on the thread-localMemoryStack
.static VkDebugReportCallbackCreateInfoEXT.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDebugReportCallbackCreateInfoEXT.Buffer
instance allocated on the specifiedMemoryStack
.static VkDebugReportCallbackCreateInfoEXT
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDebugReportCallbackCreateInfoEXT
instance allocated on the specifiedMemoryStack
.static int
nflags(long struct)
Unsafe version offlags()
.static void
nflags(long struct, int value)
Unsafe version offlags
.static VkDebugReportCallbackEXT
npfnCallback(long struct)
Unsafe version ofpfnCallback()
.static void
npfnCallback(long struct, VkDebugReportCallbackEXTI value)
Unsafe version ofpfnCallback
.static long
npNext(long struct)
Unsafe version ofpNext()
.static void
npNext(long struct, long value)
Unsafe version ofpNext
.static long
npUserData(long struct)
Unsafe version ofpUserData()
.static void
npUserData(long struct, long value)
Unsafe version ofpUserData
.static int
nsType(long struct)
Unsafe version ofsType()
.static void
nsType(long struct, int value)
Unsafe version ofsType
.VkDebugReportCallbackEXT
pfnCallback()
Returns the value of thepfnCallback
field.VkDebugReportCallbackCreateInfoEXT
pfnCallback(VkDebugReportCallbackEXTI value)
Sets the specified value to thepfnCallback
field.long
pNext()
Returns the value of thepNext
field.VkDebugReportCallbackCreateInfoEXT
pNext(long value)
Sets the specified value to thepNext
field.long
pUserData()
Returns the value of thepUserData
field.VkDebugReportCallbackCreateInfoEXT
pUserData(long value)
Sets the specified value to thepUserData
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 thesType
field.VkDebugReportCallbackCreateInfoEXT
sType(int value)
Sets the specified value to thesType
field.static void
validate(long struct)
Validates pointer members that should not beNULL
.static void
validate(long array, int count)
Callsvalidate(long)
for each struct contained in the specified struct array.
-
-
-
Constructor Detail
-
VkDebugReportCallbackCreateInfoEXT
public VkDebugReportCallbackCreateInfoEXT(java.nio.ByteBuffer container)
Creates aVkDebugReportCallbackCreateInfoEXT
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
sType
public int sType()
Returns the value of thesType
field.
-
pNext
public long pNext()
Returns the value of thepNext
field.
-
flags
public int flags()
Returns the value of theflags
field.
-
pfnCallback
public VkDebugReportCallbackEXT pfnCallback()
Returns the value of thepfnCallback
field.
-
pUserData
public long pUserData()
Returns the value of thepUserData
field.
-
sType
public VkDebugReportCallbackCreateInfoEXT sType(int value)
Sets the specified value to thesType
field.
-
pNext
public VkDebugReportCallbackCreateInfoEXT pNext(long value)
Sets the specified value to thepNext
field.
-
flags
public VkDebugReportCallbackCreateInfoEXT flags(int value)
Sets the specified value to theflags
field.
-
pfnCallback
public VkDebugReportCallbackCreateInfoEXT pfnCallback(VkDebugReportCallbackEXTI value)
Sets the specified value to thepfnCallback
field.
-
pUserData
public VkDebugReportCallbackCreateInfoEXT pUserData(long value)
Sets the specified value to thepUserData
field.
-
set
public VkDebugReportCallbackCreateInfoEXT set(int sType, long pNext, int flags, VkDebugReportCallbackEXTI pfnCallback, long pUserData)
Initializes this struct with the specified values.
-
set
public VkDebugReportCallbackCreateInfoEXT set(VkDebugReportCallbackCreateInfoEXT src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static VkDebugReportCallbackCreateInfoEXT malloc()
Returns a newVkDebugReportCallbackCreateInfoEXT
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkDebugReportCallbackCreateInfoEXT calloc()
Returns a newVkDebugReportCallbackCreateInfoEXT
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkDebugReportCallbackCreateInfoEXT create()
Returns a newVkDebugReportCallbackCreateInfoEXT
instance allocated withBufferUtils
.
-
create
public static VkDebugReportCallbackCreateInfoEXT create(long address)
Returns a newVkDebugReportCallbackCreateInfoEXT
instance for the specified memory address.
-
createSafe
@Nullable public static VkDebugReportCallbackCreateInfoEXT createSafe(long address)
-
malloc
public static VkDebugReportCallbackCreateInfoEXT.Buffer malloc(int capacity)
Returns a newVkDebugReportCallbackCreateInfoEXT.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkDebugReportCallbackCreateInfoEXT.Buffer calloc(int capacity)
Returns a newVkDebugReportCallbackCreateInfoEXT.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkDebugReportCallbackCreateInfoEXT.Buffer create(int capacity)
Returns a newVkDebugReportCallbackCreateInfoEXT.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkDebugReportCallbackCreateInfoEXT.Buffer create(long address, int capacity)
Create aVkDebugReportCallbackCreateInfoEXT.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VkDebugReportCallbackCreateInfoEXT.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkDebugReportCallbackCreateInfoEXT mallocStack()
Returns a newVkDebugReportCallbackCreateInfoEXT
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkDebugReportCallbackCreateInfoEXT callocStack()
Returns a newVkDebugReportCallbackCreateInfoEXT
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkDebugReportCallbackCreateInfoEXT mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDebugReportCallbackCreateInfoEXT
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkDebugReportCallbackCreateInfoEXT callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDebugReportCallbackCreateInfoEXT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VkDebugReportCallbackCreateInfoEXT.Buffer mallocStack(int capacity)
Returns a newVkDebugReportCallbackCreateInfoEXT.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkDebugReportCallbackCreateInfoEXT.Buffer callocStack(int capacity)
Returns a newVkDebugReportCallbackCreateInfoEXT.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkDebugReportCallbackCreateInfoEXT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDebugReportCallbackCreateInfoEXT.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VkDebugReportCallbackCreateInfoEXT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDebugReportCallbackCreateInfoEXT.Buffer
instance allocated on the specifiedMemoryStack
and 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()
.
-
npfnCallback
public static VkDebugReportCallbackEXT npfnCallback(long struct)
Unsafe version ofpfnCallback()
.
-
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
.
-
npfnCallback
public static void npfnCallback(long struct, VkDebugReportCallbackEXTI value)
Unsafe version ofpfnCallback
.
-
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
-
-