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,CreateDebugReportCallbackEXTMember documentation
sType– the type of this structure.pNext–NULLor a pointer to an extension-specific structure.flags– a bitmask ofVkDebugReportFlagBitsEXTspecifying 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_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 Modifier and Type Method Description static VkDebugReportCallbackCreateInfoEXTcalloc()Returns a newVkDebugReportCallbackCreateInfoEXTinstance allocated withmemCalloc.static VkDebugReportCallbackCreateInfoEXT.Buffercalloc(int capacity)Returns a newVkDebugReportCallbackCreateInfoEXT.Bufferinstance allocated withmemCalloc.static VkDebugReportCallbackCreateInfoEXTcallocStack()Returns a newVkDebugReportCallbackCreateInfoEXTinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkDebugReportCallbackCreateInfoEXT.BuffercallocStack(int capacity)Returns a newVkDebugReportCallbackCreateInfoEXT.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkDebugReportCallbackCreateInfoEXT.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDebugReportCallbackCreateInfoEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDebugReportCallbackCreateInfoEXTcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkDebugReportCallbackCreateInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.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()Returns the value of theflagsfield.VkDebugReportCallbackCreateInfoEXTflags(int value)Sets the specified value to theflagsfield.static VkDebugReportCallbackCreateInfoEXTmalloc()Returns a newVkDebugReportCallbackCreateInfoEXTinstance allocated withmemAlloc.static VkDebugReportCallbackCreateInfoEXT.Buffermalloc(int capacity)Returns a newVkDebugReportCallbackCreateInfoEXT.Bufferinstance allocated withmemAlloc.static VkDebugReportCallbackCreateInfoEXTmallocStack()Returns a newVkDebugReportCallbackCreateInfoEXTinstance allocated on the thread-localMemoryStack.static VkDebugReportCallbackCreateInfoEXT.BuffermallocStack(int capacity)Returns a newVkDebugReportCallbackCreateInfoEXT.Bufferinstance allocated on the thread-localMemoryStack.static VkDebugReportCallbackCreateInfoEXT.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDebugReportCallbackCreateInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkDebugReportCallbackCreateInfoEXTmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkDebugReportCallbackCreateInfoEXTinstance allocated on the specifiedMemoryStack.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()Returns the value of thepfnCallbackfield.VkDebugReportCallbackCreateInfoEXTpfnCallback(VkDebugReportCallbackEXTI value)Sets the specified value to thepfnCallbackfield.longpNext()Returns the value of thepNextfield.VkDebugReportCallbackCreateInfoEXTpNext(long value)Sets the specified value to thepNextfield.longpUserData()Returns the value of thepUserDatafield.VkDebugReportCallbackCreateInfoEXTpUserData(long value)Sets the specified value to thepUserDatafield.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()Returns the value of thesTypefield.VkDebugReportCallbackCreateInfoEXTsType(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
-
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()
Returns the value of thesTypefield.
-
pNext
public long pNext()
Returns the value of thepNextfield.
-
flags
public int flags()
Returns the value of theflagsfield.
-
pfnCallback
public VkDebugReportCallbackEXT pfnCallback()
Returns the value of thepfnCallbackfield.
-
pUserData
public long pUserData()
Returns the value of thepUserDatafield.
-
sType
public VkDebugReportCallbackCreateInfoEXT sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkDebugReportCallbackCreateInfoEXT pNext(long value)
Sets the specified value to thepNextfield.
-
flags
public VkDebugReportCallbackCreateInfoEXT flags(int value)
Sets the specified value to theflagsfield.
-
pfnCallback
public VkDebugReportCallbackCreateInfoEXT pfnCallback(VkDebugReportCallbackEXTI value)
Sets the specified value to thepfnCallbackfield.
-
pUserData
public VkDebugReportCallbackCreateInfoEXT pUserData(long value)
Sets the specified value to thepUserDatafield.
-
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
public static VkDebugReportCallbackCreateInfoEXT mallocStack()
Returns a newVkDebugReportCallbackCreateInfoEXTinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkDebugReportCallbackCreateInfoEXT callocStack()
Returns a newVkDebugReportCallbackCreateInfoEXTinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkDebugReportCallbackCreateInfoEXT mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDebugReportCallbackCreateInfoEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkDebugReportCallbackCreateInfoEXT callocStack(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
-
mallocStack
public static VkDebugReportCallbackCreateInfoEXT.Buffer mallocStack(int capacity)
Returns a newVkDebugReportCallbackCreateInfoEXT.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkDebugReportCallbackCreateInfoEXT.Buffer callocStack(int capacity)
Returns a newVkDebugReportCallbackCreateInfoEXT.Bufferinstance allocated on the thread-localMemoryStackand 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.Bufferinstance 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.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
-
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
-
-