public class VkMemoryFdPropertiesKHR
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
sType must be STRUCTURE_TYPE_MEMORY_FD_PROPERTIES_KHRpNext must be NULLsType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.memoryTypeBits – a bitmask containing one bit set for every memory type which the specified file descriptor can be imported as.
struct VkMemoryFdPropertiesKHR {
VkStructureType sType;
void * pNext;
uint32_t memoryTypeBits;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkMemoryFdPropertiesKHR.Buffer
An array of
VkMemoryFdPropertiesKHR structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
MEMORYTYPEBITS
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkMemoryFdPropertiesKHR(java.nio.ByteBuffer container)
Creates a
VkMemoryFdPropertiesKHR instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkMemoryFdPropertiesKHR |
calloc()
Returns a new
VkMemoryFdPropertiesKHR instance allocated with memCalloc. |
static VkMemoryFdPropertiesKHR.Buffer |
calloc(int capacity)
Returns a new
VkMemoryFdPropertiesKHR.Buffer instance allocated with memCalloc. |
static VkMemoryFdPropertiesKHR |
callocStack()
Returns a new
VkMemoryFdPropertiesKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkMemoryFdPropertiesKHR.Buffer |
callocStack(int capacity)
Returns a new
VkMemoryFdPropertiesKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkMemoryFdPropertiesKHR.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkMemoryFdPropertiesKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkMemoryFdPropertiesKHR |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkMemoryFdPropertiesKHR instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkMemoryFdPropertiesKHR |
create()
Returns a new
VkMemoryFdPropertiesKHR instance allocated with BufferUtils. |
static VkMemoryFdPropertiesKHR.Buffer |
create(int capacity)
Returns a new
VkMemoryFdPropertiesKHR.Buffer instance allocated with BufferUtils. |
static VkMemoryFdPropertiesKHR |
create(long address)
Returns a new
VkMemoryFdPropertiesKHR instance for the specified memory address. |
static VkMemoryFdPropertiesKHR.Buffer |
create(long address,
int capacity)
Create a
VkMemoryFdPropertiesKHR.Buffer instance at the specified memory. |
static VkMemoryFdPropertiesKHR |
createSafe(long address)
|
static VkMemoryFdPropertiesKHR.Buffer |
createSafe(long address,
int capacity)
|
static VkMemoryFdPropertiesKHR |
malloc()
Returns a new
VkMemoryFdPropertiesKHR instance allocated with memAlloc. |
static VkMemoryFdPropertiesKHR.Buffer |
malloc(int capacity)
Returns a new
VkMemoryFdPropertiesKHR.Buffer instance allocated with memAlloc. |
static VkMemoryFdPropertiesKHR |
mallocStack()
Returns a new
VkMemoryFdPropertiesKHR instance allocated on the thread-local MemoryStack. |
static VkMemoryFdPropertiesKHR.Buffer |
mallocStack(int capacity)
Returns a new
VkMemoryFdPropertiesKHR.Buffer instance allocated on the thread-local MemoryStack. |
static VkMemoryFdPropertiesKHR.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkMemoryFdPropertiesKHR.Buffer instance allocated on the specified MemoryStack. |
static VkMemoryFdPropertiesKHR |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkMemoryFdPropertiesKHR instance allocated on the specified MemoryStack. |
int |
memoryTypeBits()
Returns the value of the
memoryTypeBits field. |
static int |
nmemoryTypeBits(long struct)
Unsafe version of
memoryTypeBits(). |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
long |
pNext()
Returns the value of the
pNext field. |
VkMemoryFdPropertiesKHR |
pNext(long value)
Sets the specified value to the
pNext field. |
VkMemoryFdPropertiesKHR |
set(int sType,
long pNext)
Initializes this struct with the specified values.
|
VkMemoryFdPropertiesKHR |
set(VkMemoryFdPropertiesKHR src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkMemoryFdPropertiesKHR |
sType(int value)
Sets the specified value to the
sType field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STYPE
public static final int PNEXT
public static final int MEMORYTYPEBITS
public VkMemoryFdPropertiesKHR(java.nio.ByteBuffer container)
VkMemoryFdPropertiesKHR instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int sType()
sType field.public long pNext()
pNext field.public int memoryTypeBits()
memoryTypeBits field.public VkMemoryFdPropertiesKHR sType(int value)
sType field.public VkMemoryFdPropertiesKHR pNext(long value)
pNext field.public VkMemoryFdPropertiesKHR set(int sType, long pNext)
public VkMemoryFdPropertiesKHR set(VkMemoryFdPropertiesKHR src)
src - the source structpublic static VkMemoryFdPropertiesKHR malloc()
VkMemoryFdPropertiesKHR instance allocated with memAlloc. The instance must be explicitly freed.public static VkMemoryFdPropertiesKHR calloc()
VkMemoryFdPropertiesKHR instance allocated with memCalloc. The instance must be explicitly freed.public static VkMemoryFdPropertiesKHR create()
VkMemoryFdPropertiesKHR instance allocated with BufferUtils.public static VkMemoryFdPropertiesKHR create(long address)
VkMemoryFdPropertiesKHR instance for the specified memory address.@Nullable public static VkMemoryFdPropertiesKHR createSafe(long address)
public static VkMemoryFdPropertiesKHR.Buffer malloc(int capacity)
VkMemoryFdPropertiesKHR.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkMemoryFdPropertiesKHR.Buffer calloc(int capacity)
VkMemoryFdPropertiesKHR.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkMemoryFdPropertiesKHR.Buffer create(int capacity)
VkMemoryFdPropertiesKHR.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkMemoryFdPropertiesKHR.Buffer create(long address, int capacity)
VkMemoryFdPropertiesKHR.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkMemoryFdPropertiesKHR.Buffer createSafe(long address, int capacity)
public static VkMemoryFdPropertiesKHR mallocStack()
VkMemoryFdPropertiesKHR instance allocated on the thread-local MemoryStack.public static VkMemoryFdPropertiesKHR callocStack()
VkMemoryFdPropertiesKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkMemoryFdPropertiesKHR mallocStack(org.lwjgl.system.MemoryStack stack)
VkMemoryFdPropertiesKHR instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkMemoryFdPropertiesKHR callocStack(org.lwjgl.system.MemoryStack stack)
VkMemoryFdPropertiesKHR instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkMemoryFdPropertiesKHR.Buffer mallocStack(int capacity)
VkMemoryFdPropertiesKHR.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkMemoryFdPropertiesKHR.Buffer callocStack(int capacity)
VkMemoryFdPropertiesKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkMemoryFdPropertiesKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkMemoryFdPropertiesKHR.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkMemoryFdPropertiesKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkMemoryFdPropertiesKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nsType(long struct)
sType().public static long npNext(long struct)
pNext().public static int nmemoryTypeBits(long struct)
memoryTypeBits().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.Copyright LWJGL. All Rights Reserved. License terms.