public class VkExternalBufferProperties
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
sType must be STRUCTURE_TYPE_EXTERNAL_BUFFER_PROPERTIESpNext must be NULLVkExternalMemoryProperties, GetPhysicalDeviceExternalBufferProperties, GetPhysicalDeviceExternalBufferPropertiesKHR
sType – the type of this structurepNext – NULL or a pointer to an extension-specific structure.externalMemoryProperties – a VkExternalMemoryProperties structure specifying various capabilities of the external handle type when used with the specified buffer creation parameters.
struct VkExternalBufferProperties {
VkStructureType sType;
void * pNext;
VkExternalMemoryProperties externalMemoryProperties;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkExternalBufferProperties.Buffer
An array of
VkExternalBufferProperties structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
EXTERNALMEMORYPROPERTIES
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.
|
| Constructor and Description |
|---|
VkExternalBufferProperties(java.nio.ByteBuffer container)
Creates a
VkExternalBufferProperties instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkExternalBufferProperties |
calloc()
Returns a new
VkExternalBufferProperties instance allocated with memCalloc. |
static VkExternalBufferProperties.Buffer |
calloc(int capacity)
Returns a new
VkExternalBufferProperties.Buffer instance allocated with memCalloc. |
static VkExternalBufferProperties |
callocStack()
Returns a new
VkExternalBufferProperties instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkExternalBufferProperties.Buffer |
callocStack(int capacity)
Returns a new
VkExternalBufferProperties.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkExternalBufferProperties.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkExternalBufferProperties.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkExternalBufferProperties |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkExternalBufferProperties instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkExternalBufferProperties |
create()
Returns a new
VkExternalBufferProperties instance allocated with BufferUtils. |
static VkExternalBufferProperties.Buffer |
create(int capacity)
Returns a new
VkExternalBufferProperties.Buffer instance allocated with BufferUtils. |
static VkExternalBufferProperties |
create(long address)
Returns a new
VkExternalBufferProperties instance for the specified memory address. |
static VkExternalBufferProperties.Buffer |
create(long address,
int capacity)
Create a
VkExternalBufferProperties.Buffer instance at the specified memory. |
static VkExternalBufferProperties |
createSafe(long address)
|
static VkExternalBufferProperties.Buffer |
createSafe(long address,
int capacity)
|
VkExternalMemoryProperties |
externalMemoryProperties()
Returns a
VkExternalMemoryProperties view of the externalMemoryProperties field. |
static VkExternalBufferProperties |
malloc()
Returns a new
VkExternalBufferProperties instance allocated with memAlloc. |
static VkExternalBufferProperties.Buffer |
malloc(int capacity)
Returns a new
VkExternalBufferProperties.Buffer instance allocated with memAlloc. |
static VkExternalBufferProperties |
mallocStack()
Returns a new
VkExternalBufferProperties instance allocated on the thread-local MemoryStack. |
static VkExternalBufferProperties.Buffer |
mallocStack(int capacity)
Returns a new
VkExternalBufferProperties.Buffer instance allocated on the thread-local MemoryStack. |
static VkExternalBufferProperties.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkExternalBufferProperties.Buffer instance allocated on the specified MemoryStack. |
static VkExternalBufferProperties |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkExternalBufferProperties instance allocated on the specified MemoryStack. |
static VkExternalMemoryProperties |
nexternalMemoryProperties(long struct)
Unsafe version of
externalMemoryProperties(). |
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. |
long |
pNext()
Returns the value of the
pNext field. |
VkExternalBufferProperties |
pNext(long value)
Sets the specified value to the
pNext field. |
VkExternalBufferProperties |
set(int sType,
long pNext)
Initializes this struct with the specified values.
|
VkExternalBufferProperties |
set(VkExternalBufferProperties src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkExternalBufferProperties |
sType(int value)
Sets the specified value to the
sType 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 EXTERNALMEMORYPROPERTIES
public VkExternalBufferProperties(java.nio.ByteBuffer container)
VkExternalBufferProperties 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 VkExternalMemoryProperties externalMemoryProperties()
VkExternalMemoryProperties view of the externalMemoryProperties field.public VkExternalBufferProperties sType(int value)
sType field.public VkExternalBufferProperties pNext(long value)
pNext field.public VkExternalBufferProperties set(int sType, long pNext)
public VkExternalBufferProperties set(VkExternalBufferProperties src)
src - the source structpublic static VkExternalBufferProperties malloc()
VkExternalBufferProperties instance allocated with memAlloc. The instance must be explicitly freed.public static VkExternalBufferProperties calloc()
VkExternalBufferProperties instance allocated with memCalloc. The instance must be explicitly freed.public static VkExternalBufferProperties create()
VkExternalBufferProperties instance allocated with BufferUtils.public static VkExternalBufferProperties create(long address)
VkExternalBufferProperties instance for the specified memory address.@Nullable public static VkExternalBufferProperties createSafe(long address)
public static VkExternalBufferProperties.Buffer malloc(int capacity)
VkExternalBufferProperties.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkExternalBufferProperties.Buffer calloc(int capacity)
VkExternalBufferProperties.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkExternalBufferProperties.Buffer create(int capacity)
VkExternalBufferProperties.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkExternalBufferProperties.Buffer create(long address, int capacity)
VkExternalBufferProperties.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkExternalBufferProperties.Buffer createSafe(long address, int capacity)
public static VkExternalBufferProperties mallocStack()
VkExternalBufferProperties instance allocated on the thread-local MemoryStack.public static VkExternalBufferProperties callocStack()
VkExternalBufferProperties instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkExternalBufferProperties mallocStack(org.lwjgl.system.MemoryStack stack)
VkExternalBufferProperties instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkExternalBufferProperties callocStack(org.lwjgl.system.MemoryStack stack)
VkExternalBufferProperties instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkExternalBufferProperties.Buffer mallocStack(int capacity)
VkExternalBufferProperties.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkExternalBufferProperties.Buffer callocStack(int capacity)
VkExternalBufferProperties.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkExternalBufferProperties.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkExternalBufferProperties.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkExternalBufferProperties.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkExternalBufferProperties.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 VkExternalMemoryProperties nexternalMemoryProperties(long struct)
externalMemoryProperties().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.Copyright LWJGL. All Rights Reserved. License terms.