Package org.lwjgl.vulkan
Class VkBindBufferMemoryInfoKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkBindBufferMemoryInfo
-
- org.lwjgl.vulkan.VkBindBufferMemoryInfoKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class VkBindBufferMemoryInfoKHR extends VkBindBufferMemoryInfo
SeeVkBindBufferMemoryInfo
.Layout
struct VkBindBufferMemoryInfoKHR { VkStructureType sType; void const * pNext; VkBuffer buffer; VkDeviceMemory memory; VkDeviceSize memoryOffset; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VkBindBufferMemoryInfoKHR.Buffer
An array ofVkBindBufferMemoryInfoKHR
structs.
-
Field Summary
-
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Fields inherited from class org.lwjgl.vulkan.VkBindBufferMemoryInfo
ALIGNOF, BUFFER, MEMORY, MEMORYOFFSET, PNEXT, SIZEOF, STYPE
-
-
Constructor Summary
Constructors Constructor Description VkBindBufferMemoryInfoKHR(java.nio.ByteBuffer container)
Creates aVkBindBufferMemoryInfoKHR
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description VkBindBufferMemoryInfoKHR
buffer(long value)
Sets the specified value to thebuffer
field.static VkBindBufferMemoryInfoKHR
calloc()
Returns a newVkBindBufferMemoryInfoKHR
instance allocated withmemCalloc
.static VkBindBufferMemoryInfoKHR.Buffer
calloc(int capacity)
Returns a newVkBindBufferMemoryInfoKHR.Buffer
instance allocated withmemCalloc
.static VkBindBufferMemoryInfoKHR
callocStack()
Returns a newVkBindBufferMemoryInfoKHR
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkBindBufferMemoryInfoKHR.Buffer
callocStack(int capacity)
Returns a newVkBindBufferMemoryInfoKHR.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkBindBufferMemoryInfoKHR.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkBindBufferMemoryInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkBindBufferMemoryInfoKHR
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkBindBufferMemoryInfoKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkBindBufferMemoryInfoKHR
create()
Returns a newVkBindBufferMemoryInfoKHR
instance allocated withBufferUtils
.static VkBindBufferMemoryInfoKHR.Buffer
create(int capacity)
Returns a newVkBindBufferMemoryInfoKHR.Buffer
instance allocated withBufferUtils
.static VkBindBufferMemoryInfoKHR
create(long address)
Returns a newVkBindBufferMemoryInfoKHR
instance for the specified memory address.static VkBindBufferMemoryInfoKHR.Buffer
create(long address, int capacity)
Create aVkBindBufferMemoryInfoKHR.Buffer
instance at the specified memory.static VkBindBufferMemoryInfoKHR
createSafe(long address)
static VkBindBufferMemoryInfoKHR.Buffer
createSafe(long address, int capacity)
static VkBindBufferMemoryInfoKHR
malloc()
Returns a newVkBindBufferMemoryInfoKHR
instance allocated withmemAlloc
.static VkBindBufferMemoryInfoKHR.Buffer
malloc(int capacity)
Returns a newVkBindBufferMemoryInfoKHR.Buffer
instance allocated withmemAlloc
.static VkBindBufferMemoryInfoKHR
mallocStack()
Returns a newVkBindBufferMemoryInfoKHR
instance allocated on the thread-localMemoryStack
.static VkBindBufferMemoryInfoKHR.Buffer
mallocStack(int capacity)
Returns a newVkBindBufferMemoryInfoKHR.Buffer
instance allocated on the thread-localMemoryStack
.static VkBindBufferMemoryInfoKHR.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkBindBufferMemoryInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
.static VkBindBufferMemoryInfoKHR
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkBindBufferMemoryInfoKHR
instance allocated on the specifiedMemoryStack
.VkBindBufferMemoryInfoKHR
memory(long value)
Sets the specified value to thememory
field.VkBindBufferMemoryInfoKHR
memoryOffset(long value)
Sets the specified value to thememoryOffset
field.VkBindBufferMemoryInfoKHR
pNext(long value)
Sets the specified value to thepNext
field.VkBindBufferMemoryInfoKHR
set(int sType, long pNext, long buffer, long memory, long memoryOffset)
Initializes this struct with the specified values.VkBindBufferMemoryInfoKHR
set(VkBindBufferMemoryInfoKHR src)
Copies the specified struct data to this struct.VkBindBufferMemoryInfoKHR
sType(int value)
Sets the specified value to thesType
field.-
Methods inherited from class org.lwjgl.vulkan.VkBindBufferMemoryInfo
buffer, memory, memoryOffset, nbuffer, nbuffer, nmemory, nmemory, nmemoryOffset, nmemoryOffset, npNext, npNext, nsType, nsType, pNext, set, sizeof, sType
-
-
-
-
Constructor Detail
-
VkBindBufferMemoryInfoKHR
public VkBindBufferMemoryInfoKHR(java.nio.ByteBuffer container)
Creates aVkBindBufferMemoryInfoKHR
instance at the current position of the specifiedByteBuffer
container. 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
-
sType
public VkBindBufferMemoryInfoKHR sType(int value)
Sets the specified value to thesType
field.- Overrides:
sType
in classVkBindBufferMemoryInfo
-
pNext
public VkBindBufferMemoryInfoKHR pNext(long value)
Sets the specified value to thepNext
field.- Overrides:
pNext
in classVkBindBufferMemoryInfo
-
buffer
public VkBindBufferMemoryInfoKHR buffer(long value)
Sets the specified value to thebuffer
field.- Overrides:
buffer
in classVkBindBufferMemoryInfo
-
memory
public VkBindBufferMemoryInfoKHR memory(long value)
Sets the specified value to thememory
field.- Overrides:
memory
in classVkBindBufferMemoryInfo
-
memoryOffset
public VkBindBufferMemoryInfoKHR memoryOffset(long value)
Sets the specified value to thememoryOffset
field.- Overrides:
memoryOffset
in classVkBindBufferMemoryInfo
-
set
public VkBindBufferMemoryInfoKHR set(int sType, long pNext, long buffer, long memory, long memoryOffset)
Initializes this struct with the specified values.- Overrides:
set
in classVkBindBufferMemoryInfo
-
set
public VkBindBufferMemoryInfoKHR set(VkBindBufferMemoryInfoKHR src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static VkBindBufferMemoryInfoKHR malloc()
Returns a newVkBindBufferMemoryInfoKHR
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkBindBufferMemoryInfoKHR calloc()
Returns a newVkBindBufferMemoryInfoKHR
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkBindBufferMemoryInfoKHR create()
Returns a newVkBindBufferMemoryInfoKHR
instance allocated withBufferUtils
.
-
create
public static VkBindBufferMemoryInfoKHR create(long address)
Returns a newVkBindBufferMemoryInfoKHR
instance for the specified memory address.
-
createSafe
@Nullable public static VkBindBufferMemoryInfoKHR createSafe(long address)
-
malloc
public static VkBindBufferMemoryInfoKHR.Buffer malloc(int capacity)
Returns a newVkBindBufferMemoryInfoKHR.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkBindBufferMemoryInfoKHR.Buffer calloc(int capacity)
Returns a newVkBindBufferMemoryInfoKHR.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkBindBufferMemoryInfoKHR.Buffer create(int capacity)
Returns a newVkBindBufferMemoryInfoKHR.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkBindBufferMemoryInfoKHR.Buffer create(long address, int capacity)
Create aVkBindBufferMemoryInfoKHR.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VkBindBufferMemoryInfoKHR.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkBindBufferMemoryInfoKHR mallocStack()
Returns a newVkBindBufferMemoryInfoKHR
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkBindBufferMemoryInfoKHR callocStack()
Returns a newVkBindBufferMemoryInfoKHR
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkBindBufferMemoryInfoKHR mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkBindBufferMemoryInfoKHR
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkBindBufferMemoryInfoKHR callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkBindBufferMemoryInfoKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VkBindBufferMemoryInfoKHR.Buffer mallocStack(int capacity)
Returns a newVkBindBufferMemoryInfoKHR.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkBindBufferMemoryInfoKHR.Buffer callocStack(int capacity)
Returns a newVkBindBufferMemoryInfoKHR.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkBindBufferMemoryInfoKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkBindBufferMemoryInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VkBindBufferMemoryInfoKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkBindBufferMemoryInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
-