Package org.lwjgl.vulkan
Class VkImportFenceWin32HandleInfoKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkImportFenceWin32HandleInfoKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkImportFenceWin32HandleInfoKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource(None).Description
The handle types supported by
handleTypeare:Handle Types Supported by
VkImportFenceWin32HandleInfoKHRHandle Type Transference Permanence Supported EXTERNAL_FENCE_HANDLE_TYPE_OPAQUE_WIN32_BITReference Temporary,Permanent EXTERNAL_FENCE_HANDLE_TYPE_OPAQUE_WIN32_KMT_BITReference Temporary,Permanent Valid Usage
handleTypemust be a value included in the Handle Types Supported by VkImportFenceWin32HandleInfoKHR table.- If
handleTypeis notEXTERNAL_FENCE_HANDLE_TYPE_OPAQUE_WIN32_BIT,namemust beNULL. - If
handleTypeis not 0 andhandleisNULL,namemust name a valid synchronization primitive of the type specified byhandleType. - If
handleTypeis not 0 andnameisNULL,handlemust be a valid handle of the type specified byhandleType. - If
handleis notNULL,namemust beNULL. - If
handleis notNULL, it must obey any requirements listed forhandleTypein external fence handle types compatibility. - If
nameis notNULL, it must obey any requirements listed forhandleTypein external fence handle types compatibility.
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_IMPORT_FENCE_WIN32_HANDLE_INFO_KHRpNextmust beNULLfencemust be a validVkFencehandleflagsmust be a valid combination ofVkFenceImportFlagBitsvalues- If
handleTypeis not 0,handleTypemust be a validVkExternalFenceHandleTypeFlagBitsvalue
Host Synchronization
- Host access to
fencemust be externally synchronized
See Also
Member documentation
sType– the type of this structure.pNext–NULLor a pointer to an extension-specific structure.fence– the fence into which the state will be imported.flags– a bitmask ofVkFenceImportFlagBitsspecifying additional parameters for the fence payload import operation.handleType– specifies the type ofhandle.handle– the external handle to import, orNULL.name– the NULL-terminated UTF-16 string naming the underlying synchronization primitive to import, orNULL.
Layout
struct VkImportFenceWin32HandleInfoKHR { VkStructureType sType; void const * pNext; VkFence fence; VkFenceImportFlags flags; VkExternalFenceHandleTypeFlagBits handleType; HANDLE handle; LPCWSTR name; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkImportFenceWin32HandleInfoKHR.BufferAn array ofVkImportFenceWin32HandleInfoKHRstructs.
-
Constructor Summary
Constructors Constructor Description VkImportFenceWin32HandleInfoKHR(java.nio.ByteBuffer container)Creates aVkImportFenceWin32HandleInfoKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkImportFenceWin32HandleInfoKHRcalloc()Returns a newVkImportFenceWin32HandleInfoKHRinstance allocated withmemCalloc.static VkImportFenceWin32HandleInfoKHR.Buffercalloc(int capacity)Returns a newVkImportFenceWin32HandleInfoKHR.Bufferinstance allocated withmemCalloc.static VkImportFenceWin32HandleInfoKHRcallocStack()Returns a newVkImportFenceWin32HandleInfoKHRinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkImportFenceWin32HandleInfoKHR.BuffercallocStack(int capacity)Returns a newVkImportFenceWin32HandleInfoKHR.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkImportFenceWin32HandleInfoKHR.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkImportFenceWin32HandleInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImportFenceWin32HandleInfoKHRcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkImportFenceWin32HandleInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImportFenceWin32HandleInfoKHRcreate()Returns a newVkImportFenceWin32HandleInfoKHRinstance allocated withBufferUtils.static VkImportFenceWin32HandleInfoKHR.Buffercreate(int capacity)Returns a newVkImportFenceWin32HandleInfoKHR.Bufferinstance allocated withBufferUtils.static VkImportFenceWin32HandleInfoKHRcreate(long address)Returns a newVkImportFenceWin32HandleInfoKHRinstance for the specified memory address.static VkImportFenceWin32HandleInfoKHR.Buffercreate(long address, int capacity)Create aVkImportFenceWin32HandleInfoKHR.Bufferinstance at the specified memory.static VkImportFenceWin32HandleInfoKHRcreateSafe(long address)static VkImportFenceWin32HandleInfoKHR.BuffercreateSafe(long address, int capacity)longfence()Returns the value of thefencefield.VkImportFenceWin32HandleInfoKHRfence(long value)Sets the specified value to thefencefield.intflags()Returns the value of theflagsfield.VkImportFenceWin32HandleInfoKHRflags(int value)Sets the specified value to theflagsfield.longhandle()Returns the value of thehandlefield.VkImportFenceWin32HandleInfoKHRhandle(long value)Sets the specified value to thehandlefield.inthandleType()Returns the value of thehandleTypefield.VkImportFenceWin32HandleInfoKHRhandleType(int value)Sets the specified value to thehandleTypefield.static VkImportFenceWin32HandleInfoKHRmalloc()Returns a newVkImportFenceWin32HandleInfoKHRinstance allocated withmemAlloc.static VkImportFenceWin32HandleInfoKHR.Buffermalloc(int capacity)Returns a newVkImportFenceWin32HandleInfoKHR.Bufferinstance allocated withmemAlloc.static VkImportFenceWin32HandleInfoKHRmallocStack()Returns a newVkImportFenceWin32HandleInfoKHRinstance allocated on the thread-localMemoryStack.static VkImportFenceWin32HandleInfoKHR.BuffermallocStack(int capacity)Returns a newVkImportFenceWin32HandleInfoKHR.Bufferinstance allocated on the thread-localMemoryStack.static VkImportFenceWin32HandleInfoKHR.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkImportFenceWin32HandleInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkImportFenceWin32HandleInfoKHRmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkImportFenceWin32HandleInfoKHRinstance allocated on the specifiedMemoryStack.java.nio.ByteBuffername()Returns aByteBufferview of the null-terminated string pointed to by thenamefield.VkImportFenceWin32HandleInfoKHRname(java.nio.ByteBuffer value)Sets the address of the specified encoded string to thenamefield.java.lang.StringnameString()Decodes the null-terminated string pointed to by thenamefield.static longnfence(long struct)Unsafe version offence().static voidnfence(long struct, long value)Unsafe version offence.static intnflags(long struct)Unsafe version offlags().static voidnflags(long struct, int value)Unsafe version offlags.static longnhandle(long struct)Unsafe version ofhandle().static voidnhandle(long struct, long value)Unsafe version ofhandle.static intnhandleType(long struct)Unsafe version ofhandleType().static voidnhandleType(long struct, int value)Unsafe version ofhandleType.static java.nio.ByteBuffernname(long struct)Unsafe version ofname().static voidnname(long struct, java.nio.ByteBuffer value)Unsafe version ofname.static java.lang.StringnnameString(long struct)Unsafe version ofnameString().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()Returns the value of thepNextfield.VkImportFenceWin32HandleInfoKHRpNext(long value)Sets the specified value to thepNextfield.VkImportFenceWin32HandleInfoKHRset(int sType, long pNext, long fence, int flags, int handleType, long handle, java.nio.ByteBuffer name)Initializes this struct with the specified values.VkImportFenceWin32HandleInfoKHRset(VkImportFenceWin32HandleInfoKHR src)Copies the specified struct data to this struct.intsizeof()intsType()Returns the value of thesTypefield.VkImportFenceWin32HandleInfoKHRsType(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
-
VkImportFenceWin32HandleInfoKHR
public VkImportFenceWin32HandleInfoKHR(java.nio.ByteBuffer container)
Creates aVkImportFenceWin32HandleInfoKHRinstance 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.
-
fence
public long fence()
Returns the value of thefencefield.
-
flags
public int flags()
Returns the value of theflagsfield.
-
handleType
public int handleType()
Returns the value of thehandleTypefield.
-
handle
public long handle()
Returns the value of thehandlefield.
-
name
public java.nio.ByteBuffer name()
Returns aByteBufferview of the null-terminated string pointed to by thenamefield.
-
nameString
public java.lang.String nameString()
Decodes the null-terminated string pointed to by thenamefield.
-
sType
public VkImportFenceWin32HandleInfoKHR sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkImportFenceWin32HandleInfoKHR pNext(long value)
Sets the specified value to thepNextfield.
-
fence
public VkImportFenceWin32HandleInfoKHR fence(long value)
Sets the specified value to thefencefield.
-
flags
public VkImportFenceWin32HandleInfoKHR flags(int value)
Sets the specified value to theflagsfield.
-
handleType
public VkImportFenceWin32HandleInfoKHR handleType(int value)
Sets the specified value to thehandleTypefield.
-
handle
public VkImportFenceWin32HandleInfoKHR handle(long value)
Sets the specified value to thehandlefield.
-
name
public VkImportFenceWin32HandleInfoKHR name(java.nio.ByteBuffer value)
Sets the address of the specified encoded string to thenamefield.
-
set
public VkImportFenceWin32HandleInfoKHR set(int sType, long pNext, long fence, int flags, int handleType, long handle, java.nio.ByteBuffer name)
Initializes this struct with the specified values.
-
set
public VkImportFenceWin32HandleInfoKHR set(VkImportFenceWin32HandleInfoKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkImportFenceWin32HandleInfoKHR malloc()
Returns a newVkImportFenceWin32HandleInfoKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkImportFenceWin32HandleInfoKHR calloc()
Returns a newVkImportFenceWin32HandleInfoKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkImportFenceWin32HandleInfoKHR create()
Returns a newVkImportFenceWin32HandleInfoKHRinstance allocated withBufferUtils.
-
create
public static VkImportFenceWin32HandleInfoKHR create(long address)
Returns a newVkImportFenceWin32HandleInfoKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkImportFenceWin32HandleInfoKHR createSafe(long address)
-
malloc
public static VkImportFenceWin32HandleInfoKHR.Buffer malloc(int capacity)
Returns a newVkImportFenceWin32HandleInfoKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkImportFenceWin32HandleInfoKHR.Buffer calloc(int capacity)
Returns a newVkImportFenceWin32HandleInfoKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkImportFenceWin32HandleInfoKHR.Buffer create(int capacity)
Returns a newVkImportFenceWin32HandleInfoKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkImportFenceWin32HandleInfoKHR.Buffer create(long address, int capacity)
Create aVkImportFenceWin32HandleInfoKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkImportFenceWin32HandleInfoKHR.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkImportFenceWin32HandleInfoKHR mallocStack()
Returns a newVkImportFenceWin32HandleInfoKHRinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkImportFenceWin32HandleInfoKHR callocStack()
Returns a newVkImportFenceWin32HandleInfoKHRinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkImportFenceWin32HandleInfoKHR mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkImportFenceWin32HandleInfoKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkImportFenceWin32HandleInfoKHR callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkImportFenceWin32HandleInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkImportFenceWin32HandleInfoKHR.Buffer mallocStack(int capacity)
Returns a newVkImportFenceWin32HandleInfoKHR.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkImportFenceWin32HandleInfoKHR.Buffer callocStack(int capacity)
Returns a newVkImportFenceWin32HandleInfoKHR.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkImportFenceWin32HandleInfoKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkImportFenceWin32HandleInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkImportFenceWin32HandleInfoKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkImportFenceWin32HandleInfoKHR.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().
-
nfence
public static long nfence(long struct)
Unsafe version offence().
-
nflags
public static int nflags(long struct)
Unsafe version offlags().
-
nhandleType
public static int nhandleType(long struct)
Unsafe version ofhandleType().
-
nhandle
public static long nhandle(long struct)
Unsafe version ofhandle().
-
nname
public static java.nio.ByteBuffer nname(long struct)
Unsafe version ofname().
-
nnameString
public static java.lang.String nnameString(long struct)
Unsafe version ofnameString().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nfence
public static void nfence(long struct, long value)Unsafe version offence.
-
nflags
public static void nflags(long struct, int value)Unsafe version offlags.
-
nhandleType
public static void nhandleType(long struct, int value)Unsafe version ofhandleType.
-
nhandle
public static void nhandle(long struct, long value)Unsafe version ofhandle.
-
nname
public static void nname(long struct, java.nio.ByteBuffer value)Unsafe version ofname.
-
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
-
-