Package org.lwjgl.vulkan
Class VkDeviceMemoryOverallocationCreateInfoAMD
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkDeviceMemoryOverallocationCreateInfoAMD
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkDeviceMemoryOverallocationCreateInfoAMD extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceSpecify memory overallocation behavior for a Vulkan device.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_DEVICE_MEMORY_OVERALLOCATION_CREATE_INFO_AMDoverallocationBehaviormust be a validVkMemoryOverallocationBehaviorAMDvalue
Member documentation
sType– the type of this structure.pNext–NULLor a pointer to an extension-specific structure.overallocationBehavior– the desired overallocation behavior.
Layout
struct VkDeviceMemoryOverallocationCreateInfoAMD { VkStructureType sType; void const * pNext; VkMemoryOverallocationBehaviorAMD overallocationBehavior; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkDeviceMemoryOverallocationCreateInfoAMD.BufferAn array ofVkDeviceMemoryOverallocationCreateInfoAMDstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intOVERALLOCATIONBEHAVIOR
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkDeviceMemoryOverallocationCreateInfoAMD(java.nio.ByteBuffer container)Creates aVkDeviceMemoryOverallocationCreateInfoAMDinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkDeviceMemoryOverallocationCreateInfoAMDcalloc()Returns a newVkDeviceMemoryOverallocationCreateInfoAMDinstance allocated withmemCalloc.static VkDeviceMemoryOverallocationCreateInfoAMD.Buffercalloc(int capacity)Returns a newVkDeviceMemoryOverallocationCreateInfoAMD.Bufferinstance allocated withmemCalloc.static VkDeviceMemoryOverallocationCreateInfoAMDcallocStack()Returns a newVkDeviceMemoryOverallocationCreateInfoAMDinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkDeviceMemoryOverallocationCreateInfoAMD.BuffercallocStack(int capacity)Returns a newVkDeviceMemoryOverallocationCreateInfoAMD.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkDeviceMemoryOverallocationCreateInfoAMD.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDeviceMemoryOverallocationCreateInfoAMD.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDeviceMemoryOverallocationCreateInfoAMDcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkDeviceMemoryOverallocationCreateInfoAMDinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDeviceMemoryOverallocationCreateInfoAMDcreate()Returns a newVkDeviceMemoryOverallocationCreateInfoAMDinstance allocated withBufferUtils.static VkDeviceMemoryOverallocationCreateInfoAMD.Buffercreate(int capacity)Returns a newVkDeviceMemoryOverallocationCreateInfoAMD.Bufferinstance allocated withBufferUtils.static VkDeviceMemoryOverallocationCreateInfoAMDcreate(long address)Returns a newVkDeviceMemoryOverallocationCreateInfoAMDinstance for the specified memory address.static VkDeviceMemoryOverallocationCreateInfoAMD.Buffercreate(long address, int capacity)Create aVkDeviceMemoryOverallocationCreateInfoAMD.Bufferinstance at the specified memory.static VkDeviceMemoryOverallocationCreateInfoAMDcreateSafe(long address)static VkDeviceMemoryOverallocationCreateInfoAMD.BuffercreateSafe(long address, int capacity)static VkDeviceMemoryOverallocationCreateInfoAMDmalloc()Returns a newVkDeviceMemoryOverallocationCreateInfoAMDinstance allocated withmemAlloc.static VkDeviceMemoryOverallocationCreateInfoAMD.Buffermalloc(int capacity)Returns a newVkDeviceMemoryOverallocationCreateInfoAMD.Bufferinstance allocated withmemAlloc.static VkDeviceMemoryOverallocationCreateInfoAMDmallocStack()Returns a newVkDeviceMemoryOverallocationCreateInfoAMDinstance allocated on the thread-localMemoryStack.static VkDeviceMemoryOverallocationCreateInfoAMD.BuffermallocStack(int capacity)Returns a newVkDeviceMemoryOverallocationCreateInfoAMD.Bufferinstance allocated on the thread-localMemoryStack.static VkDeviceMemoryOverallocationCreateInfoAMD.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDeviceMemoryOverallocationCreateInfoAMD.Bufferinstance allocated on the specifiedMemoryStack.static VkDeviceMemoryOverallocationCreateInfoAMDmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkDeviceMemoryOverallocationCreateInfoAMDinstance allocated on the specifiedMemoryStack.static intnoverallocationBehavior(long struct)Unsafe version ofoverallocationBehavior().static voidnoverallocationBehavior(long struct, int value)Unsafe version ofoverallocationBehavior.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.intoverallocationBehavior()Returns the value of theoverallocationBehaviorfield.VkDeviceMemoryOverallocationCreateInfoAMDoverallocationBehavior(int value)Sets the specified value to theoverallocationBehaviorfield.longpNext()Returns the value of thepNextfield.VkDeviceMemoryOverallocationCreateInfoAMDpNext(long value)Sets the specified value to thepNextfield.VkDeviceMemoryOverallocationCreateInfoAMDset(int sType, long pNext, int overallocationBehavior)Initializes this struct with the specified values.VkDeviceMemoryOverallocationCreateInfoAMDset(VkDeviceMemoryOverallocationCreateInfoAMD src)Copies the specified struct data to this struct.intsizeof()intsType()Returns the value of thesTypefield.VkDeviceMemoryOverallocationCreateInfoAMDsType(int value)Sets the specified value to thesTypefield.
-
-
-
Constructor Detail
-
VkDeviceMemoryOverallocationCreateInfoAMD
public VkDeviceMemoryOverallocationCreateInfoAMD(java.nio.ByteBuffer container)
Creates aVkDeviceMemoryOverallocationCreateInfoAMDinstance 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.
-
overallocationBehavior
public int overallocationBehavior()
Returns the value of theoverallocationBehaviorfield.
-
sType
public VkDeviceMemoryOverallocationCreateInfoAMD sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkDeviceMemoryOverallocationCreateInfoAMD pNext(long value)
Sets the specified value to thepNextfield.
-
overallocationBehavior
public VkDeviceMemoryOverallocationCreateInfoAMD overallocationBehavior(int value)
Sets the specified value to theoverallocationBehaviorfield.
-
set
public VkDeviceMemoryOverallocationCreateInfoAMD set(int sType, long pNext, int overallocationBehavior)
Initializes this struct with the specified values.
-
set
public VkDeviceMemoryOverallocationCreateInfoAMD set(VkDeviceMemoryOverallocationCreateInfoAMD src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkDeviceMemoryOverallocationCreateInfoAMD malloc()
Returns a newVkDeviceMemoryOverallocationCreateInfoAMDinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkDeviceMemoryOverallocationCreateInfoAMD calloc()
Returns a newVkDeviceMemoryOverallocationCreateInfoAMDinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkDeviceMemoryOverallocationCreateInfoAMD create()
Returns a newVkDeviceMemoryOverallocationCreateInfoAMDinstance allocated withBufferUtils.
-
create
public static VkDeviceMemoryOverallocationCreateInfoAMD create(long address)
Returns a newVkDeviceMemoryOverallocationCreateInfoAMDinstance for the specified memory address.
-
createSafe
@Nullable public static VkDeviceMemoryOverallocationCreateInfoAMD createSafe(long address)
-
malloc
public static VkDeviceMemoryOverallocationCreateInfoAMD.Buffer malloc(int capacity)
Returns a newVkDeviceMemoryOverallocationCreateInfoAMD.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkDeviceMemoryOverallocationCreateInfoAMD.Buffer calloc(int capacity)
Returns a newVkDeviceMemoryOverallocationCreateInfoAMD.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkDeviceMemoryOverallocationCreateInfoAMD.Buffer create(int capacity)
Returns a newVkDeviceMemoryOverallocationCreateInfoAMD.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkDeviceMemoryOverallocationCreateInfoAMD.Buffer create(long address, int capacity)
Create aVkDeviceMemoryOverallocationCreateInfoAMD.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkDeviceMemoryOverallocationCreateInfoAMD.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkDeviceMemoryOverallocationCreateInfoAMD mallocStack()
Returns a newVkDeviceMemoryOverallocationCreateInfoAMDinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkDeviceMemoryOverallocationCreateInfoAMD callocStack()
Returns a newVkDeviceMemoryOverallocationCreateInfoAMDinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkDeviceMemoryOverallocationCreateInfoAMD mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceMemoryOverallocationCreateInfoAMDinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkDeviceMemoryOverallocationCreateInfoAMD callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceMemoryOverallocationCreateInfoAMDinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkDeviceMemoryOverallocationCreateInfoAMD.Buffer mallocStack(int capacity)
Returns a newVkDeviceMemoryOverallocationCreateInfoAMD.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkDeviceMemoryOverallocationCreateInfoAMD.Buffer callocStack(int capacity)
Returns a newVkDeviceMemoryOverallocationCreateInfoAMD.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkDeviceMemoryOverallocationCreateInfoAMD.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceMemoryOverallocationCreateInfoAMD.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkDeviceMemoryOverallocationCreateInfoAMD.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceMemoryOverallocationCreateInfoAMD.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().
-
noverallocationBehavior
public static int noverallocationBehavior(long struct)
Unsafe version ofoverallocationBehavior().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
noverallocationBehavior
public static void noverallocationBehavior(long struct, int value)Unsafe version ofoverallocationBehavior.
-
-