public class VkPhysicalDeviceExternalBufferInfo
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
sType must be STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_BUFFER_INFOpNext must be NULLflags must be a valid combination of VkBufferCreateFlagBits valuesusage must be a valid combination of VkBufferUsageFlagBits valuesusage must not be 0handleType must be a valid VkExternalMemoryHandleTypeFlagBits valueGetPhysicalDeviceExternalBufferProperties, GetPhysicalDeviceExternalBufferPropertiesKHR
sType – the type of this structurepNext – NULL or a pointer to an extension-specific structure.flags – a bitmask of VkBufferCreateFlagBits describing additional parameters of the buffer, corresponding to VkBufferCreateInfo::flags.usage – a bitmask of VkBufferUsageFlagBits describing the intended usage of the buffer, corresponding to VkBufferCreateInfo::usage.handleType – a VkExternalMemoryHandleTypeFlagBits value specifying the memory handle type that will be used with the memory associated with the buffer.
struct VkPhysicalDeviceExternalBufferInfo {
VkStructureType sType;
void const * pNext;
VkBufferCreateFlags flags;
VkBufferUsageFlags usage;
VkExternalMemoryHandleTypeFlagBits handleType;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkPhysicalDeviceExternalBufferInfo.Buffer
An array of
VkPhysicalDeviceExternalBufferInfo structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
FLAGS
The struct member offsets.
|
static int |
HANDLETYPE
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
static int |
USAGE
The struct member offsets.
|
| Constructor and Description |
|---|
VkPhysicalDeviceExternalBufferInfo(java.nio.ByteBuffer container)
Creates a
VkPhysicalDeviceExternalBufferInfo instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkPhysicalDeviceExternalBufferInfo |
calloc()
Returns a new
VkPhysicalDeviceExternalBufferInfo instance allocated with memCalloc. |
static VkPhysicalDeviceExternalBufferInfo.Buffer |
calloc(int capacity)
Returns a new
VkPhysicalDeviceExternalBufferInfo.Buffer instance allocated with memCalloc. |
static VkPhysicalDeviceExternalBufferInfo |
callocStack()
Returns a new
VkPhysicalDeviceExternalBufferInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceExternalBufferInfo.Buffer |
callocStack(int capacity)
Returns a new
VkPhysicalDeviceExternalBufferInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceExternalBufferInfo.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceExternalBufferInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceExternalBufferInfo |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceExternalBufferInfo instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceExternalBufferInfo |
create()
Returns a new
VkPhysicalDeviceExternalBufferInfo instance allocated with BufferUtils. |
static VkPhysicalDeviceExternalBufferInfo.Buffer |
create(int capacity)
Returns a new
VkPhysicalDeviceExternalBufferInfo.Buffer instance allocated with BufferUtils. |
static VkPhysicalDeviceExternalBufferInfo |
create(long address)
Returns a new
VkPhysicalDeviceExternalBufferInfo instance for the specified memory address. |
static VkPhysicalDeviceExternalBufferInfo.Buffer |
create(long address,
int capacity)
Create a
VkPhysicalDeviceExternalBufferInfo.Buffer instance at the specified memory. |
static VkPhysicalDeviceExternalBufferInfo |
createSafe(long address)
|
static VkPhysicalDeviceExternalBufferInfo.Buffer |
createSafe(long address,
int capacity)
|
int |
flags()
Returns the value of the
flags field. |
VkPhysicalDeviceExternalBufferInfo |
flags(int value)
Sets the specified value to the
flags field. |
int |
handleType()
Returns the value of the
handleType field. |
VkPhysicalDeviceExternalBufferInfo |
handleType(int value)
Sets the specified value to the
handleType field. |
static VkPhysicalDeviceExternalBufferInfo |
malloc()
Returns a new
VkPhysicalDeviceExternalBufferInfo instance allocated with memAlloc. |
static VkPhysicalDeviceExternalBufferInfo.Buffer |
malloc(int capacity)
Returns a new
VkPhysicalDeviceExternalBufferInfo.Buffer instance allocated with memAlloc. |
static VkPhysicalDeviceExternalBufferInfo |
mallocStack()
Returns a new
VkPhysicalDeviceExternalBufferInfo instance allocated on the thread-local MemoryStack. |
static VkPhysicalDeviceExternalBufferInfo.Buffer |
mallocStack(int capacity)
Returns a new
VkPhysicalDeviceExternalBufferInfo.Buffer instance allocated on the thread-local MemoryStack. |
static VkPhysicalDeviceExternalBufferInfo.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceExternalBufferInfo.Buffer instance allocated on the specified MemoryStack. |
static VkPhysicalDeviceExternalBufferInfo |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceExternalBufferInfo instance allocated on the specified MemoryStack. |
static int |
nflags(long struct)
Unsafe version of
flags(). |
static void |
nflags(long struct,
int value)
Unsafe version of
flags. |
static int |
nhandleType(long struct)
Unsafe version of
handleType(). |
static void |
nhandleType(long struct,
int value)
Unsafe version of
handleType. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
static int |
nusage(long struct)
Unsafe version of
usage(). |
static void |
nusage(long struct,
int value)
Unsafe version of
usage. |
long |
pNext()
Returns the value of the
pNext field. |
VkPhysicalDeviceExternalBufferInfo |
pNext(long value)
Sets the specified value to the
pNext field. |
VkPhysicalDeviceExternalBufferInfo |
set(int sType,
long pNext,
int flags,
int usage,
int handleType)
Initializes this struct with the specified values.
|
VkPhysicalDeviceExternalBufferInfo |
set(VkPhysicalDeviceExternalBufferInfo src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkPhysicalDeviceExternalBufferInfo |
sType(int value)
Sets the specified value to the
sType field. |
int |
usage()
Returns the value of the
usage field. |
VkPhysicalDeviceExternalBufferInfo |
usage(int value)
Sets the specified value to the
usage field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STYPE
public static final int PNEXT
public static final int FLAGS
public static final int USAGE
public static final int HANDLETYPE
public VkPhysicalDeviceExternalBufferInfo(java.nio.ByteBuffer container)
VkPhysicalDeviceExternalBufferInfo instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int sType()
sType field.public long pNext()
pNext field.public int flags()
flags field.public int usage()
usage field.public int handleType()
handleType field.public VkPhysicalDeviceExternalBufferInfo sType(int value)
sType field.public VkPhysicalDeviceExternalBufferInfo pNext(long value)
pNext field.public VkPhysicalDeviceExternalBufferInfo flags(int value)
flags field.public VkPhysicalDeviceExternalBufferInfo usage(int value)
usage field.public VkPhysicalDeviceExternalBufferInfo handleType(int value)
handleType field.public VkPhysicalDeviceExternalBufferInfo set(int sType, long pNext, int flags, int usage, int handleType)
public VkPhysicalDeviceExternalBufferInfo set(VkPhysicalDeviceExternalBufferInfo src)
src - the source structpublic static VkPhysicalDeviceExternalBufferInfo malloc()
VkPhysicalDeviceExternalBufferInfo instance allocated with memAlloc. The instance must be explicitly freed.public static VkPhysicalDeviceExternalBufferInfo calloc()
VkPhysicalDeviceExternalBufferInfo instance allocated with memCalloc. The instance must be explicitly freed.public static VkPhysicalDeviceExternalBufferInfo create()
VkPhysicalDeviceExternalBufferInfo instance allocated with BufferUtils.public static VkPhysicalDeviceExternalBufferInfo create(long address)
VkPhysicalDeviceExternalBufferInfo instance for the specified memory address.@Nullable public static VkPhysicalDeviceExternalBufferInfo createSafe(long address)
public static VkPhysicalDeviceExternalBufferInfo.Buffer malloc(int capacity)
VkPhysicalDeviceExternalBufferInfo.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPhysicalDeviceExternalBufferInfo.Buffer calloc(int capacity)
VkPhysicalDeviceExternalBufferInfo.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPhysicalDeviceExternalBufferInfo.Buffer create(int capacity)
VkPhysicalDeviceExternalBufferInfo.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkPhysicalDeviceExternalBufferInfo.Buffer create(long address, int capacity)
VkPhysicalDeviceExternalBufferInfo.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkPhysicalDeviceExternalBufferInfo.Buffer createSafe(long address, int capacity)
public static VkPhysicalDeviceExternalBufferInfo mallocStack()
VkPhysicalDeviceExternalBufferInfo instance allocated on the thread-local MemoryStack.public static VkPhysicalDeviceExternalBufferInfo callocStack()
VkPhysicalDeviceExternalBufferInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkPhysicalDeviceExternalBufferInfo mallocStack(org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceExternalBufferInfo instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkPhysicalDeviceExternalBufferInfo callocStack(org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceExternalBufferInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkPhysicalDeviceExternalBufferInfo.Buffer mallocStack(int capacity)
VkPhysicalDeviceExternalBufferInfo.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkPhysicalDeviceExternalBufferInfo.Buffer callocStack(int capacity)
VkPhysicalDeviceExternalBufferInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkPhysicalDeviceExternalBufferInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceExternalBufferInfo.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkPhysicalDeviceExternalBufferInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceExternalBufferInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nsType(long struct)
sType().public static long npNext(long struct)
pNext().public static int nflags(long struct)
flags().public static int nusage(long struct)
usage().public static int nhandleType(long struct)
handleType().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nflags(long struct,
int value)
flags.public static void nusage(long struct,
int value)
usage.public static void nhandleType(long struct,
int value)
handleType.Copyright LWJGL. All Rights Reserved. License terms.