Package org.lwjgl.vulkan
Class VkDebugReportCallbackCreateInfoEXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkDebugReportCallbackCreateInfoEXT
-
- All Implemented Interfaces:
- java.lang.AutoCloseable, NativeResource, Pointer
public class VkDebugReportCallbackCreateInfoEXT extends Struct
Khronos Reference PageDefines the conditions under which a callback will be called.
Valid Usage
sType
must beSTRUCTURE_TYPE_DEBUG_REPORT_CALLBACK_CREATE_INFO_EXT
pNext
must beNULL
flags
must be a valid combination ofVkDebugReportFlagBitsEXT
valuesflags
must not be 0
Member documentation
sType
– the type of this structure. Must be:STRUCTURE_TYPE_DEBUG_REPORT_CALLBACK_CREATE_INFO_EXT
pNext
– reserved for use by extensionsflags
– indicate which event(s) will cause this callback to be called. One or more of:pfnCallback
– the application callback function to callpUserData
– user data to be passed to the callback
Layout
struct VkDebugReportCallbackCreateInfoEXT { VkStructureType sType; const void * pNext; VkDebugReportFlagsEXT flags; PFN_vkDebugReportCallbackEXT pfnCallback; void * pUserData; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static class
VkDebugReportCallbackCreateInfoEXT.Buffer
An array ofVkDebugReportCallbackCreateInfoEXT
structs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field and Description static int
SIZEOF
The struct size in bytes.-
Fields inherited from interface org.lwjgl.system.Pointer
POINTER_SHIFT, POINTER_SIZE
-
-
Constructor Summary
Constructors Constructor and 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 and 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, MemoryStack stack)
Returns a newVkDebugReportCallbackCreateInfoEXT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkDebugReportCallbackCreateInfoEXT
callocStack(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 ornull
if the address isNULL
.static VkDebugReportCallbackCreateInfoEXT.Buffer
create(long address, int capacity)
Create aVkDebugReportCallbackCreateInfoEXT.Buffer
instance at the specified memory.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, MemoryStack stack)
Returns a newVkDebugReportCallbackCreateInfoEXT.Buffer
instance allocated on the specifiedMemoryStack
.static VkDebugReportCallbackCreateInfoEXT
mallocStack(MemoryStack stack)
Returns a newVkDebugReportCallbackCreateInfoEXT
instance allocated on the specifiedMemoryStack
.VkDebugReportCallbackCreateInfoEXT
nset(long struct)
Unsafe version ofset
.VkDebugReportCallbackEXT
pfnCallback()
Returns theVkDebugReportCallbackEXT
instance at thepfnCallback
field.VkDebugReportCallbackCreateInfoEXT
pfnCallback(VkDebugReportCallbackEXTI value)
Sets the address of the specifiedVkDebugReportCallbackEXTI
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()
Returns thesizeof(struct)
.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)
CallsVkDebugReportCallbackCreateInfoEXT.validate(long)
for each struct contained in the specified struct array.-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
-
-
-
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()
Description copied from class:Struct
Returns thesizeof(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 theVkDebugReportCallbackEXT
instance at 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 address of the specifiedVkDebugReportCallbackEXTI
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.
-
nset
public VkDebugReportCallbackCreateInfoEXT nset(long struct)
Unsafe version ofset
.
-
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 ornull
if the address isNULL
.
-
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
-
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(MemoryStack stack)
Returns a newVkDebugReportCallbackCreateInfoEXT
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkDebugReportCallbackCreateInfoEXT callocStack(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, 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, 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
-
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)
CallsVkDebugReportCallbackCreateInfoEXT.validate(long)
for each struct contained in the specified struct array.- Parameters:
array
- the struct array to validatecount
- the number of structs inarray
-
-