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.NativeResource
import Win32 memory created on the same physical device.Description
If
handleType
is 0, this structure is ignored by consumers of theVkMemoryAllocateInfo
structure it is chained from.Valid Usage
handleType
must not have more than one bit set.handle
must be a valid handle to memory, obtained as specified byhandleType
.
Valid Usage (Implicit)
sType
must beSTRUCTURE_TYPE_IMPORT_MEMORY_WIN32_HANDLE_INFO_NV
handleType
must be a valid combination ofVkExternalMemoryHandleTypeFlagBitsNV
values
Member documentation
sType
– the type of this structure.pNext
–NULL
or a pointer to an extension-specific structure.handleType
– 0 or aVkExternalMemoryHandleTypeFlagBitsNV
value specifying the type of memory handle inhandle
.handle
– a WindowsHANDLE
referring 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 class
VkImportMemoryWin32HandleInfoNV.Buffer
An array ofVkImportMemoryWin32HandleInfoNV
structs.
-
Constructor Summary
Constructors Constructor Description VkImportMemoryWin32HandleInfoNV(java.nio.ByteBuffer container)
Creates aVkImportMemoryWin32HandleInfoNV
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkImportMemoryWin32HandleInfoNV
calloc()
Returns a newVkImportMemoryWin32HandleInfoNV
instance allocated withmemCalloc
.static VkImportMemoryWin32HandleInfoNV.Buffer
calloc(int capacity)
Returns a newVkImportMemoryWin32HandleInfoNV.Buffer
instance allocated withmemCalloc
.static VkImportMemoryWin32HandleInfoNV
callocStack()
Returns a newVkImportMemoryWin32HandleInfoNV
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkImportMemoryWin32HandleInfoNV.Buffer
callocStack(int capacity)
Returns a newVkImportMemoryWin32HandleInfoNV.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkImportMemoryWin32HandleInfoNV.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkImportMemoryWin32HandleInfoNV.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkImportMemoryWin32HandleInfoNV
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkImportMemoryWin32HandleInfoNV
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkImportMemoryWin32HandleInfoNV
create()
Returns a newVkImportMemoryWin32HandleInfoNV
instance allocated withBufferUtils
.static VkImportMemoryWin32HandleInfoNV.Buffer
create(int capacity)
Returns a newVkImportMemoryWin32HandleInfoNV.Buffer
instance allocated withBufferUtils
.static VkImportMemoryWin32HandleInfoNV
create(long address)
Returns a newVkImportMemoryWin32HandleInfoNV
instance for the specified memory address.static VkImportMemoryWin32HandleInfoNV.Buffer
create(long address, int capacity)
Create aVkImportMemoryWin32HandleInfoNV.Buffer
instance at the specified memory.static VkImportMemoryWin32HandleInfoNV
createSafe(long address)
static VkImportMemoryWin32HandleInfoNV.Buffer
createSafe(long address, int capacity)
long
handle()
Returns the value of thehandle
field.VkImportMemoryWin32HandleInfoNV
handle(long value)
Sets the specified value to thehandle
field.int
handleType()
Returns the value of thehandleType
field.VkImportMemoryWin32HandleInfoNV
handleType(int value)
Sets the specified value to thehandleType
field.static VkImportMemoryWin32HandleInfoNV
malloc()
Returns a newVkImportMemoryWin32HandleInfoNV
instance allocated withmemAlloc
.static VkImportMemoryWin32HandleInfoNV.Buffer
malloc(int capacity)
Returns a newVkImportMemoryWin32HandleInfoNV.Buffer
instance allocated withmemAlloc
.static VkImportMemoryWin32HandleInfoNV
mallocStack()
Returns a newVkImportMemoryWin32HandleInfoNV
instance allocated on the thread-localMemoryStack
.static VkImportMemoryWin32HandleInfoNV.Buffer
mallocStack(int capacity)
Returns a newVkImportMemoryWin32HandleInfoNV.Buffer
instance allocated on the thread-localMemoryStack
.static VkImportMemoryWin32HandleInfoNV.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkImportMemoryWin32HandleInfoNV.Buffer
instance allocated on the specifiedMemoryStack
.static VkImportMemoryWin32HandleInfoNV
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkImportMemoryWin32HandleInfoNV
instance allocated on the specifiedMemoryStack
.static long
nhandle(long struct)
Unsafe version ofhandle()
.static void
nhandle(long struct, long value)
Unsafe version ofhandle
.static int
nhandleType(long struct)
Unsafe version ofhandleType()
.static void
nhandleType(long struct, int value)
Unsafe version ofhandleType
.static long
npNext(long struct)
Unsafe version ofpNext()
.static void
npNext(long struct, long value)
Unsafe version ofpNext
.static int
nsType(long struct)
Unsafe version ofsType()
.static void
nsType(long struct, int value)
Unsafe version ofsType
.long
pNext()
Returns the value of thepNext
field.VkImportMemoryWin32HandleInfoNV
pNext(long value)
Sets the specified value to thepNext
field.VkImportMemoryWin32HandleInfoNV
set(int sType, long pNext, int handleType, long handle)
Initializes this struct with the specified values.VkImportMemoryWin32HandleInfoNV
set(VkImportMemoryWin32HandleInfoNV src)
Copies the specified struct data to this struct.int
sizeof()
int
sType()
Returns the value of thesType
field.VkImportMemoryWin32HandleInfoNV
sType(int value)
Sets the specified value to thesType
field.static void
validate(long struct)
Validates pointer members that should not beNULL
.static void
validate(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 aVkImportMemoryWin32HandleInfoNV
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
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
sType
public int sType()
Returns the value of thesType
field.
-
pNext
public long pNext()
Returns the value of thepNext
field.
-
handleType
public int handleType()
Returns the value of thehandleType
field.
-
handle
public long handle()
Returns the value of thehandle
field.
-
sType
public VkImportMemoryWin32HandleInfoNV sType(int value)
Sets the specified value 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 newVkImportMemoryWin32HandleInfoNV
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkImportMemoryWin32HandleInfoNV calloc()
Returns a newVkImportMemoryWin32HandleInfoNV
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkImportMemoryWin32HandleInfoNV create()
Returns a newVkImportMemoryWin32HandleInfoNV
instance allocated withBufferUtils
.
-
create
public static VkImportMemoryWin32HandleInfoNV create(long address)
Returns a newVkImportMemoryWin32HandleInfoNV
instance for the specified memory address.
-
createSafe
@Nullable public static VkImportMemoryWin32HandleInfoNV createSafe(long address)
-
malloc
public static VkImportMemoryWin32HandleInfoNV.Buffer malloc(int capacity)
Returns a newVkImportMemoryWin32HandleInfoNV.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkImportMemoryWin32HandleInfoNV.Buffer calloc(int capacity)
Returns a newVkImportMemoryWin32HandleInfoNV.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkImportMemoryWin32HandleInfoNV.Buffer create(int capacity)
Returns a newVkImportMemoryWin32HandleInfoNV.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkImportMemoryWin32HandleInfoNV.Buffer create(long address, int capacity)
Create aVkImportMemoryWin32HandleInfoNV.Buffer
instance 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 newVkImportMemoryWin32HandleInfoNV
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkImportMemoryWin32HandleInfoNV callocStack()
Returns a newVkImportMemoryWin32HandleInfoNV
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkImportMemoryWin32HandleInfoNV mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkImportMemoryWin32HandleInfoNV
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkImportMemoryWin32HandleInfoNV callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkImportMemoryWin32HandleInfoNV
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkImportMemoryWin32HandleInfoNV.Buffer callocStack(int capacity)
Returns a newVkImportMemoryWin32HandleInfoNV.Buffer
instance allocated on the thread-localMemoryStack
and 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.Buffer
instance 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.Buffer
instance allocated on the specifiedMemoryStack
and 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
-
-