Package org.lwjgl.vulkan
Class VkDedicatedAllocationBufferCreateInfoNV
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkDedicatedAllocationBufferCreateInfoNV
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkDedicatedAllocationBufferCreateInfoNV extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceSpecify that a buffer is bound to a dedicated memory resource.Valid Usage (Implicit)
Layout
struct VkDedicatedAllocationBufferCreateInfoNV { VkStructureTypesType(); void const *pNext(); VkBool32dedicatedAllocation(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkDedicatedAllocationBufferCreateInfoNV.BufferAn array ofVkDedicatedAllocationBufferCreateInfoNVstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intDEDICATEDALLOCATION
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkDedicatedAllocationBufferCreateInfoNV(java.nio.ByteBuffer container)Creates aVkDedicatedAllocationBufferCreateInfoNVinstance 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 VkDedicatedAllocationBufferCreateInfoNVcalloc()Returns a newVkDedicatedAllocationBufferCreateInfoNVinstance allocated withmemCalloc.static VkDedicatedAllocationBufferCreateInfoNV.Buffercalloc(int capacity)Returns a newVkDedicatedAllocationBufferCreateInfoNV.Bufferinstance allocated withmemCalloc.static VkDedicatedAllocationBufferCreateInfoNV.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDedicatedAllocationBufferCreateInfoNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDedicatedAllocationBufferCreateInfoNVcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkDedicatedAllocationBufferCreateInfoNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDedicatedAllocationBufferCreateInfoNVcallocStack()Deprecated.static VkDedicatedAllocationBufferCreateInfoNV.BuffercallocStack(int capacity)Deprecated.static VkDedicatedAllocationBufferCreateInfoNV.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkDedicatedAllocationBufferCreateInfoNVcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static VkDedicatedAllocationBufferCreateInfoNVcreate()Returns a newVkDedicatedAllocationBufferCreateInfoNVinstance allocated withBufferUtils.static VkDedicatedAllocationBufferCreateInfoNV.Buffercreate(int capacity)Returns a newVkDedicatedAllocationBufferCreateInfoNV.Bufferinstance allocated withBufferUtils.static VkDedicatedAllocationBufferCreateInfoNVcreate(long address)Returns a newVkDedicatedAllocationBufferCreateInfoNVinstance for the specified memory address.static VkDedicatedAllocationBufferCreateInfoNV.Buffercreate(long address, int capacity)Create aVkDedicatedAllocationBufferCreateInfoNV.Bufferinstance at the specified memory.static VkDedicatedAllocationBufferCreateInfoNVcreateSafe(long address)static VkDedicatedAllocationBufferCreateInfoNV.BuffercreateSafe(long address, int capacity)booleandedicatedAllocation()specifies whether the buffer will have a dedicated allocation bound to it.VkDedicatedAllocationBufferCreateInfoNVdedicatedAllocation(boolean value)Sets the specified value to thededicatedAllocation()field.static VkDedicatedAllocationBufferCreateInfoNVmalloc()Returns a newVkDedicatedAllocationBufferCreateInfoNVinstance allocated withmemAlloc.static VkDedicatedAllocationBufferCreateInfoNV.Buffermalloc(int capacity)Returns a newVkDedicatedAllocationBufferCreateInfoNV.Bufferinstance allocated withmemAlloc.static VkDedicatedAllocationBufferCreateInfoNV.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDedicatedAllocationBufferCreateInfoNV.Bufferinstance allocated on the specifiedMemoryStack.static VkDedicatedAllocationBufferCreateInfoNVmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkDedicatedAllocationBufferCreateInfoNVinstance allocated on the specifiedMemoryStack.static VkDedicatedAllocationBufferCreateInfoNVmallocStack()Deprecated.static VkDedicatedAllocationBufferCreateInfoNV.BuffermallocStack(int capacity)Deprecated.static VkDedicatedAllocationBufferCreateInfoNV.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkDedicatedAllocationBufferCreateInfoNVmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static intndedicatedAllocation(long struct)Unsafe version ofdedicatedAllocation().static voidndedicatedAllocation(long struct, int value)Unsafe version ofdedicatedAllocation.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.VkDedicatedAllocationBufferCreateInfoNVpNext(long value)Sets the specified value to thepNext()field.VkDedicatedAllocationBufferCreateInfoNVset(int sType, long pNext, boolean dedicatedAllocation)Initializes this struct with the specified values.VkDedicatedAllocationBufferCreateInfoNVset(VkDedicatedAllocationBufferCreateInfoNV src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkDedicatedAllocationBufferCreateInfoNVsType(int value)Sets the specified value to thesType()field.VkDedicatedAllocationBufferCreateInfoNVsType$Default()Sets theSTRUCTURE_TYPE_DEDICATED_ALLOCATION_BUFFER_CREATE_INFO_NVvalue to thesType()field.
-
-
-
Constructor Detail
-
VkDedicatedAllocationBufferCreateInfoNV
public VkDedicatedAllocationBufferCreateInfoNV(java.nio.ByteBuffer container)
Creates aVkDedicatedAllocationBufferCreateInfoNVinstance 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.
-
dedicatedAllocation
public boolean dedicatedAllocation()
specifies whether the buffer will have a dedicated allocation bound to it.
-
sType
public VkDedicatedAllocationBufferCreateInfoNV sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkDedicatedAllocationBufferCreateInfoNV sType$Default()
Sets theSTRUCTURE_TYPE_DEDICATED_ALLOCATION_BUFFER_CREATE_INFO_NVvalue to thesType()field.
-
pNext
public VkDedicatedAllocationBufferCreateInfoNV pNext(long value)
Sets the specified value to thepNext()field.
-
dedicatedAllocation
public VkDedicatedAllocationBufferCreateInfoNV dedicatedAllocation(boolean value)
Sets the specified value to thededicatedAllocation()field.
-
set
public VkDedicatedAllocationBufferCreateInfoNV set(int sType, long pNext, boolean dedicatedAllocation)
Initializes this struct with the specified values.
-
set
public VkDedicatedAllocationBufferCreateInfoNV set(VkDedicatedAllocationBufferCreateInfoNV src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkDedicatedAllocationBufferCreateInfoNV malloc()
Returns a newVkDedicatedAllocationBufferCreateInfoNVinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkDedicatedAllocationBufferCreateInfoNV calloc()
Returns a newVkDedicatedAllocationBufferCreateInfoNVinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkDedicatedAllocationBufferCreateInfoNV create()
Returns a newVkDedicatedAllocationBufferCreateInfoNVinstance allocated withBufferUtils.
-
create
public static VkDedicatedAllocationBufferCreateInfoNV create(long address)
Returns a newVkDedicatedAllocationBufferCreateInfoNVinstance for the specified memory address.
-
createSafe
@Nullable public static VkDedicatedAllocationBufferCreateInfoNV createSafe(long address)
-
malloc
public static VkDedicatedAllocationBufferCreateInfoNV.Buffer malloc(int capacity)
Returns a newVkDedicatedAllocationBufferCreateInfoNV.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkDedicatedAllocationBufferCreateInfoNV.Buffer calloc(int capacity)
Returns a newVkDedicatedAllocationBufferCreateInfoNV.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkDedicatedAllocationBufferCreateInfoNV.Buffer create(int capacity)
Returns a newVkDedicatedAllocationBufferCreateInfoNV.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkDedicatedAllocationBufferCreateInfoNV.Buffer create(long address, int capacity)
Create aVkDedicatedAllocationBufferCreateInfoNV.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkDedicatedAllocationBufferCreateInfoNV.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static VkDedicatedAllocationBufferCreateInfoNV mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkDedicatedAllocationBufferCreateInfoNV callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkDedicatedAllocationBufferCreateInfoNV mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkDedicatedAllocationBufferCreateInfoNV callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkDedicatedAllocationBufferCreateInfoNV.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkDedicatedAllocationBufferCreateInfoNV.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkDedicatedAllocationBufferCreateInfoNV.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 VkDedicatedAllocationBufferCreateInfoNV.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkDedicatedAllocationBufferCreateInfoNV malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkDedicatedAllocationBufferCreateInfoNVinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkDedicatedAllocationBufferCreateInfoNV calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkDedicatedAllocationBufferCreateInfoNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkDedicatedAllocationBufferCreateInfoNV.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDedicatedAllocationBufferCreateInfoNV.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkDedicatedAllocationBufferCreateInfoNV.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDedicatedAllocationBufferCreateInfoNV.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().
-
ndedicatedAllocation
public static int ndedicatedAllocation(long struct)
Unsafe version ofdedicatedAllocation().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
ndedicatedAllocation
public static void ndedicatedAllocation(long struct, int value)Unsafe version ofdedicatedAllocation.
-
-