Package org.lwjgl.vulkan
Class VkEventCreateInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkEventCreateInfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkEventCreateInfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying parameters of a newly created event.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_EVENT_CREATE_INFOpNextmust beNULLflagsmust be a valid combination ofVkEventCreateFlagBitsvalues
See Also
Layout
struct VkEventCreateInfo { VkStructureTypesType(); void const *pNext(); VkEventCreateFlagsflags(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkEventCreateInfo.BufferAn array ofVkEventCreateInfostructs.
-
Constructor Summary
Constructors Constructor Description VkEventCreateInfo(java.nio.ByteBuffer container)Creates aVkEventCreateInfoinstance 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 VkEventCreateInfocalloc()Returns a newVkEventCreateInfoinstance allocated withmemCalloc.static VkEventCreateInfo.Buffercalloc(int capacity)Returns a newVkEventCreateInfo.Bufferinstance allocated withmemCalloc.static VkEventCreateInfo.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkEventCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkEventCreateInfocalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkEventCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkEventCreateInfocallocStack()Deprecated.static VkEventCreateInfo.BuffercallocStack(int capacity)Deprecated.static VkEventCreateInfo.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkEventCreateInfocallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static VkEventCreateInfocreate()Returns a newVkEventCreateInfoinstance allocated withBufferUtils.static VkEventCreateInfo.Buffercreate(int capacity)Returns a newVkEventCreateInfo.Bufferinstance allocated withBufferUtils.static VkEventCreateInfocreate(long address)Returns a newVkEventCreateInfoinstance for the specified memory address.static VkEventCreateInfo.Buffercreate(long address, int capacity)Create aVkEventCreateInfo.Bufferinstance at the specified memory.static VkEventCreateInfocreateSafe(long address)static VkEventCreateInfo.BuffercreateSafe(long address, int capacity)intflags()a bitmask ofVkEventCreateFlagBitsdefining additional creation parameters.VkEventCreateInfoflags(int value)Sets the specified value to theflags()field.static VkEventCreateInfomalloc()Returns a newVkEventCreateInfoinstance allocated withmemAlloc.static VkEventCreateInfo.Buffermalloc(int capacity)Returns a newVkEventCreateInfo.Bufferinstance allocated withmemAlloc.static VkEventCreateInfo.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkEventCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkEventCreateInfomalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkEventCreateInfoinstance allocated on the specifiedMemoryStack.static VkEventCreateInfomallocStack()Deprecated.static VkEventCreateInfo.BuffermallocStack(int capacity)Deprecated.static VkEventCreateInfo.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkEventCreateInfomallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static intnflags(long struct)Unsafe version offlags().static voidnflags(long struct, int value)Unsafe version offlags.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.longpNext()NULLor a pointer to a structure extending this structure.VkEventCreateInfopNext(long value)Sets the specified value to thepNext()field.VkEventCreateInfoset(int sType, long pNext, int flags)Initializes this struct with the specified values.VkEventCreateInfoset(VkEventCreateInfo src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkEventCreateInfosType(int value)Sets the specified value to thesType()field.VkEventCreateInfosType$Default()Sets theSTRUCTURE_TYPE_EVENT_CREATE_INFOvalue to thesType()field.
-
-
-
Constructor Detail
-
VkEventCreateInfo
public VkEventCreateInfo(java.nio.ByteBuffer container)
Creates aVkEventCreateInfoinstance 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 ofVkEventCreateFlagBitsdefining additional creation parameters.
-
sType
public VkEventCreateInfo sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkEventCreateInfo sType$Default()
Sets theSTRUCTURE_TYPE_EVENT_CREATE_INFOvalue to thesType()field.
-
pNext
public VkEventCreateInfo pNext(long value)
Sets the specified value to thepNext()field.
-
flags
public VkEventCreateInfo flags(int value)
Sets the specified value to theflags()field.
-
set
public VkEventCreateInfo set(int sType, long pNext, int flags)
Initializes this struct with the specified values.
-
set
public VkEventCreateInfo set(VkEventCreateInfo src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkEventCreateInfo malloc()
Returns a newVkEventCreateInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkEventCreateInfo calloc()
Returns a newVkEventCreateInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkEventCreateInfo create()
Returns a newVkEventCreateInfoinstance allocated withBufferUtils.
-
create
public static VkEventCreateInfo create(long address)
Returns a newVkEventCreateInfoinstance for the specified memory address.
-
createSafe
@Nullable public static VkEventCreateInfo createSafe(long address)
-
malloc
public static VkEventCreateInfo.Buffer malloc(int capacity)
Returns a newVkEventCreateInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkEventCreateInfo.Buffer calloc(int capacity)
Returns a newVkEventCreateInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkEventCreateInfo.Buffer create(int capacity)
Returns a newVkEventCreateInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkEventCreateInfo.Buffer create(long address, int capacity)
Create aVkEventCreateInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkEventCreateInfo.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static VkEventCreateInfo mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkEventCreateInfo callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkEventCreateInfo mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkEventCreateInfo callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkEventCreateInfo.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkEventCreateInfo.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkEventCreateInfo.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 VkEventCreateInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkEventCreateInfo malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkEventCreateInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkEventCreateInfo calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkEventCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkEventCreateInfo.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkEventCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkEventCreateInfo.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkEventCreateInfo.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().
-
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.
-
-