Package org.lwjgl.vulkan
Class VkPhysicalDeviceExternalBufferInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceExternalBufferInfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkPhysicalDeviceExternalBufferInfoKHR
public class VkPhysicalDeviceExternalBufferInfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying buffer creation parameters.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_BUFFER_INFOpNextmust beNULLflagsmust be a valid combination ofVkBufferCreateFlagBitsvaluesusagemust be a valid combination ofVkBufferUsageFlagBitsvaluesusagemust not be 0handleTypemust be a validVkExternalMemoryHandleTypeFlagBitsvalue
See Also
GetPhysicalDeviceExternalBufferProperties,GetPhysicalDeviceExternalBufferPropertiesKHRMember documentation
sType– the type of this structurepNext– NULL or a pointer to an extension-specific structure.flags– a bitmask ofVkBufferCreateFlagBitsdescribing additional parameters of the buffer, corresponding toVkBufferCreateInfo::flags.usage– a bitmask ofVkBufferUsageFlagBitsdescribing the intended usage of the buffer, corresponding toVkBufferCreateInfo::usage.handleType– aVkExternalMemoryHandleTypeFlagBitsvalue specifying the memory handle type that will be used with the memory associated with the buffer.
Layout
struct VkPhysicalDeviceExternalBufferInfo { VkStructureType sType; void const * pNext; VkBufferCreateFlags flags; VkBufferUsageFlags usage; VkExternalMemoryHandleTypeFlagBits handleType; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceExternalBufferInfo.BufferAn array ofVkPhysicalDeviceExternalBufferInfostructs.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceExternalBufferInfo(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceExternalBufferInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDeviceExternalBufferInfocalloc()Returns a newVkPhysicalDeviceExternalBufferInfoinstance allocated withmemCalloc.static VkPhysicalDeviceExternalBufferInfo.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceExternalBufferInfo.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceExternalBufferInfocallocStack()Returns a newVkPhysicalDeviceExternalBufferInfoinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceExternalBufferInfo.BuffercallocStack(int capacity)Returns a newVkPhysicalDeviceExternalBufferInfo.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceExternalBufferInfo.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceExternalBufferInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceExternalBufferInfocallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceExternalBufferInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceExternalBufferInfocreate()Returns a newVkPhysicalDeviceExternalBufferInfoinstance allocated withBufferUtils.static VkPhysicalDeviceExternalBufferInfo.Buffercreate(int capacity)Returns a newVkPhysicalDeviceExternalBufferInfo.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceExternalBufferInfocreate(long address)Returns a newVkPhysicalDeviceExternalBufferInfoinstance for the specified memory address.static VkPhysicalDeviceExternalBufferInfo.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceExternalBufferInfo.Bufferinstance at the specified memory.static VkPhysicalDeviceExternalBufferInfocreateSafe(long address)static VkPhysicalDeviceExternalBufferInfo.BuffercreateSafe(long address, int capacity)intflags()Returns the value of theflagsfield.VkPhysicalDeviceExternalBufferInfoflags(int value)Sets the specified value to theflagsfield.inthandleType()Returns the value of thehandleTypefield.VkPhysicalDeviceExternalBufferInfohandleType(int value)Sets the specified value to thehandleTypefield.static VkPhysicalDeviceExternalBufferInfomalloc()Returns a newVkPhysicalDeviceExternalBufferInfoinstance allocated withmemAlloc.static VkPhysicalDeviceExternalBufferInfo.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceExternalBufferInfo.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceExternalBufferInfomallocStack()Returns a newVkPhysicalDeviceExternalBufferInfoinstance allocated on the thread-localMemoryStack.static VkPhysicalDeviceExternalBufferInfo.BuffermallocStack(int capacity)Returns a newVkPhysicalDeviceExternalBufferInfo.Bufferinstance allocated on the thread-localMemoryStack.static VkPhysicalDeviceExternalBufferInfo.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceExternalBufferInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceExternalBufferInfomallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceExternalBufferInfoinstance allocated on the specifiedMemoryStack.static intnflags(long struct)Unsafe version offlags().static voidnflags(long struct, int value)Unsafe version offlags.static intnhandleType(long struct)Unsafe version ofhandleType().static voidnhandleType(long struct, int value)Unsafe version ofhandleType.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.static intnusage(long struct)Unsafe version ofusage().static voidnusage(long struct, int value)Unsafe version ofusage.longpNext()Returns the value of thepNextfield.VkPhysicalDeviceExternalBufferInfopNext(long value)Sets the specified value to thepNextfield.VkPhysicalDeviceExternalBufferInfoset(int sType, long pNext, int flags, int usage, int handleType)Initializes this struct with the specified values.VkPhysicalDeviceExternalBufferInfoset(VkPhysicalDeviceExternalBufferInfo src)Copies the specified struct data to this struct.intsizeof()intsType()Returns the value of thesTypefield.VkPhysicalDeviceExternalBufferInfosType(int value)Sets the specified value to thesTypefield.intusage()Returns the value of theusagefield.VkPhysicalDeviceExternalBufferInfousage(int value)Sets the specified value to theusagefield.
-
-
-
Constructor Detail
-
VkPhysicalDeviceExternalBufferInfo
public VkPhysicalDeviceExternalBufferInfo(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceExternalBufferInfoinstance 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.
-
flags
public int flags()
Returns the value of theflagsfield.
-
usage
public int usage()
Returns the value of theusagefield.
-
handleType
public int handleType()
Returns the value of thehandleTypefield.
-
sType
public VkPhysicalDeviceExternalBufferInfo sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkPhysicalDeviceExternalBufferInfo pNext(long value)
Sets the specified value to thepNextfield.
-
flags
public VkPhysicalDeviceExternalBufferInfo flags(int value)
Sets the specified value to theflagsfield.
-
usage
public VkPhysicalDeviceExternalBufferInfo usage(int value)
Sets the specified value to theusagefield.
-
handleType
public VkPhysicalDeviceExternalBufferInfo handleType(int value)
Sets the specified value to thehandleTypefield.
-
set
public VkPhysicalDeviceExternalBufferInfo set(int sType, long pNext, int flags, int usage, int handleType)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceExternalBufferInfo set(VkPhysicalDeviceExternalBufferInfo src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceExternalBufferInfo malloc()
Returns a newVkPhysicalDeviceExternalBufferInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceExternalBufferInfo calloc()
Returns a newVkPhysicalDeviceExternalBufferInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceExternalBufferInfo create()
Returns a newVkPhysicalDeviceExternalBufferInfoinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceExternalBufferInfo create(long address)
Returns a newVkPhysicalDeviceExternalBufferInfoinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceExternalBufferInfo createSafe(long address)
-
malloc
public static VkPhysicalDeviceExternalBufferInfo.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceExternalBufferInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceExternalBufferInfo.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceExternalBufferInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceExternalBufferInfo.Buffer create(int capacity)
Returns a newVkPhysicalDeviceExternalBufferInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceExternalBufferInfo.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceExternalBufferInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceExternalBufferInfo.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkPhysicalDeviceExternalBufferInfo mallocStack()
Returns a newVkPhysicalDeviceExternalBufferInfoinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkPhysicalDeviceExternalBufferInfo callocStack()
Returns a newVkPhysicalDeviceExternalBufferInfoinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkPhysicalDeviceExternalBufferInfo mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceExternalBufferInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkPhysicalDeviceExternalBufferInfo callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceExternalBufferInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkPhysicalDeviceExternalBufferInfo.Buffer mallocStack(int capacity)
Returns a newVkPhysicalDeviceExternalBufferInfo.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkPhysicalDeviceExternalBufferInfo.Buffer callocStack(int capacity)
Returns a newVkPhysicalDeviceExternalBufferInfo.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkPhysicalDeviceExternalBufferInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceExternalBufferInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkPhysicalDeviceExternalBufferInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceExternalBufferInfo.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().
-
nflags
public static int nflags(long struct)
Unsafe version offlags().
-
nusage
public static int nusage(long struct)
Unsafe version ofusage().
-
nhandleType
public static int nhandleType(long struct)
Unsafe version ofhandleType().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nflags
public static void nflags(long struct, int value)Unsafe version offlags.
-
nusage
public static void nusage(long struct, int value)Unsafe version ofusage.
-
nhandleType
public static void nhandleType(long struct, int value)Unsafe version ofhandleType.
-
-