Package org.lwjgl.vulkan
Class VkExternalImageFormatPropertiesNV
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkExternalImageFormatPropertiesNV
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class VkExternalImageFormatPropertiesNV extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Structure specifying external image format properties.Member documentation
imageFormatProperties
– will be filled in as when callingGetPhysicalDeviceImageFormatProperties
, but the values returned may vary depending on the external handle type requested.externalMemoryFeatures
– a bitmask ofVkExternalMemoryFeatureFlagBitsNV
, indicating properties of the external memory handle type (GetPhysicalDeviceExternalImageFormatPropertiesNV
::externalHandleType
) being queried, or 0 if the external memory handle type is 0.exportFromImportedHandleTypes
– a bitmask ofVkExternalMemoryHandleTypeFlagBitsNV
containing a bit set for every external handle type that may be used to create memory from which the handles of the type specified inGetPhysicalDeviceExternalImageFormatPropertiesNV
::externalHandleType
can be exported, or 0 if the external memory handle type is 0.compatibleHandleTypes
– a bitmask ofVkExternalMemoryHandleTypeFlagBitsNV
containing a bit set for every external handle type that may be specified simultaneously with the handle type specified byGetPhysicalDeviceExternalImageFormatPropertiesNV
::externalHandleType
when callingAllocateMemory
, or 0 if the external memory handle type is 0.compatibleHandleTypes
will always containGetPhysicalDeviceExternalImageFormatPropertiesNV
::externalHandleType
Layout
struct VkExternalImageFormatPropertiesNV {
VkImageFormatProperties
imageFormatProperties; VkExternalMemoryFeatureFlagsNV externalMemoryFeatures; VkExternalMemoryHandleTypeFlagsNV exportFromImportedHandleTypes; VkExternalMemoryHandleTypeFlagsNV compatibleHandleTypes; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VkExternalImageFormatPropertiesNV.Buffer
An array ofVkExternalImageFormatPropertiesNV
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
COMPATIBLEHANDLETYPES
EXPORTFROMIMPORTEDHANDLETYPES
EXTERNALMEMORYFEATURES
IMAGEFORMATPROPERTIESThe struct member offsets.static int
SIZEOF
The struct size in bytes.
-
Constructor Summary
Constructors Constructor Description VkExternalImageFormatPropertiesNV(java.nio.ByteBuffer container)
Creates aVkExternalImageFormatPropertiesNV
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkExternalImageFormatPropertiesNV
calloc()
Returns a newVkExternalImageFormatPropertiesNV
instance allocated withmemCalloc
.static VkExternalImageFormatPropertiesNV.Buffer
calloc(int capacity)
Returns a newVkExternalImageFormatPropertiesNV.Buffer
instance allocated withmemCalloc
.static VkExternalImageFormatPropertiesNV
callocStack()
Returns a newVkExternalImageFormatPropertiesNV
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkExternalImageFormatPropertiesNV.Buffer
callocStack(int capacity)
Returns a newVkExternalImageFormatPropertiesNV.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkExternalImageFormatPropertiesNV.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkExternalImageFormatPropertiesNV.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkExternalImageFormatPropertiesNV
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkExternalImageFormatPropertiesNV
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.int
compatibleHandleTypes()
Returns the value of thecompatibleHandleTypes
field.static VkExternalImageFormatPropertiesNV
create()
Returns a newVkExternalImageFormatPropertiesNV
instance allocated withBufferUtils
.static VkExternalImageFormatPropertiesNV.Buffer
create(int capacity)
Returns a newVkExternalImageFormatPropertiesNV.Buffer
instance allocated withBufferUtils
.static VkExternalImageFormatPropertiesNV
create(long address)
Returns a newVkExternalImageFormatPropertiesNV
instance for the specified memory address.static VkExternalImageFormatPropertiesNV.Buffer
create(long address, int capacity)
Create aVkExternalImageFormatPropertiesNV.Buffer
instance at the specified memory.static VkExternalImageFormatPropertiesNV
createSafe(long address)
static VkExternalImageFormatPropertiesNV.Buffer
createSafe(long address, int capacity)
int
exportFromImportedHandleTypes()
Returns the value of theexportFromImportedHandleTypes
field.int
externalMemoryFeatures()
Returns the value of theexternalMemoryFeatures
field.VkImageFormatProperties
imageFormatProperties()
Returns aVkImageFormatProperties
view of theimageFormatProperties
field.static VkExternalImageFormatPropertiesNV
malloc()
Returns a newVkExternalImageFormatPropertiesNV
instance allocated withmemAlloc
.static VkExternalImageFormatPropertiesNV.Buffer
malloc(int capacity)
Returns a newVkExternalImageFormatPropertiesNV.Buffer
instance allocated withmemAlloc
.static VkExternalImageFormatPropertiesNV
mallocStack()
Returns a newVkExternalImageFormatPropertiesNV
instance allocated on the thread-localMemoryStack
.static VkExternalImageFormatPropertiesNV.Buffer
mallocStack(int capacity)
Returns a newVkExternalImageFormatPropertiesNV.Buffer
instance allocated on the thread-localMemoryStack
.static VkExternalImageFormatPropertiesNV.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkExternalImageFormatPropertiesNV.Buffer
instance allocated on the specifiedMemoryStack
.static VkExternalImageFormatPropertiesNV
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkExternalImageFormatPropertiesNV
instance allocated on the specifiedMemoryStack
.static int
ncompatibleHandleTypes(long struct)
Unsafe version ofcompatibleHandleTypes()
.static int
nexportFromImportedHandleTypes(long struct)
Unsafe version ofexportFromImportedHandleTypes()
.static int
nexternalMemoryFeatures(long struct)
Unsafe version ofexternalMemoryFeatures()
.static VkImageFormatProperties
nimageFormatProperties(long struct)
Unsafe version ofimageFormatProperties()
.int
sizeof()
-
-
-
Constructor Detail
-
VkExternalImageFormatPropertiesNV
public VkExternalImageFormatPropertiesNV(java.nio.ByteBuffer container)
Creates aVkExternalImageFormatPropertiesNV
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
imageFormatProperties
public VkImageFormatProperties imageFormatProperties()
Returns aVkImageFormatProperties
view of theimageFormatProperties
field.
-
externalMemoryFeatures
public int externalMemoryFeatures()
Returns the value of theexternalMemoryFeatures
field.
-
exportFromImportedHandleTypes
public int exportFromImportedHandleTypes()
Returns the value of theexportFromImportedHandleTypes
field.
-
compatibleHandleTypes
public int compatibleHandleTypes()
Returns the value of thecompatibleHandleTypes
field.
-
malloc
public static VkExternalImageFormatPropertiesNV malloc()
Returns a newVkExternalImageFormatPropertiesNV
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkExternalImageFormatPropertiesNV calloc()
Returns a newVkExternalImageFormatPropertiesNV
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkExternalImageFormatPropertiesNV create()
Returns a newVkExternalImageFormatPropertiesNV
instance allocated withBufferUtils
.
-
create
public static VkExternalImageFormatPropertiesNV create(long address)
Returns a newVkExternalImageFormatPropertiesNV
instance for the specified memory address.
-
createSafe
@Nullable public static VkExternalImageFormatPropertiesNV createSafe(long address)
-
malloc
public static VkExternalImageFormatPropertiesNV.Buffer malloc(int capacity)
Returns a newVkExternalImageFormatPropertiesNV.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkExternalImageFormatPropertiesNV.Buffer calloc(int capacity)
Returns a newVkExternalImageFormatPropertiesNV.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkExternalImageFormatPropertiesNV.Buffer create(int capacity)
Returns a newVkExternalImageFormatPropertiesNV.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkExternalImageFormatPropertiesNV.Buffer create(long address, int capacity)
Create aVkExternalImageFormatPropertiesNV.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VkExternalImageFormatPropertiesNV.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkExternalImageFormatPropertiesNV mallocStack()
Returns a newVkExternalImageFormatPropertiesNV
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkExternalImageFormatPropertiesNV callocStack()
Returns a newVkExternalImageFormatPropertiesNV
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkExternalImageFormatPropertiesNV mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkExternalImageFormatPropertiesNV
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkExternalImageFormatPropertiesNV callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkExternalImageFormatPropertiesNV
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VkExternalImageFormatPropertiesNV.Buffer mallocStack(int capacity)
Returns a newVkExternalImageFormatPropertiesNV.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkExternalImageFormatPropertiesNV.Buffer callocStack(int capacity)
Returns a newVkExternalImageFormatPropertiesNV.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkExternalImageFormatPropertiesNV.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkExternalImageFormatPropertiesNV.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VkExternalImageFormatPropertiesNV.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkExternalImageFormatPropertiesNV.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
nimageFormatProperties
public static VkImageFormatProperties nimageFormatProperties(long struct)
Unsafe version ofimageFormatProperties()
.
-
nexternalMemoryFeatures
public static int nexternalMemoryFeatures(long struct)
Unsafe version ofexternalMemoryFeatures()
.
-
nexportFromImportedHandleTypes
public static int nexportFromImportedHandleTypes(long struct)
Unsafe version ofexportFromImportedHandleTypes()
.
-
ncompatibleHandleTypes
public static int ncompatibleHandleTypes(long struct)
Unsafe version ofcompatibleHandleTypes()
.
-
-