Package org.lwjgl.vulkan
Class VkExternalMemoryBufferCreateInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkExternalMemoryBufferCreateInfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkExternalMemoryBufferCreateInfoKHR
public class VkExternalMemoryBufferCreateInfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceSpecify that a buffer may be backed by external memory.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_EXTERNAL_MEMORY_BUFFER_CREATE_INFOhandleTypesmust be a valid combination ofVkExternalMemoryHandleTypeFlagBitsvalues
Layout
struct VkExternalMemoryBufferCreateInfo { VkStructureTypesType(); void const *pNext(); VkExternalMemoryHandleTypeFlagshandleTypes(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkExternalMemoryBufferCreateInfo.BufferAn array ofVkExternalMemoryBufferCreateInfostructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intHANDLETYPES
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkExternalMemoryBufferCreateInfo(java.nio.ByteBuffer container)Creates aVkExternalMemoryBufferCreateInfoinstance 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 VkExternalMemoryBufferCreateInfocalloc()Returns a newVkExternalMemoryBufferCreateInfoinstance allocated withmemCalloc.static VkExternalMemoryBufferCreateInfo.Buffercalloc(int capacity)Returns a newVkExternalMemoryBufferCreateInfo.Bufferinstance allocated withmemCalloc.static VkExternalMemoryBufferCreateInfo.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkExternalMemoryBufferCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkExternalMemoryBufferCreateInfocalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkExternalMemoryBufferCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkExternalMemoryBufferCreateInfocallocStack()Deprecated.static VkExternalMemoryBufferCreateInfo.BuffercallocStack(int capacity)Deprecated.static VkExternalMemoryBufferCreateInfo.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkExternalMemoryBufferCreateInfocallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static VkExternalMemoryBufferCreateInfocreate()Returns a newVkExternalMemoryBufferCreateInfoinstance allocated withBufferUtils.static VkExternalMemoryBufferCreateInfo.Buffercreate(int capacity)Returns a newVkExternalMemoryBufferCreateInfo.Bufferinstance allocated withBufferUtils.static VkExternalMemoryBufferCreateInfocreate(long address)Returns a newVkExternalMemoryBufferCreateInfoinstance for the specified memory address.static VkExternalMemoryBufferCreateInfo.Buffercreate(long address, int capacity)Create aVkExternalMemoryBufferCreateInfo.Bufferinstance at the specified memory.static VkExternalMemoryBufferCreateInfocreateSafe(long address)static VkExternalMemoryBufferCreateInfo.BuffercreateSafe(long address, int capacity)inthandleTypes()zero, or a bitmask ofVkExternalMemoryHandleTypeFlagBitsspecifying one or more external memory handle types.VkExternalMemoryBufferCreateInfohandleTypes(int value)Sets the specified value to thehandleTypes()field.static VkExternalMemoryBufferCreateInfomalloc()Returns a newVkExternalMemoryBufferCreateInfoinstance allocated withmemAlloc.static VkExternalMemoryBufferCreateInfo.Buffermalloc(int capacity)Returns a newVkExternalMemoryBufferCreateInfo.Bufferinstance allocated withmemAlloc.static VkExternalMemoryBufferCreateInfo.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkExternalMemoryBufferCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkExternalMemoryBufferCreateInfomalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkExternalMemoryBufferCreateInfoinstance allocated on the specifiedMemoryStack.static VkExternalMemoryBufferCreateInfomallocStack()Deprecated.static VkExternalMemoryBufferCreateInfo.BuffermallocStack(int capacity)Deprecated.static VkExternalMemoryBufferCreateInfo.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkExternalMemoryBufferCreateInfomallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static intnhandleTypes(long struct)Unsafe version ofhandleTypes().static voidnhandleTypes(long struct, int value)Unsafe version ofhandleTypes.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.VkExternalMemoryBufferCreateInfopNext(long value)Sets the specified value to thepNext()field.VkExternalMemoryBufferCreateInfoset(int sType, long pNext, int handleTypes)Initializes this struct with the specified values.VkExternalMemoryBufferCreateInfoset(VkExternalMemoryBufferCreateInfo src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkExternalMemoryBufferCreateInfosType(int value)Sets the specified value to thesType()field.VkExternalMemoryBufferCreateInfosType$Default()Sets theSTRUCTURE_TYPE_EXTERNAL_MEMORY_BUFFER_CREATE_INFOvalue to thesType()field.
-
-
-
Constructor Detail
-
VkExternalMemoryBufferCreateInfo
public VkExternalMemoryBufferCreateInfo(java.nio.ByteBuffer container)
Creates aVkExternalMemoryBufferCreateInfoinstance 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.
-
handleTypes
public int handleTypes()
zero, or a bitmask ofVkExternalMemoryHandleTypeFlagBitsspecifying one or more external memory handle types.
-
sType
public VkExternalMemoryBufferCreateInfo sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkExternalMemoryBufferCreateInfo sType$Default()
Sets theSTRUCTURE_TYPE_EXTERNAL_MEMORY_BUFFER_CREATE_INFOvalue to thesType()field.
-
pNext
public VkExternalMemoryBufferCreateInfo pNext(long value)
Sets the specified value to thepNext()field.
-
handleTypes
public VkExternalMemoryBufferCreateInfo handleTypes(int value)
Sets the specified value to thehandleTypes()field.
-
set
public VkExternalMemoryBufferCreateInfo set(int sType, long pNext, int handleTypes)
Initializes this struct with the specified values.
-
set
public VkExternalMemoryBufferCreateInfo set(VkExternalMemoryBufferCreateInfo src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkExternalMemoryBufferCreateInfo malloc()
Returns a newVkExternalMemoryBufferCreateInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkExternalMemoryBufferCreateInfo calloc()
Returns a newVkExternalMemoryBufferCreateInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkExternalMemoryBufferCreateInfo create()
Returns a newVkExternalMemoryBufferCreateInfoinstance allocated withBufferUtils.
-
create
public static VkExternalMemoryBufferCreateInfo create(long address)
Returns a newVkExternalMemoryBufferCreateInfoinstance for the specified memory address.
-
createSafe
@Nullable public static VkExternalMemoryBufferCreateInfo createSafe(long address)
-
malloc
public static VkExternalMemoryBufferCreateInfo.Buffer malloc(int capacity)
Returns a newVkExternalMemoryBufferCreateInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkExternalMemoryBufferCreateInfo.Buffer calloc(int capacity)
Returns a newVkExternalMemoryBufferCreateInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkExternalMemoryBufferCreateInfo.Buffer create(int capacity)
Returns a newVkExternalMemoryBufferCreateInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkExternalMemoryBufferCreateInfo.Buffer create(long address, int capacity)
Create aVkExternalMemoryBufferCreateInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkExternalMemoryBufferCreateInfo.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static VkExternalMemoryBufferCreateInfo mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkExternalMemoryBufferCreateInfo callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkExternalMemoryBufferCreateInfo mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkExternalMemoryBufferCreateInfo callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkExternalMemoryBufferCreateInfo.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkExternalMemoryBufferCreateInfo.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkExternalMemoryBufferCreateInfo.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 VkExternalMemoryBufferCreateInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkExternalMemoryBufferCreateInfo malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkExternalMemoryBufferCreateInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkExternalMemoryBufferCreateInfo calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkExternalMemoryBufferCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkExternalMemoryBufferCreateInfo.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkExternalMemoryBufferCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkExternalMemoryBufferCreateInfo.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkExternalMemoryBufferCreateInfo.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().
-
nhandleTypes
public static int nhandleTypes(long struct)
Unsafe version ofhandleTypes().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nhandleTypes
public static void nhandleTypes(long struct, int value)Unsafe version ofhandleTypes.
-
-