Package org.lwjgl.vulkan
Class VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure describing whether the implementation supports pageable device-local memory.Description
If the
VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXTstructure is included in thepNextchain of theVkPhysicalDeviceFeatures2structure passed toGetPhysicalDeviceFeatures2, it is filled in to indicate whether each corresponding feature is supported.VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXTcan also be used in thepNextchain ofVkDeviceCreateInfoto selectively enable these features.Valid Usage (Implicit)
Layout
struct VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT { VkStructureTypesType(); void *pNext(); VkBool32pageableDeviceLocalMemory(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT.BufferAn array ofVkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXTstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intPAGEABLEDEVICELOCALMEMORY
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT(java.nio.ByteBuffer container)Creates aVkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXTcalloc()Returns a newVkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXTinstance allocated withmemCalloc.static VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT.Buffercalloc(int capacity)Returns a newVkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT.Bufferinstance allocated withmemCalloc.static VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXTcreate()Returns a newVkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXTinstance allocated withBufferUtils.static VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT.Buffercreate(int capacity)Returns a newVkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT.Bufferinstance allocated withBufferUtils.static VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXTcreate(long address)Returns a newVkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXTinstance for the specified memory address.static VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT.Buffercreate(long address, int capacity)Create aVkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT.Bufferinstance at the specified memory.static VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXTcreateSafe(long address)static VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT.BuffercreateSafe(long address, int capacity)static VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXTmalloc()Returns a newVkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXTinstance allocated withmemAlloc.static VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT.Buffermalloc(int capacity)Returns a newVkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT.Bufferinstance allocated withmemAlloc.static VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXTinstance allocated on the specifiedMemoryStack.static intnpageableDeviceLocalMemory(long struct)Unsafe version ofpageableDeviceLocalMemory().static voidnpageableDeviceLocalMemory(long struct, int value)Unsafe version ofpageableDeviceLocalMemory.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.booleanpageableDeviceLocalMemory()indicates that the implementation supports pageable device-local memory and may transparently move device-local memory allocations to host-local memory to better share device-local memory with other applications.VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXTpageableDeviceLocalMemory(boolean value)Sets the specified value to thepageableDeviceLocalMemory()field.longpNext()NULLor a pointer to a structure extending this structure.VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXTpNext(long value)Sets the specified value to thepNext()field.VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXTset(int sType, long pNext, boolean pageableDeviceLocalMemory)Initializes this struct with the specified values.VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXTset(VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXTsType(int value)Sets the specified value to thesType()field.VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXTsType$Default()Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_PAGEABLE_DEVICE_LOCAL_MEMORY_FEATURES_EXTvalue to thesType()field.
-
-
-
Constructor Detail
-
VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT
public VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT(java.nio.ByteBuffer container)
Creates aVkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXTinstance 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.
-
pageableDeviceLocalMemory
public boolean pageableDeviceLocalMemory()
indicates that the implementation supports pageable device-local memory and may transparently move device-local memory allocations to host-local memory to better share device-local memory with other applications.
-
sType
public VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT sType$Default()
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_PAGEABLE_DEVICE_LOCAL_MEMORY_FEATURES_EXTvalue to thesType()field.
-
pNext
public VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT pNext(long value)
Sets the specified value to thepNext()field.
-
pageableDeviceLocalMemory
public VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT pageableDeviceLocalMemory(boolean value)
Sets the specified value to thepageableDeviceLocalMemory()field.
-
set
public VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT set(int sType, long pNext, boolean pageableDeviceLocalMemory)
Initializes this struct with the specified values.
-
set
public VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT set(VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT malloc()
Returns a newVkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT calloc()
Returns a newVkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT create()
Returns a newVkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXTinstance allocated withBufferUtils.
-
create
public static VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT create(long address)
Returns a newVkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXTinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT createSafe(long address)
-
malloc
public static VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT.Buffer malloc(int capacity)
Returns a newVkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT.Buffer calloc(int capacity)
Returns a newVkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT.Buffer create(int capacity)
Returns a newVkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT.Buffer create(long address, int capacity)
Create aVkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT.Buffer createSafe(long address, int capacity)
-
malloc
public static VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT.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().
-
npageableDeviceLocalMemory
public static int npageableDeviceLocalMemory(long struct)
Unsafe version ofpageableDeviceLocalMemory().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
npageableDeviceLocalMemory
public static void npageableDeviceLocalMemory(long struct, int value)Unsafe version ofpageableDeviceLocalMemory.
-
-