Package org.lwjgl.vulkan
Class VkImportMemoryWin32HandleInfoNV
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkImportMemoryWin32HandleInfoNV
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkImportMemoryWin32HandleInfoNV extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceImport Win32 memory created on the same physical device.Description
If
handleTypeis 0, this structure is ignored by consumers of theVkMemoryAllocateInfostructure it is chained from.Valid Usage
handleTypemust not have more than one bit sethandlemust be a valid handle to memory, obtained as specified byhandleType
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_IMPORT_MEMORY_WIN32_HANDLE_INFO_NVhandleTypemust be a valid combination ofVkExternalMemoryHandleTypeFlagBitsNVvalues
Layout
struct VkImportMemoryWin32HandleInfoNV { VkStructureTypesType(); void const *pNext(); VkExternalMemoryHandleTypeFlagsNVhandleType(); HANDLEhandle(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkImportMemoryWin32HandleInfoNV.BufferAn array ofVkImportMemoryWin32HandleInfoNVstructs.
-
Constructor Summary
Constructors Constructor Description VkImportMemoryWin32HandleInfoNV(java.nio.ByteBuffer container)Creates aVkImportMemoryWin32HandleInfoNVinstance 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 VkImportMemoryWin32HandleInfoNVcalloc()Returns a newVkImportMemoryWin32HandleInfoNVinstance allocated withmemCalloc.static VkImportMemoryWin32HandleInfoNV.Buffercalloc(int capacity)Returns a newVkImportMemoryWin32HandleInfoNV.Bufferinstance allocated withmemCalloc.static VkImportMemoryWin32HandleInfoNV.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkImportMemoryWin32HandleInfoNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImportMemoryWin32HandleInfoNVcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkImportMemoryWin32HandleInfoNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImportMemoryWin32HandleInfoNVcallocStack()Deprecated.static VkImportMemoryWin32HandleInfoNV.BuffercallocStack(int capacity)Deprecated.static VkImportMemoryWin32HandleInfoNV.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkImportMemoryWin32HandleInfoNVcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static VkImportMemoryWin32HandleInfoNVcreate()Returns a newVkImportMemoryWin32HandleInfoNVinstance allocated withBufferUtils.static VkImportMemoryWin32HandleInfoNV.Buffercreate(int capacity)Returns a newVkImportMemoryWin32HandleInfoNV.Bufferinstance allocated withBufferUtils.static VkImportMemoryWin32HandleInfoNVcreate(long address)Returns a newVkImportMemoryWin32HandleInfoNVinstance for the specified memory address.static VkImportMemoryWin32HandleInfoNV.Buffercreate(long address, int capacity)Create aVkImportMemoryWin32HandleInfoNV.Bufferinstance at the specified memory.static VkImportMemoryWin32HandleInfoNVcreateSafe(long address)static VkImportMemoryWin32HandleInfoNV.BuffercreateSafe(long address, int capacity)longhandle()a WindowsHANDLEreferring to the memory.VkImportMemoryWin32HandleInfoNVhandle(long value)Sets the specified value to thehandle()field.inthandleType()0 or aVkExternalMemoryHandleTypeFlagBitsNVvalue specifying the type of memory handle inhandle.VkImportMemoryWin32HandleInfoNVhandleType(int value)Sets the specified value to thehandleType()field.static VkImportMemoryWin32HandleInfoNVmalloc()Returns a newVkImportMemoryWin32HandleInfoNVinstance allocated withmemAlloc.static VkImportMemoryWin32HandleInfoNV.Buffermalloc(int capacity)Returns a newVkImportMemoryWin32HandleInfoNV.Bufferinstance allocated withmemAlloc.static VkImportMemoryWin32HandleInfoNV.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkImportMemoryWin32HandleInfoNV.Bufferinstance allocated on the specifiedMemoryStack.static VkImportMemoryWin32HandleInfoNVmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkImportMemoryWin32HandleInfoNVinstance allocated on the specifiedMemoryStack.static VkImportMemoryWin32HandleInfoNVmallocStack()Deprecated.static VkImportMemoryWin32HandleInfoNV.BuffermallocStack(int capacity)Deprecated.static VkImportMemoryWin32HandleInfoNV.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkImportMemoryWin32HandleInfoNVmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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 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.VkImportMemoryWin32HandleInfoNVpNext(long value)Sets the specified value to thepNext()field.VkImportMemoryWin32HandleInfoNVset(int sType, long pNext, int handleType, long handle)Initializes this struct with the specified values.VkImportMemoryWin32HandleInfoNVset(VkImportMemoryWin32HandleInfoNV src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkImportMemoryWin32HandleInfoNVsType(int value)Sets the specified value to thesType()field.VkImportMemoryWin32HandleInfoNVsType$Default()Sets theSTRUCTURE_TYPE_IMPORT_MEMORY_WIN32_HANDLE_INFO_NVvalue to thesType()field.static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
VkImportMemoryWin32HandleInfoNV
public VkImportMemoryWin32HandleInfoNV(java.nio.ByteBuffer container)
Creates aVkImportMemoryWin32HandleInfoNVinstance 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.
-
handleType
public int handleType()
0 or aVkExternalMemoryHandleTypeFlagBitsNVvalue specifying the type of memory handle inhandle.
-
handle
public long handle()
a WindowsHANDLEreferring to the memory.
-
sType
public VkImportMemoryWin32HandleInfoNV sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkImportMemoryWin32HandleInfoNV sType$Default()
Sets theSTRUCTURE_TYPE_IMPORT_MEMORY_WIN32_HANDLE_INFO_NVvalue to thesType()field.
-
pNext
public VkImportMemoryWin32HandleInfoNV pNext(long value)
Sets the specified value to thepNext()field.
-
handleType
public VkImportMemoryWin32HandleInfoNV handleType(int value)
Sets the specified value to thehandleType()field.
-
handle
public VkImportMemoryWin32HandleInfoNV handle(long value)
Sets the specified value to thehandle()field.
-
set
public VkImportMemoryWin32HandleInfoNV set(int sType, long pNext, int handleType, long handle)
Initializes this struct with the specified values.
-
set
public VkImportMemoryWin32HandleInfoNV set(VkImportMemoryWin32HandleInfoNV src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkImportMemoryWin32HandleInfoNV malloc()
Returns a newVkImportMemoryWin32HandleInfoNVinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkImportMemoryWin32HandleInfoNV calloc()
Returns a newVkImportMemoryWin32HandleInfoNVinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkImportMemoryWin32HandleInfoNV create()
Returns a newVkImportMemoryWin32HandleInfoNVinstance allocated withBufferUtils.
-
create
public static VkImportMemoryWin32HandleInfoNV create(long address)
Returns a newVkImportMemoryWin32HandleInfoNVinstance for the specified memory address.
-
createSafe
@Nullable public static VkImportMemoryWin32HandleInfoNV createSafe(long address)
-
malloc
public static VkImportMemoryWin32HandleInfoNV.Buffer malloc(int capacity)
Returns a newVkImportMemoryWin32HandleInfoNV.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkImportMemoryWin32HandleInfoNV.Buffer calloc(int capacity)
Returns a newVkImportMemoryWin32HandleInfoNV.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkImportMemoryWin32HandleInfoNV.Buffer create(int capacity)
Returns a newVkImportMemoryWin32HandleInfoNV.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkImportMemoryWin32HandleInfoNV.Buffer create(long address, int capacity)
Create aVkImportMemoryWin32HandleInfoNV.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkImportMemoryWin32HandleInfoNV.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static VkImportMemoryWin32HandleInfoNV mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkImportMemoryWin32HandleInfoNV callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkImportMemoryWin32HandleInfoNV mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkImportMemoryWin32HandleInfoNV callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkImportMemoryWin32HandleInfoNV.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkImportMemoryWin32HandleInfoNV.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkImportMemoryWin32HandleInfoNV.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 VkImportMemoryWin32HandleInfoNV.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkImportMemoryWin32HandleInfoNV malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkImportMemoryWin32HandleInfoNVinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkImportMemoryWin32HandleInfoNV calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkImportMemoryWin32HandleInfoNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkImportMemoryWin32HandleInfoNV.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkImportMemoryWin32HandleInfoNV.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkImportMemoryWin32HandleInfoNV.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkImportMemoryWin32HandleInfoNV.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().
-
nhandleType
public static int nhandleType(long struct)
Unsafe version ofhandleType().
-
nhandle
public static long nhandle(long struct)
Unsafe version ofhandle().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nhandleType
public static void nhandleType(long struct, int value)Unsafe version ofhandleType.
-
nhandle
public static void nhandle(long struct, long value)Unsafe version ofhandle.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-