Package org.lwjgl.vulkan
Class VkPhysicalDeviceToolProperties
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceToolProperties
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkPhysicalDeviceToolPropertiesEXT
public class VkPhysicalDeviceToolProperties extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure providing information about an active tool.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_PHYSICAL_DEVICE_TOOL_PROPERTIESpNextmust beNULL
See Also
GetPhysicalDeviceToolProperties,GetPhysicalDeviceToolPropertiesEXTLayout
struct VkPhysicalDeviceToolProperties { VkStructureTypesType(); void *pNext(); charname()[VK_MAX_EXTENSION_NAME_SIZE]; charversion()[VK_MAX_EXTENSION_NAME_SIZE]; VkToolPurposeFlagspurposes(); chardescription()[VK_MAX_DESCRIPTION_SIZE]; charlayer()[VK_MAX_EXTENSION_NAME_SIZE]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceToolProperties.BufferAn array ofVkPhysicalDeviceToolPropertiesstructs.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceToolProperties(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceToolPropertiesinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDeviceToolPropertiescalloc()Returns a newVkPhysicalDeviceToolPropertiesinstance allocated withmemCalloc.static VkPhysicalDeviceToolProperties.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceToolProperties.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceToolProperties.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceToolProperties.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceToolPropertiescalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceToolPropertiesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceToolPropertiescreate()Returns a newVkPhysicalDeviceToolPropertiesinstance allocated withBufferUtils.static VkPhysicalDeviceToolProperties.Buffercreate(int capacity)Returns a newVkPhysicalDeviceToolProperties.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceToolPropertiescreate(long address)Returns a newVkPhysicalDeviceToolPropertiesinstance for the specified memory address.static VkPhysicalDeviceToolProperties.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceToolProperties.Bufferinstance at the specified memory.static VkPhysicalDeviceToolPropertiescreateSafe(long address)static VkPhysicalDeviceToolProperties.BuffercreateSafe(long address, int capacity)java.nio.ByteBufferdescription()a null-terminated UTF-8 string containing a description of the tool.java.lang.StringdescriptionString()a null-terminated UTF-8 string containing a description of the tool.java.nio.ByteBufferlayer()a null-terminated UTF-8 string containing the name of the layer implementing the tool, if the tool is implemented in a layer - otherwise it may be an empty string.java.lang.StringlayerString()a null-terminated UTF-8 string containing the name of the layer implementing the tool, if the tool is implemented in a layer - otherwise it may be an empty string.static VkPhysicalDeviceToolPropertiesmalloc()Returns a newVkPhysicalDeviceToolPropertiesinstance allocated withmemAlloc.static VkPhysicalDeviceToolProperties.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceToolProperties.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceToolProperties.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceToolProperties.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceToolPropertiesmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceToolPropertiesinstance allocated on the specifiedMemoryStack.java.nio.ByteBuffername()a null-terminated UTF-8 string containing the name of the tool.java.lang.StringnameString()a null-terminated UTF-8 string containing the name of the tool.static java.nio.ByteBufferndescription(long struct)Unsafe version ofdescription().static java.lang.StringndescriptionString(long struct)Unsafe version ofdescriptionString().static java.nio.ByteBuffernlayer(long struct)Unsafe version oflayer().static java.lang.StringnlayerString(long struct)Unsafe version oflayerString().static java.nio.ByteBuffernname(long struct)Unsafe version ofname().static java.lang.StringnnameString(long struct)Unsafe version ofnameString().static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnpurposes(long struct)Unsafe version ofpurposes().static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.static java.nio.ByteBuffernversion(long struct)Unsafe version ofversion().static java.lang.StringnversionString(long struct)Unsafe version ofversionString().longpNext()NULLor a pointer to a structure extending this structure.VkPhysicalDeviceToolPropertiespNext(long value)Sets the specified value to thepNext()field.intpurposes()a bitmask ofVkToolPurposeFlagBitswhich is populated with purposes supported by the tool.VkPhysicalDeviceToolPropertiesset(int sType, long pNext)Initializes this struct with the specified values.VkPhysicalDeviceToolPropertiesset(VkPhysicalDeviceToolProperties src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkPhysicalDeviceToolPropertiessType(int value)Sets the specified value to thesType()field.VkPhysicalDeviceToolPropertiessType$Default()Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_TOOL_PROPERTIESvalue to thesType()field.java.nio.ByteBufferversion()a null-terminated UTF-8 string containing the version of the tool.java.lang.StringversionString()a null-terminated UTF-8 string containing the version of the tool.
-
-
-
Constructor Detail
-
VkPhysicalDeviceToolProperties
public VkPhysicalDeviceToolProperties(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceToolPropertiesinstance 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()
the type of this structure.
-
pNext
public long pNext()
NULLor a pointer to a structure extending this structure.
-
name, nameString
public java.nio.ByteBuffer name() public java.lang.String nameString()
a null-terminated UTF-8 string containing the name of the tool.
-
version, versionString
public java.nio.ByteBuffer version() public java.lang.String versionString()
a null-terminated UTF-8 string containing the version of the tool.
-
purposes
public int purposes()
a bitmask ofVkToolPurposeFlagBitswhich is populated with purposes supported by the tool.
-
description, descriptionString
public java.nio.ByteBuffer description() public java.lang.String descriptionString()
a null-terminated UTF-8 string containing a description of the tool.
-
layer, layerString
public java.nio.ByteBuffer layer() public java.lang.String layerString()
a null-terminated UTF-8 string containing the name of the layer implementing the tool, if the tool is implemented in a layer - otherwise it may be an empty string.
-
sType
public VkPhysicalDeviceToolProperties sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPhysicalDeviceToolProperties sType$Default()
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_TOOL_PROPERTIESvalue to thesType()field.
-
pNext
public VkPhysicalDeviceToolProperties pNext(long value)
Sets the specified value to thepNext()field.
-
set
public VkPhysicalDeviceToolProperties set(int sType, long pNext)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceToolProperties set(VkPhysicalDeviceToolProperties src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceToolProperties malloc()
Returns a newVkPhysicalDeviceToolPropertiesinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceToolProperties calloc()
Returns a newVkPhysicalDeviceToolPropertiesinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceToolProperties create()
Returns a newVkPhysicalDeviceToolPropertiesinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceToolProperties create(long address)
Returns a newVkPhysicalDeviceToolPropertiesinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceToolProperties createSafe(long address)
-
malloc
public static VkPhysicalDeviceToolProperties.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceToolProperties.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceToolProperties.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceToolProperties.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceToolProperties.Buffer create(int capacity)
Returns a newVkPhysicalDeviceToolProperties.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceToolProperties.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceToolProperties.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceToolProperties.Buffer createSafe(long address, int capacity)
-
malloc
public static VkPhysicalDeviceToolProperties malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceToolPropertiesinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPhysicalDeviceToolProperties calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceToolPropertiesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPhysicalDeviceToolProperties.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceToolProperties.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceToolProperties.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceToolProperties.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().
-
nname
public static java.nio.ByteBuffer nname(long struct)
Unsafe version ofname().
-
nnameString
public static java.lang.String nnameString(long struct)
Unsafe version ofnameString().
-
nversion
public static java.nio.ByteBuffer nversion(long struct)
Unsafe version ofversion().
-
nversionString
public static java.lang.String nversionString(long struct)
Unsafe version ofversionString().
-
npurposes
public static int npurposes(long struct)
Unsafe version ofpurposes().
-
ndescription
public static java.nio.ByteBuffer ndescription(long struct)
Unsafe version ofdescription().
-
ndescriptionString
public static java.lang.String ndescriptionString(long struct)
Unsafe version ofdescriptionString().
-
nlayer
public static java.nio.ByteBuffer nlayer(long struct)
Unsafe version oflayer().
-
nlayerString
public static java.lang.String nlayerString(long struct)
Unsafe version oflayerString().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
-