Package org.lwjgl.vulkan
Class VkPhysicalDeviceExternalSemaphoreInfoKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceExternalSemaphoreInfo
-
- org.lwjgl.vulkan.VkPhysicalDeviceExternalSemaphoreInfoKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,NativeResource
,Pointer
public class VkPhysicalDeviceExternalSemaphoreInfoKHR extends VkPhysicalDeviceExternalSemaphoreInfo
SeeVkPhysicalDeviceExternalSemaphoreInfo
.Layout
struct VkPhysicalDeviceExternalSemaphoreInfoKHR { VkStructureType sType; void const * pNext; VkExternalSemaphoreHandleTypeFlagBits handleType; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VkPhysicalDeviceExternalSemaphoreInfoKHR.Buffer
An array ofVkPhysicalDeviceExternalSemaphoreInfoKHR
structs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
-
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, POINTER_SHIFT, POINTER_SIZE
-
Fields inherited from class org.lwjgl.vulkan.VkPhysicalDeviceExternalSemaphoreInfo
ALIGNOF, HANDLETYPE, PNEXT, SIZEOF, STYPE
-
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceExternalSemaphoreInfoKHR(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceExternalSemaphoreInfoKHR
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
-
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Methods inherited from class org.lwjgl.vulkan.VkPhysicalDeviceExternalSemaphoreInfo
handleType, nhandleType, nhandleType, npNext, npNext, nsType, nsType, pNext, set, sizeof, sType
-
-
-
-
Constructor Detail
-
VkPhysicalDeviceExternalSemaphoreInfoKHR
public VkPhysicalDeviceExternalSemaphoreInfoKHR(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceExternalSemaphoreInfoKHR
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
-
sType
public VkPhysicalDeviceExternalSemaphoreInfoKHR sType(int value)
Sets the specified value to thesType
field.- Overrides:
sType
in classVkPhysicalDeviceExternalSemaphoreInfo
-
pNext
public VkPhysicalDeviceExternalSemaphoreInfoKHR pNext(long value)
Sets the specified value to thepNext
field.- Overrides:
pNext
in classVkPhysicalDeviceExternalSemaphoreInfo
-
handleType
public VkPhysicalDeviceExternalSemaphoreInfoKHR handleType(int value)
Sets the specified value to thehandleType
field.- Overrides:
handleType
in classVkPhysicalDeviceExternalSemaphoreInfo
-
set
public VkPhysicalDeviceExternalSemaphoreInfoKHR set(int sType, long pNext, int handleType)
Initializes this struct with the specified values.- Overrides:
set
in classVkPhysicalDeviceExternalSemaphoreInfo
-
set
public VkPhysicalDeviceExternalSemaphoreInfoKHR set(VkPhysicalDeviceExternalSemaphoreInfoKHR src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceExternalSemaphoreInfoKHR malloc()
Returns a newVkPhysicalDeviceExternalSemaphoreInfoKHR
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceExternalSemaphoreInfoKHR calloc()
Returns a newVkPhysicalDeviceExternalSemaphoreInfoKHR
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceExternalSemaphoreInfoKHR create()
Returns a newVkPhysicalDeviceExternalSemaphoreInfoKHR
instance allocated withBufferUtils
.
-
create
public static VkPhysicalDeviceExternalSemaphoreInfoKHR create(long address)
Returns a newVkPhysicalDeviceExternalSemaphoreInfoKHR
instance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceExternalSemaphoreInfoKHR createSafe(long address)
-
malloc
public static VkPhysicalDeviceExternalSemaphoreInfoKHR.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceExternalSemaphoreInfoKHR.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkPhysicalDeviceExternalSemaphoreInfoKHR.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceExternalSemaphoreInfoKHR.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPhysicalDeviceExternalSemaphoreInfoKHR.Buffer create(int capacity)
Returns a newVkPhysicalDeviceExternalSemaphoreInfoKHR.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPhysicalDeviceExternalSemaphoreInfoKHR.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceExternalSemaphoreInfoKHR.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceExternalSemaphoreInfoKHR.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkPhysicalDeviceExternalSemaphoreInfoKHR mallocStack()
Returns a newVkPhysicalDeviceExternalSemaphoreInfoKHR
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkPhysicalDeviceExternalSemaphoreInfoKHR callocStack()
Returns a newVkPhysicalDeviceExternalSemaphoreInfoKHR
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkPhysicalDeviceExternalSemaphoreInfoKHR mallocStack(MemoryStack stack)
Returns a newVkPhysicalDeviceExternalSemaphoreInfoKHR
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkPhysicalDeviceExternalSemaphoreInfoKHR callocStack(MemoryStack stack)
Returns a newVkPhysicalDeviceExternalSemaphoreInfoKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VkPhysicalDeviceExternalSemaphoreInfoKHR.Buffer mallocStack(int capacity)
Returns a newVkPhysicalDeviceExternalSemaphoreInfoKHR.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkPhysicalDeviceExternalSemaphoreInfoKHR.Buffer callocStack(int capacity)
Returns a newVkPhysicalDeviceExternalSemaphoreInfoKHR.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkPhysicalDeviceExternalSemaphoreInfoKHR.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newVkPhysicalDeviceExternalSemaphoreInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VkPhysicalDeviceExternalSemaphoreInfoKHR.Buffer callocStack(int capacity, MemoryStack stack)
Returns a newVkPhysicalDeviceExternalSemaphoreInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
-