Package org.lwjgl.vulkan
Class VkPhysicalDeviceExternalMemoryRDMAFeaturesNV
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceExternalMemoryRDMAFeaturesNV
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkPhysicalDeviceExternalMemoryRDMAFeaturesNV extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure describing the external memory RDMA features supported by the implementation.Description
If the
VkPhysicalDeviceExternalMemoryRDMAFeaturesNVstructure is included in thepNextchain of theVkPhysicalDeviceFeatures2structure passed toGetPhysicalDeviceFeatures2, it is filled in to indicate whether each corresponding feature is supported.VkPhysicalDeviceExternalMemoryRDMAFeaturesNVcan also be used in thepNextchain ofVkDeviceCreateInfoto selectively enable these features.Valid Usage (Implicit)
Layout
struct VkPhysicalDeviceExternalMemoryRDMAFeaturesNV { VkStructureTypesType(); void *pNext(); VkBool32externalMemoryRDMA(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceExternalMemoryRDMAFeaturesNV.BufferAn array ofVkPhysicalDeviceExternalMemoryRDMAFeaturesNVstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intEXTERNALMEMORYRDMA
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceExternalMemoryRDMAFeaturesNV(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceExternalMemoryRDMAFeaturesNVinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDeviceExternalMemoryRDMAFeaturesNVcalloc()Returns a newVkPhysicalDeviceExternalMemoryRDMAFeaturesNVinstance allocated withmemCalloc.static VkPhysicalDeviceExternalMemoryRDMAFeaturesNV.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceExternalMemoryRDMAFeaturesNV.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceExternalMemoryRDMAFeaturesNV.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceExternalMemoryRDMAFeaturesNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceExternalMemoryRDMAFeaturesNVcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceExternalMemoryRDMAFeaturesNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceExternalMemoryRDMAFeaturesNVcreate()Returns a newVkPhysicalDeviceExternalMemoryRDMAFeaturesNVinstance allocated withBufferUtils.static VkPhysicalDeviceExternalMemoryRDMAFeaturesNV.Buffercreate(int capacity)Returns a newVkPhysicalDeviceExternalMemoryRDMAFeaturesNV.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceExternalMemoryRDMAFeaturesNVcreate(long address)Returns a newVkPhysicalDeviceExternalMemoryRDMAFeaturesNVinstance for the specified memory address.static VkPhysicalDeviceExternalMemoryRDMAFeaturesNV.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceExternalMemoryRDMAFeaturesNV.Bufferinstance at the specified memory.static VkPhysicalDeviceExternalMemoryRDMAFeaturesNVcreateSafe(long address)static VkPhysicalDeviceExternalMemoryRDMAFeaturesNV.BuffercreateSafe(long address, int capacity)booleanexternalMemoryRDMA()indicates whether the implementation has support for theMEMORY_PROPERTY_RDMA_CAPABLE_BIT_NVmemory property and theEXTERNAL_MEMORY_HANDLE_TYPE_RDMA_ADDRESS_BIT_NVexternal memory handle type.VkPhysicalDeviceExternalMemoryRDMAFeaturesNVexternalMemoryRDMA(boolean value)Sets the specified value to theexternalMemoryRDMA()field.static VkPhysicalDeviceExternalMemoryRDMAFeaturesNVmalloc()Returns a newVkPhysicalDeviceExternalMemoryRDMAFeaturesNVinstance allocated withmemAlloc.static VkPhysicalDeviceExternalMemoryRDMAFeaturesNV.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceExternalMemoryRDMAFeaturesNV.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceExternalMemoryRDMAFeaturesNV.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceExternalMemoryRDMAFeaturesNV.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceExternalMemoryRDMAFeaturesNVmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceExternalMemoryRDMAFeaturesNVinstance allocated on the specifiedMemoryStack.static intnexternalMemoryRDMA(long struct)Unsafe version ofexternalMemoryRDMA().static voidnexternalMemoryRDMA(long struct, int value)Unsafe version ofexternalMemoryRDMA.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.VkPhysicalDeviceExternalMemoryRDMAFeaturesNVpNext(long value)Sets the specified value to thepNext()field.VkPhysicalDeviceExternalMemoryRDMAFeaturesNVset(int sType, long pNext, boolean externalMemoryRDMA)Initializes this struct with the specified values.VkPhysicalDeviceExternalMemoryRDMAFeaturesNVset(VkPhysicalDeviceExternalMemoryRDMAFeaturesNV src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkPhysicalDeviceExternalMemoryRDMAFeaturesNVsType(int value)Sets the specified value to thesType()field.VkPhysicalDeviceExternalMemoryRDMAFeaturesNVsType$Default()Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_MEMORY_RDMA_FEATURES_NVvalue to thesType()field.
-
-
-
Constructor Detail
-
VkPhysicalDeviceExternalMemoryRDMAFeaturesNV
public VkPhysicalDeviceExternalMemoryRDMAFeaturesNV(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceExternalMemoryRDMAFeaturesNVinstance 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.
-
externalMemoryRDMA
public boolean externalMemoryRDMA()
indicates whether the implementation has support for theMEMORY_PROPERTY_RDMA_CAPABLE_BIT_NVmemory property and theEXTERNAL_MEMORY_HANDLE_TYPE_RDMA_ADDRESS_BIT_NVexternal memory handle type.
-
sType
public VkPhysicalDeviceExternalMemoryRDMAFeaturesNV sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPhysicalDeviceExternalMemoryRDMAFeaturesNV sType$Default()
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_MEMORY_RDMA_FEATURES_NVvalue to thesType()field.
-
pNext
public VkPhysicalDeviceExternalMemoryRDMAFeaturesNV pNext(long value)
Sets the specified value to thepNext()field.
-
externalMemoryRDMA
public VkPhysicalDeviceExternalMemoryRDMAFeaturesNV externalMemoryRDMA(boolean value)
Sets the specified value to theexternalMemoryRDMA()field.
-
set
public VkPhysicalDeviceExternalMemoryRDMAFeaturesNV set(int sType, long pNext, boolean externalMemoryRDMA)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceExternalMemoryRDMAFeaturesNV set(VkPhysicalDeviceExternalMemoryRDMAFeaturesNV src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceExternalMemoryRDMAFeaturesNV malloc()
Returns a newVkPhysicalDeviceExternalMemoryRDMAFeaturesNVinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceExternalMemoryRDMAFeaturesNV calloc()
Returns a newVkPhysicalDeviceExternalMemoryRDMAFeaturesNVinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceExternalMemoryRDMAFeaturesNV create()
Returns a newVkPhysicalDeviceExternalMemoryRDMAFeaturesNVinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceExternalMemoryRDMAFeaturesNV create(long address)
Returns a newVkPhysicalDeviceExternalMemoryRDMAFeaturesNVinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceExternalMemoryRDMAFeaturesNV createSafe(long address)
-
malloc
public static VkPhysicalDeviceExternalMemoryRDMAFeaturesNV.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceExternalMemoryRDMAFeaturesNV.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceExternalMemoryRDMAFeaturesNV.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceExternalMemoryRDMAFeaturesNV.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceExternalMemoryRDMAFeaturesNV.Buffer create(int capacity)
Returns a newVkPhysicalDeviceExternalMemoryRDMAFeaturesNV.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceExternalMemoryRDMAFeaturesNV.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceExternalMemoryRDMAFeaturesNV.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceExternalMemoryRDMAFeaturesNV.Buffer createSafe(long address, int capacity)
-
malloc
public static VkPhysicalDeviceExternalMemoryRDMAFeaturesNV malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceExternalMemoryRDMAFeaturesNVinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPhysicalDeviceExternalMemoryRDMAFeaturesNV calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceExternalMemoryRDMAFeaturesNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPhysicalDeviceExternalMemoryRDMAFeaturesNV.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceExternalMemoryRDMAFeaturesNV.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceExternalMemoryRDMAFeaturesNV.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceExternalMemoryRDMAFeaturesNV.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().
-
nexternalMemoryRDMA
public static int nexternalMemoryRDMA(long struct)
Unsafe version ofexternalMemoryRDMA().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nexternalMemoryRDMA
public static void nexternalMemoryRDMA(long struct, int value)Unsafe version ofexternalMemoryRDMA.
-
-