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.Valid Usage (Implicit)
Member documentation
deviceCoherentMemory– indicates that the implementation supports device coherent memory.
Layout
struct VkPhysicalDeviceCoherentMemoryFeaturesAMD { VkStructureType sType; void * pNext; VkBool32 deviceCoherentMemory; }
-
-
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 Modifier and Type Method Description static VkPhysicalDeviceCoherentMemoryFeaturesAMDcalloc()Returns a newVkPhysicalDeviceCoherentMemoryFeaturesAMDinstance allocated withmemCalloc.static VkPhysicalDeviceCoherentMemoryFeaturesAMD.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceCoherentMemoryFeaturesAMD.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceCoherentMemoryFeaturesAMDcallocStack()Returns a newVkPhysicalDeviceCoherentMemoryFeaturesAMDinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceCoherentMemoryFeaturesAMD.BuffercallocStack(int capacity)Returns a newVkPhysicalDeviceCoherentMemoryFeaturesAMD.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceCoherentMemoryFeaturesAMD.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceCoherentMemoryFeaturesAMD.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceCoherentMemoryFeaturesAMDcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceCoherentMemoryFeaturesAMDinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.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()Returns the value of thedeviceCoherentMemoryfield.VkPhysicalDeviceCoherentMemoryFeaturesAMDdeviceCoherentMemory(boolean value)Sets the specified value to thedeviceCoherentMemoryfield.static VkPhysicalDeviceCoherentMemoryFeaturesAMDmalloc()Returns a newVkPhysicalDeviceCoherentMemoryFeaturesAMDinstance allocated withmemAlloc.static VkPhysicalDeviceCoherentMemoryFeaturesAMD.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceCoherentMemoryFeaturesAMD.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceCoherentMemoryFeaturesAMDmallocStack()Returns a newVkPhysicalDeviceCoherentMemoryFeaturesAMDinstance allocated on the thread-localMemoryStack.static VkPhysicalDeviceCoherentMemoryFeaturesAMD.BuffermallocStack(int capacity)Returns a newVkPhysicalDeviceCoherentMemoryFeaturesAMD.Bufferinstance allocated on the thread-localMemoryStack.static VkPhysicalDeviceCoherentMemoryFeaturesAMD.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceCoherentMemoryFeaturesAMD.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceCoherentMemoryFeaturesAMDmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceCoherentMemoryFeaturesAMDinstance allocated on the specifiedMemoryStack.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()Returns the value of thepNextfield.VkPhysicalDeviceCoherentMemoryFeaturesAMDpNext(long value)Sets the specified value to thepNextfield.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()Returns the value of thesTypefield.VkPhysicalDeviceCoherentMemoryFeaturesAMDsType(int value)Sets the specified value to thesTypefield.
-
-
-
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()
Returns the value of thesTypefield.
-
pNext
public long pNext()
Returns the value of thepNextfield.
-
deviceCoherentMemory
public boolean deviceCoherentMemory()
Returns the value of thedeviceCoherentMemoryfield.
-
sType
public VkPhysicalDeviceCoherentMemoryFeaturesAMD sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkPhysicalDeviceCoherentMemoryFeaturesAMD pNext(long value)
Sets the specified value to thepNextfield.
-
deviceCoherentMemory
public VkPhysicalDeviceCoherentMemoryFeaturesAMD deviceCoherentMemory(boolean value)
Sets the specified value to thedeviceCoherentMemoryfield.
-
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
public static VkPhysicalDeviceCoherentMemoryFeaturesAMD mallocStack()
Returns a newVkPhysicalDeviceCoherentMemoryFeaturesAMDinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkPhysicalDeviceCoherentMemoryFeaturesAMD callocStack()
Returns a newVkPhysicalDeviceCoherentMemoryFeaturesAMDinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkPhysicalDeviceCoherentMemoryFeaturesAMD mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceCoherentMemoryFeaturesAMDinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkPhysicalDeviceCoherentMemoryFeaturesAMD callocStack(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
-
mallocStack
public static VkPhysicalDeviceCoherentMemoryFeaturesAMD.Buffer mallocStack(int capacity)
Returns a newVkPhysicalDeviceCoherentMemoryFeaturesAMD.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkPhysicalDeviceCoherentMemoryFeaturesAMD.Buffer callocStack(int capacity)
Returns a newVkPhysicalDeviceCoherentMemoryFeaturesAMD.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkPhysicalDeviceCoherentMemoryFeaturesAMD.Buffer mallocStack(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
-
callocStack
public static VkPhysicalDeviceCoherentMemoryFeaturesAMD.Buffer callocStack(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.
-
-