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
Layout
struct VkDeviceMemoryOverallocationCreateInfoAMD { VkStructureTypesType(); void const *pNext(); VkMemoryOverallocationBehaviorAMDoverallocationBehavior(); }
-
-
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 Deprecated 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 VkDeviceMemoryOverallocationCreateInfoAMD.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDeviceMemoryOverallocationCreateInfoAMD.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDeviceMemoryOverallocationCreateInfoAMDcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkDeviceMemoryOverallocationCreateInfoAMDinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDeviceMemoryOverallocationCreateInfoAMDcallocStack()Deprecated.static VkDeviceMemoryOverallocationCreateInfoAMD.BuffercallocStack(int capacity)Deprecated.static VkDeviceMemoryOverallocationCreateInfoAMD.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkDeviceMemoryOverallocationCreateInfoAMDcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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 VkDeviceMemoryOverallocationCreateInfoAMD.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDeviceMemoryOverallocationCreateInfoAMD.Bufferinstance allocated on the specifiedMemoryStack.static VkDeviceMemoryOverallocationCreateInfoAMDmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkDeviceMemoryOverallocationCreateInfoAMDinstance allocated on the specifiedMemoryStack.static VkDeviceMemoryOverallocationCreateInfoAMDmallocStack()Deprecated.static VkDeviceMemoryOverallocationCreateInfoAMD.BuffermallocStack(int capacity)Deprecated.static VkDeviceMemoryOverallocationCreateInfoAMD.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkDeviceMemoryOverallocationCreateInfoAMDmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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()the desired overallocation behavior.VkDeviceMemoryOverallocationCreateInfoAMDoverallocationBehavior(int value)Sets the specified value to theoverallocationBehavior()field.longpNext()NULLor a pointer to a structure extending this structure.VkDeviceMemoryOverallocationCreateInfoAMDpNext(long value)Sets the specified value to thepNext()field.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()the type of this structure.VkDeviceMemoryOverallocationCreateInfoAMDsType(int value)Sets the specified value to thesType()field.VkDeviceMemoryOverallocationCreateInfoAMDsType$Default()Sets theSTRUCTURE_TYPE_DEVICE_MEMORY_OVERALLOCATION_CREATE_INFO_AMDvalue to thesType()field.
-
-
-
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()
the type of this structure.
-
pNext
public long pNext()
NULLor a pointer to a structure extending this structure.
-
overallocationBehavior
public int overallocationBehavior()
the desired overallocation behavior.
-
sType
public VkDeviceMemoryOverallocationCreateInfoAMD sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkDeviceMemoryOverallocationCreateInfoAMD sType$Default()
Sets theSTRUCTURE_TYPE_DEVICE_MEMORY_OVERALLOCATION_CREATE_INFO_AMDvalue to thesType()field.
-
pNext
public VkDeviceMemoryOverallocationCreateInfoAMD pNext(long value)
Sets the specified value to thepNext()field.
-
overallocationBehavior
public VkDeviceMemoryOverallocationCreateInfoAMD overallocationBehavior(int value)
Sets the specified value to theoverallocationBehavior()field.
-
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
@Deprecated public static VkDeviceMemoryOverallocationCreateInfoAMD mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkDeviceMemoryOverallocationCreateInfoAMD callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkDeviceMemoryOverallocationCreateInfoAMD mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkDeviceMemoryOverallocationCreateInfoAMD callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkDeviceMemoryOverallocationCreateInfoAMD.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkDeviceMemoryOverallocationCreateInfoAMD.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkDeviceMemoryOverallocationCreateInfoAMD.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 VkDeviceMemoryOverallocationCreateInfoAMD.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkDeviceMemoryOverallocationCreateInfoAMD malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceMemoryOverallocationCreateInfoAMDinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkDeviceMemoryOverallocationCreateInfoAMD calloc(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
-
malloc
public static VkDeviceMemoryOverallocationCreateInfoAMD.Buffer malloc(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
-
calloc
public static VkDeviceMemoryOverallocationCreateInfoAMD.Buffer calloc(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.
-
-