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 set.handlemust 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
Member documentation
sType– the type of this structure.pNext–NULLor a pointer to an extension-specific structure.handleType– 0 or aVkExternalMemoryHandleTypeFlagBitsNVvalue specifying the type of memory handle inhandle.handle– a WindowsHANDLEreferring to the memory.
Layout
struct VkImportMemoryWin32HandleInfoNV { VkStructureType sType; void const * pNext; VkExternalMemoryHandleTypeFlagsNV handleType; HANDLE handle; }
-
-
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 Modifier and Type Method Description static VkImportMemoryWin32HandleInfoNVcalloc()Returns a newVkImportMemoryWin32HandleInfoNVinstance allocated withmemCalloc.static VkImportMemoryWin32HandleInfoNV.Buffercalloc(int capacity)Returns a newVkImportMemoryWin32HandleInfoNV.Bufferinstance allocated withmemCalloc.static VkImportMemoryWin32HandleInfoNVcallocStack()Returns a newVkImportMemoryWin32HandleInfoNVinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkImportMemoryWin32HandleInfoNV.BuffercallocStack(int capacity)Returns a newVkImportMemoryWin32HandleInfoNV.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkImportMemoryWin32HandleInfoNV.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkImportMemoryWin32HandleInfoNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImportMemoryWin32HandleInfoNVcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkImportMemoryWin32HandleInfoNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.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()Returns the value of thehandlefield.VkImportMemoryWin32HandleInfoNVhandle(long value)Sets the specified value to thehandlefield.inthandleType()Returns the value of thehandleTypefield.VkImportMemoryWin32HandleInfoNVhandleType(int value)Sets the specified value to thehandleTypefield.static VkImportMemoryWin32HandleInfoNVmalloc()Returns a newVkImportMemoryWin32HandleInfoNVinstance allocated withmemAlloc.static VkImportMemoryWin32HandleInfoNV.Buffermalloc(int capacity)Returns a newVkImportMemoryWin32HandleInfoNV.Bufferinstance allocated withmemAlloc.static VkImportMemoryWin32HandleInfoNVmallocStack()Returns a newVkImportMemoryWin32HandleInfoNVinstance allocated on the thread-localMemoryStack.static VkImportMemoryWin32HandleInfoNV.BuffermallocStack(int capacity)Returns a newVkImportMemoryWin32HandleInfoNV.Bufferinstance allocated on the thread-localMemoryStack.static VkImportMemoryWin32HandleInfoNV.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkImportMemoryWin32HandleInfoNV.Bufferinstance allocated on the specifiedMemoryStack.static VkImportMemoryWin32HandleInfoNVmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkImportMemoryWin32HandleInfoNVinstance allocated on the specifiedMemoryStack.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()Returns the value of thepNextfield.VkImportMemoryWin32HandleInfoNVpNext(long value)Sets the specified value to thepNextfield.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()Returns the value of thesTypefield.VkImportMemoryWin32HandleInfoNVsType(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
-
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()
Returns the value of thesTypefield.
-
pNext
public long pNext()
Returns the value of thepNextfield.
-
handleType
public int handleType()
Returns the value of thehandleTypefield.
-
handle
public long handle()
Returns the value of thehandlefield.
-
sType
public VkImportMemoryWin32HandleInfoNV sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkImportMemoryWin32HandleInfoNV pNext(long value)
Sets the specified value to thepNextfield.
-
handleType
public VkImportMemoryWin32HandleInfoNV handleType(int value)
Sets the specified value to thehandleTypefield.
-
handle
public VkImportMemoryWin32HandleInfoNV handle(long value)
Sets the specified value to thehandlefield.
-
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
public static VkImportMemoryWin32HandleInfoNV mallocStack()
Returns a newVkImportMemoryWin32HandleInfoNVinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkImportMemoryWin32HandleInfoNV callocStack()
Returns a newVkImportMemoryWin32HandleInfoNVinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkImportMemoryWin32HandleInfoNV mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkImportMemoryWin32HandleInfoNVinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkImportMemoryWin32HandleInfoNV callocStack(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
-
mallocStack
public static VkImportMemoryWin32HandleInfoNV.Buffer mallocStack(int capacity)
Returns a newVkImportMemoryWin32HandleInfoNV.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkImportMemoryWin32HandleInfoNV.Buffer callocStack(int capacity)
Returns a newVkImportMemoryWin32HandleInfoNV.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkImportMemoryWin32HandleInfoNV.Buffer mallocStack(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
-
callocStack
public static VkImportMemoryWin32HandleInfoNV.Buffer callocStack(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
-
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
-
-