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
Member documentation
sType– the type of this structure.pNext–NULLor a pointer to an extension-specific structure.handleTypes– a bitmask ofVkExternalMemoryHandleTypeFlagBitsspecifying one or more external memory handle types.
Layout
struct VkExternalMemoryBufferCreateInfo { VkStructureType sType; void const * pNext; VkExternalMemoryHandleTypeFlags handleTypes; }
-
-
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 Modifier and Type Method Description static VkExternalMemoryBufferCreateInfocalloc()Returns a newVkExternalMemoryBufferCreateInfoinstance allocated withmemCalloc.static VkExternalMemoryBufferCreateInfo.Buffercalloc(int capacity)Returns a newVkExternalMemoryBufferCreateInfo.Bufferinstance allocated withmemCalloc.static VkExternalMemoryBufferCreateInfocallocStack()Returns a newVkExternalMemoryBufferCreateInfoinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkExternalMemoryBufferCreateInfo.BuffercallocStack(int capacity)Returns a newVkExternalMemoryBufferCreateInfo.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkExternalMemoryBufferCreateInfo.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkExternalMemoryBufferCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkExternalMemoryBufferCreateInfocallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkExternalMemoryBufferCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.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()Returns the value of thehandleTypesfield.VkExternalMemoryBufferCreateInfohandleTypes(int value)Sets the specified value to thehandleTypesfield.static VkExternalMemoryBufferCreateInfomalloc()Returns a newVkExternalMemoryBufferCreateInfoinstance allocated withmemAlloc.static VkExternalMemoryBufferCreateInfo.Buffermalloc(int capacity)Returns a newVkExternalMemoryBufferCreateInfo.Bufferinstance allocated withmemAlloc.static VkExternalMemoryBufferCreateInfomallocStack()Returns a newVkExternalMemoryBufferCreateInfoinstance allocated on the thread-localMemoryStack.static VkExternalMemoryBufferCreateInfo.BuffermallocStack(int capacity)Returns a newVkExternalMemoryBufferCreateInfo.Bufferinstance allocated on the thread-localMemoryStack.static VkExternalMemoryBufferCreateInfo.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkExternalMemoryBufferCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkExternalMemoryBufferCreateInfomallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkExternalMemoryBufferCreateInfoinstance allocated on the specifiedMemoryStack.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()Returns the value of thepNextfield.VkExternalMemoryBufferCreateInfopNext(long value)Sets the specified value to thepNextfield.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()Returns the value of thesTypefield.VkExternalMemoryBufferCreateInfosType(int value)Sets the specified value to thesTypefield.
-
-
-
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()
Returns the value of thesTypefield.
-
pNext
public long pNext()
Returns the value of thepNextfield.
-
handleTypes
public int handleTypes()
Returns the value of thehandleTypesfield.
-
sType
public VkExternalMemoryBufferCreateInfo sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkExternalMemoryBufferCreateInfo pNext(long value)
Sets the specified value to thepNextfield.
-
handleTypes
public VkExternalMemoryBufferCreateInfo handleTypes(int value)
Sets the specified value to thehandleTypesfield.
-
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
public static VkExternalMemoryBufferCreateInfo mallocStack()
Returns a newVkExternalMemoryBufferCreateInfoinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkExternalMemoryBufferCreateInfo callocStack()
Returns a newVkExternalMemoryBufferCreateInfoinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkExternalMemoryBufferCreateInfo mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkExternalMemoryBufferCreateInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkExternalMemoryBufferCreateInfo callocStack(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
-
mallocStack
public static VkExternalMemoryBufferCreateInfo.Buffer mallocStack(int capacity)
Returns a newVkExternalMemoryBufferCreateInfo.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkExternalMemoryBufferCreateInfo.Buffer callocStack(int capacity)
Returns a newVkExternalMemoryBufferCreateInfo.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkExternalMemoryBufferCreateInfo.Buffer mallocStack(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
-
callocStack
public static VkExternalMemoryBufferCreateInfo.Buffer callocStack(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.
-
-