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, NativeResource, Pointer
public class VkEventCreateInfo extends Struct
Khronos Reference Page
Vulkan SpecificationContains information about how an event object should be created.
Valid Usage
sTypemust beSTRUCTURE_TYPE_EVENT_CREATE_INFOpNextmust beNULLflagsmust be 0
Member documentation
sType– the type of this structure. Must be:STRUCTURE_TYPE_EVENT_CREATE_INFOpNext– reserved for use by extensionsflags– reserved for future use
Layout
struct VkEventCreateInfo { VkStructureType sType; const void * pNext; VkEventCreateFlags flags; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classVkEventCreateInfo.BufferAn array ofVkEventCreateInfostructs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field and Description static intSIZEOFThe struct size in bytes.-
Fields inherited from interface org.lwjgl.system.Pointer
POINTER_SHIFT, POINTER_SIZE
-
-
Constructor Summary
Constructors Constructor and 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 Modifier and Type Method and Description static VkEventCreateInfocalloc()Returns a newVkEventCreateInfoinstance allocated withmemCalloc.static VkEventCreateInfo.Buffercalloc(int capacity)Returns a newVkEventCreateInfo.Bufferinstance allocated withmemCalloc.static VkEventCreateInfocallocStack()Returns a newVkEventCreateInfoinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkEventCreateInfo.BuffercallocStack(int capacity)Returns a newVkEventCreateInfo.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkEventCreateInfo.BuffercallocStack(int capacity, MemoryStack stack)Returns a newVkEventCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkEventCreateInfocallocStack(MemoryStack stack)Returns a newVkEventCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.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 ornullif the address isNULL.static VkEventCreateInfo.Buffercreate(long address, int capacity)Create aVkEventCreateInfo.Bufferinstance at the specified memory.intflags()Returns the value of theflagsfield.VkEventCreateInfoflags(int value)Sets the specified value to theflagsfield.static VkEventCreateInfomalloc()Returns a newVkEventCreateInfoinstance allocated withmemAlloc.static VkEventCreateInfo.Buffermalloc(int capacity)Returns a newVkEventCreateInfo.Bufferinstance allocated withmemAlloc.static VkEventCreateInfomallocStack()Returns a newVkEventCreateInfoinstance allocated on the thread-localMemoryStack.static VkEventCreateInfo.BuffermallocStack(int capacity)Returns a newVkEventCreateInfo.Bufferinstance allocated on the thread-localMemoryStack.static VkEventCreateInfo.BuffermallocStack(int capacity, MemoryStack stack)Returns a newVkEventCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkEventCreateInfomallocStack(MemoryStack stack)Returns a newVkEventCreateInfoinstance allocated on the specifiedMemoryStack.VkEventCreateInfonset(long struct)Unsafe version ofset.longpNext()Returns the value of thepNextfield.VkEventCreateInfopNext(long value)Sets the specified value to thepNextfield.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()Returns thesizeof(struct).intsType()Returns the value of thesTypefield.VkEventCreateInfosType(int value)Sets the specified value to thesTypefield.-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
-
-
-
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()
Description copied from class:StructReturns thesizeof(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.
-
sType
public VkEventCreateInfo sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkEventCreateInfo pNext(long value)
Sets the specified value to thepNextfield.
-
flags
public VkEventCreateInfo flags(int value)
Sets the specified value to theflagsfield.
-
set
public VkEventCreateInfo set(int sType, long pNext, int flags)
Initializes this struct with the specified values.
-
nset
public VkEventCreateInfo nset(long struct)
Unsafe version ofset.
-
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 ornullif the address isNULL.
-
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
-
mallocStack
public static VkEventCreateInfo mallocStack()
Returns a newVkEventCreateInfoinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkEventCreateInfo callocStack()
Returns a newVkEventCreateInfoinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkEventCreateInfo mallocStack(MemoryStack stack)
Returns a newVkEventCreateInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkEventCreateInfo callocStack(MemoryStack stack)
Returns a newVkEventCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkEventCreateInfo.Buffer mallocStack(int capacity)
Returns a newVkEventCreateInfo.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkEventCreateInfo.Buffer callocStack(int capacity)
Returns a newVkEventCreateInfo.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkEventCreateInfo.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newVkEventCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkEventCreateInfo.Buffer callocStack(int capacity, 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
-
-