Package org.lwjgl.vulkan
Class VkPhysicalDeviceCoherentMemoryFeaturesAMD
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceCoherentMemoryFeaturesAMD
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkPhysicalDeviceCoherentMemoryFeaturesAMD extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure describing whether device coherent memory can be supported by an implementation.Description
If the
VkPhysicalDeviceCoherentMemoryFeaturesAMDstructure is included in thepNextchain of theVkPhysicalDeviceFeatures2structure passed toGetPhysicalDeviceFeatures2, it is filled in to indicate whether each corresponding feature is supported.VkPhysicalDeviceCoherentMemoryFeaturesAMDcan also be used in thepNextchain ofVkDeviceCreateInfoto selectively enable these features.Valid Usage (Implicit)
Layout
struct VkPhysicalDeviceCoherentMemoryFeaturesAMD { VkStructureTypesType(); void *pNext(); VkBool32deviceCoherentMemory(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceCoherentMemoryFeaturesAMD.BufferAn array ofVkPhysicalDeviceCoherentMemoryFeaturesAMDstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intDEVICECOHERENTMEMORY
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceCoherentMemoryFeaturesAMD(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceCoherentMemoryFeaturesAMDinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static VkPhysicalDeviceCoherentMemoryFeaturesAMDcalloc()Returns a newVkPhysicalDeviceCoherentMemoryFeaturesAMDinstance allocated withmemCalloc.static VkPhysicalDeviceCoherentMemoryFeaturesAMD.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceCoherentMemoryFeaturesAMD.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceCoherentMemoryFeaturesAMD.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceCoherentMemoryFeaturesAMD.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceCoherentMemoryFeaturesAMDcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceCoherentMemoryFeaturesAMDinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceCoherentMemoryFeaturesAMDcallocStack()Deprecated.static VkPhysicalDeviceCoherentMemoryFeaturesAMD.BuffercallocStack(int capacity)Deprecated.static VkPhysicalDeviceCoherentMemoryFeaturesAMD.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkPhysicalDeviceCoherentMemoryFeaturesAMDcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static VkPhysicalDeviceCoherentMemoryFeaturesAMDcreate()Returns a newVkPhysicalDeviceCoherentMemoryFeaturesAMDinstance allocated withBufferUtils.static VkPhysicalDeviceCoherentMemoryFeaturesAMD.Buffercreate(int capacity)Returns a newVkPhysicalDeviceCoherentMemoryFeaturesAMD.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceCoherentMemoryFeaturesAMDcreate(long address)Returns a newVkPhysicalDeviceCoherentMemoryFeaturesAMDinstance for the specified memory address.static VkPhysicalDeviceCoherentMemoryFeaturesAMD.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceCoherentMemoryFeaturesAMD.Bufferinstance at the specified memory.static VkPhysicalDeviceCoherentMemoryFeaturesAMDcreateSafe(long address)static VkPhysicalDeviceCoherentMemoryFeaturesAMD.BuffercreateSafe(long address, int capacity)booleandeviceCoherentMemory()indicates that the implementation supports device coherent memory (VkMemoryPropertyFlagBits).VkPhysicalDeviceCoherentMemoryFeaturesAMDdeviceCoherentMemory(boolean value)Sets the specified value to thedeviceCoherentMemory()field.static VkPhysicalDeviceCoherentMemoryFeaturesAMDmalloc()Returns a newVkPhysicalDeviceCoherentMemoryFeaturesAMDinstance allocated withmemAlloc.static VkPhysicalDeviceCoherentMemoryFeaturesAMD.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceCoherentMemoryFeaturesAMD.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceCoherentMemoryFeaturesAMD.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceCoherentMemoryFeaturesAMD.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceCoherentMemoryFeaturesAMDmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceCoherentMemoryFeaturesAMDinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceCoherentMemoryFeaturesAMDmallocStack()Deprecated.static VkPhysicalDeviceCoherentMemoryFeaturesAMD.BuffermallocStack(int capacity)Deprecated.static VkPhysicalDeviceCoherentMemoryFeaturesAMD.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkPhysicalDeviceCoherentMemoryFeaturesAMDmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static intndeviceCoherentMemory(long struct)Unsafe version ofdeviceCoherentMemory().static voidndeviceCoherentMemory(long struct, int value)Unsafe version ofdeviceCoherentMemory.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.VkPhysicalDeviceCoherentMemoryFeaturesAMDpNext(long value)Sets the specified value to thepNext()field.VkPhysicalDeviceCoherentMemoryFeaturesAMDset(int sType, long pNext, boolean deviceCoherentMemory)Initializes this struct with the specified values.VkPhysicalDeviceCoherentMemoryFeaturesAMDset(VkPhysicalDeviceCoherentMemoryFeaturesAMD src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkPhysicalDeviceCoherentMemoryFeaturesAMDsType(int value)Sets the specified value to thesType()field.VkPhysicalDeviceCoherentMemoryFeaturesAMDsType$Default()Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_COHERENT_MEMORY_FEATURES_AMDvalue to thesType()field.
-
-
-
Constructor Detail
-
VkPhysicalDeviceCoherentMemoryFeaturesAMD
public VkPhysicalDeviceCoherentMemoryFeaturesAMD(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceCoherentMemoryFeaturesAMDinstance 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.
-
deviceCoherentMemory
public boolean deviceCoherentMemory()
indicates that the implementation supports device coherent memory (VkMemoryPropertyFlagBits).
-
sType
public VkPhysicalDeviceCoherentMemoryFeaturesAMD sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPhysicalDeviceCoherentMemoryFeaturesAMD sType$Default()
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_COHERENT_MEMORY_FEATURES_AMDvalue to thesType()field.
-
pNext
public VkPhysicalDeviceCoherentMemoryFeaturesAMD pNext(long value)
Sets the specified value to thepNext()field.
-
deviceCoherentMemory
public VkPhysicalDeviceCoherentMemoryFeaturesAMD deviceCoherentMemory(boolean value)
Sets the specified value to thedeviceCoherentMemory()field.
-
set
public VkPhysicalDeviceCoherentMemoryFeaturesAMD set(int sType, long pNext, boolean deviceCoherentMemory)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceCoherentMemoryFeaturesAMD set(VkPhysicalDeviceCoherentMemoryFeaturesAMD src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceCoherentMemoryFeaturesAMD malloc()
Returns a newVkPhysicalDeviceCoherentMemoryFeaturesAMDinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceCoherentMemoryFeaturesAMD calloc()
Returns a newVkPhysicalDeviceCoherentMemoryFeaturesAMDinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceCoherentMemoryFeaturesAMD create()
Returns a newVkPhysicalDeviceCoherentMemoryFeaturesAMDinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceCoherentMemoryFeaturesAMD create(long address)
Returns a newVkPhysicalDeviceCoherentMemoryFeaturesAMDinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceCoherentMemoryFeaturesAMD createSafe(long address)
-
malloc
public static VkPhysicalDeviceCoherentMemoryFeaturesAMD.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceCoherentMemoryFeaturesAMD.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceCoherentMemoryFeaturesAMD.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceCoherentMemoryFeaturesAMD.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceCoherentMemoryFeaturesAMD.Buffer create(int capacity)
Returns a newVkPhysicalDeviceCoherentMemoryFeaturesAMD.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceCoherentMemoryFeaturesAMD.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceCoherentMemoryFeaturesAMD.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceCoherentMemoryFeaturesAMD.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static VkPhysicalDeviceCoherentMemoryFeaturesAMD mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkPhysicalDeviceCoherentMemoryFeaturesAMD callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPhysicalDeviceCoherentMemoryFeaturesAMD mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkPhysicalDeviceCoherentMemoryFeaturesAMD callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPhysicalDeviceCoherentMemoryFeaturesAMD.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkPhysicalDeviceCoherentMemoryFeaturesAMD.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPhysicalDeviceCoherentMemoryFeaturesAMD.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkPhysicalDeviceCoherentMemoryFeaturesAMD.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkPhysicalDeviceCoherentMemoryFeaturesAMD malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceCoherentMemoryFeaturesAMDinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPhysicalDeviceCoherentMemoryFeaturesAMD calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceCoherentMemoryFeaturesAMDinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPhysicalDeviceCoherentMemoryFeaturesAMD.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceCoherentMemoryFeaturesAMD.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceCoherentMemoryFeaturesAMD.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceCoherentMemoryFeaturesAMD.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().
-
ndeviceCoherentMemory
public static int ndeviceCoherentMemory(long struct)
Unsafe version ofdeviceCoherentMemory().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
ndeviceCoherentMemory
public static void ndeviceCoherentMemory(long struct, int value)Unsafe version ofdeviceCoherentMemory.
-
-