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.NativeResourceStructure specifying parameters of a newly created debug report callback.Description
For each
VkDebugReportCallbackEXTthat is created theVkDebugReportCallbackCreateInfoEXT::flagsdetermine when thatVkDebugReportCallbackCreateInfoEXT::pfnCallbackis called. When an event happens, the implementation will do a bitwise AND of the event’sVkDebugReportFlagBitsEXTflags to eachVkDebugReportCallbackEXTobject’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
VkDebugReportCallbackEXTobjects 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)
sTypemust beSTRUCTURE_TYPE_DEBUG_REPORT_CALLBACK_CREATE_INFO_EXTflagsmust be a valid combination ofVkDebugReportFlagBitsEXTvaluespfnCallbackmust be a validVkDebugReportCallbackEXTvalue
See Also
VkDebugReportCallbackEXT,CreateDebugReportCallbackEXTLayout
struct VkDebugReportCallbackCreateInfoEXT { VkStructureTypesType(); void const *pNext(); VkDebugReportFlagsEXTflags();PFN_vkDebugReportCallbackEXTpfnCallback(); void *pUserData(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkDebugReportCallbackCreateInfoEXT.BufferAn array ofVkDebugReportCallbackCreateInfoEXTstructs.
-
Constructor Summary
Constructors Constructor Description VkDebugReportCallbackCreateInfoEXT(java.nio.ByteBuffer container)Creates aVkDebugReportCallbackCreateInfoEXTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static VkDebugReportCallbackCreateInfoEXTcalloc()Returns a newVkDebugReportCallbackCreateInfoEXTinstance allocated withmemCalloc.static VkDebugReportCallbackCreateInfoEXT.Buffercalloc(int capacity)Returns a newVkDebugReportCallbackCreateInfoEXT.Bufferinstance allocated withmemCalloc.static VkDebugReportCallbackCreateInfoEXT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDebugReportCallbackCreateInfoEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDebugReportCallbackCreateInfoEXTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkDebugReportCallbackCreateInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDebugReportCallbackCreateInfoEXTcallocStack()Deprecated.static VkDebugReportCallbackCreateInfoEXT.BuffercallocStack(int capacity)Deprecated.static VkDebugReportCallbackCreateInfoEXT.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkDebugReportCallbackCreateInfoEXTcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static VkDebugReportCallbackCreateInfoEXTcreate()Returns a newVkDebugReportCallbackCreateInfoEXTinstance allocated withBufferUtils.static VkDebugReportCallbackCreateInfoEXT.Buffercreate(int capacity)Returns a newVkDebugReportCallbackCreateInfoEXT.Bufferinstance allocated withBufferUtils.static VkDebugReportCallbackCreateInfoEXTcreate(long address)Returns a newVkDebugReportCallbackCreateInfoEXTinstance for the specified memory address.static VkDebugReportCallbackCreateInfoEXT.Buffercreate(long address, int capacity)Create aVkDebugReportCallbackCreateInfoEXT.Bufferinstance at the specified memory.static VkDebugReportCallbackCreateInfoEXTcreateSafe(long address)static VkDebugReportCallbackCreateInfoEXT.BuffercreateSafe(long address, int capacity)intflags()a bitmask ofVkDebugReportFlagBitsEXTspecifying which event(s) will cause this callback to be called.VkDebugReportCallbackCreateInfoEXTflags(int value)Sets the specified value to theflags()field.static VkDebugReportCallbackCreateInfoEXTmalloc()Returns a newVkDebugReportCallbackCreateInfoEXTinstance allocated withmemAlloc.static VkDebugReportCallbackCreateInfoEXT.Buffermalloc(int capacity)Returns a newVkDebugReportCallbackCreateInfoEXT.Bufferinstance allocated withmemAlloc.static VkDebugReportCallbackCreateInfoEXT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDebugReportCallbackCreateInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkDebugReportCallbackCreateInfoEXTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkDebugReportCallbackCreateInfoEXTinstance allocated on the specifiedMemoryStack.static VkDebugReportCallbackCreateInfoEXTmallocStack()Deprecated.static VkDebugReportCallbackCreateInfoEXT.BuffermallocStack(int capacity)Deprecated.static VkDebugReportCallbackCreateInfoEXT.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkDebugReportCallbackCreateInfoEXTmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static intnflags(long struct)Unsafe version offlags().static voidnflags(long struct, int value)Unsafe version offlags.static VkDebugReportCallbackEXTnpfnCallback(long struct)Unsafe version ofpfnCallback().static voidnpfnCallback(long struct, VkDebugReportCallbackEXTI value)Unsafe version ofpfnCallback.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.VkDebugReportCallbackEXTpfnCallback()the application callback function to call.VkDebugReportCallbackCreateInfoEXTpfnCallback(VkDebugReportCallbackEXTI value)Sets the specified value to thepfnCallback()field.longpNext()NULLor a pointer to a structure extending this structure.VkDebugReportCallbackCreateInfoEXTpNext(long value)Sets the specified value to thepNext()field.longpUserData()user data to be passed to the callback.VkDebugReportCallbackCreateInfoEXTpUserData(long value)Sets the specified value to thepUserData()field.VkDebugReportCallbackCreateInfoEXTset(int sType, long pNext, int flags, VkDebugReportCallbackEXTI pfnCallback, long pUserData)Initializes this struct with the specified values.VkDebugReportCallbackCreateInfoEXTset(VkDebugReportCallbackCreateInfoEXT src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkDebugReportCallbackCreateInfoEXTsType(int value)Sets the specified value to thesType()field.VkDebugReportCallbackCreateInfoEXTsType$Default()Sets theSTRUCTURE_TYPE_DEBUG_REPORT_CALLBACK_CREATE_INFO_EXTvalue to thesType()field.static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
VkDebugReportCallbackCreateInfoEXT
public VkDebugReportCallbackCreateInfoEXT(java.nio.ByteBuffer container)
Creates aVkDebugReportCallbackCreateInfoEXTinstance 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()
a bitmask ofVkDebugReportFlagBitsEXTspecifying which event(s) will cause this callback to be called.
-
pfnCallback
public VkDebugReportCallbackEXT pfnCallback()
the application callback function to call.
-
pUserData
public long pUserData()
user data to be passed to the callback.
-
sType
public VkDebugReportCallbackCreateInfoEXT sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkDebugReportCallbackCreateInfoEXT sType$Default()
Sets theSTRUCTURE_TYPE_DEBUG_REPORT_CALLBACK_CREATE_INFO_EXTvalue 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 newVkDebugReportCallbackCreateInfoEXTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkDebugReportCallbackCreateInfoEXT calloc()
Returns a newVkDebugReportCallbackCreateInfoEXTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkDebugReportCallbackCreateInfoEXT create()
Returns a newVkDebugReportCallbackCreateInfoEXTinstance allocated withBufferUtils.
-
create
public static VkDebugReportCallbackCreateInfoEXT create(long address)
Returns a newVkDebugReportCallbackCreateInfoEXTinstance for the specified memory address.
-
createSafe
@Nullable public static VkDebugReportCallbackCreateInfoEXT createSafe(long address)
-
malloc
public static VkDebugReportCallbackCreateInfoEXT.Buffer malloc(int capacity)
Returns a newVkDebugReportCallbackCreateInfoEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkDebugReportCallbackCreateInfoEXT.Buffer calloc(int capacity)
Returns a newVkDebugReportCallbackCreateInfoEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkDebugReportCallbackCreateInfoEXT.Buffer create(int capacity)
Returns a newVkDebugReportCallbackCreateInfoEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkDebugReportCallbackCreateInfoEXT.Buffer create(long address, int capacity)
Create aVkDebugReportCallbackCreateInfoEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkDebugReportCallbackCreateInfoEXT.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static VkDebugReportCallbackCreateInfoEXT mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkDebugReportCallbackCreateInfoEXT callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkDebugReportCallbackCreateInfoEXT mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkDebugReportCallbackCreateInfoEXT callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkDebugReportCallbackCreateInfoEXT.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkDebugReportCallbackCreateInfoEXT.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkDebugReportCallbackCreateInfoEXT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkDebugReportCallbackCreateInfoEXT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkDebugReportCallbackCreateInfoEXT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkDebugReportCallbackCreateInfoEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkDebugReportCallbackCreateInfoEXT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkDebugReportCallbackCreateInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkDebugReportCallbackCreateInfoEXT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDebugReportCallbackCreateInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkDebugReportCallbackCreateInfoEXT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDebugReportCallbackCreateInfoEXT.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().
-
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
-
-