Package org.lwjgl.vulkan
Class VkPhysicalDeviceDrmPropertiesEXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceDrmPropertiesEXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkPhysicalDeviceDrmPropertiesEXT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure containing DRM information of a physical device.Description
If the
VkPhysicalDeviceDrmPropertiesEXTstructure is included in thepNextchain of theVkPhysicalDeviceProperties2structure passed toGetPhysicalDeviceProperties2, it is filled in with each corresponding implementation-dependent property.These are properties of the DRM information of a physical device.
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_PHYSICAL_DEVICE_DRM_PROPERTIES_EXT
Layout
struct VkPhysicalDeviceDrmPropertiesEXT { VkStructureTypesType(); void *pNext(); VkBool32hasPrimary(); VkBool32hasRender(); int64_tprimaryMajor(); int64_tprimaryMinor(); int64_trenderMajor(); int64_trenderMinor(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceDrmPropertiesEXT.BufferAn array ofVkPhysicalDeviceDrmPropertiesEXTstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intHASPRIMARY
HASRENDER
PNEXT
PRIMARYMAJOR
PRIMARYMINOR
RENDERMAJOR
RENDERMINORThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceDrmPropertiesEXT(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceDrmPropertiesEXTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDeviceDrmPropertiesEXTcalloc()Returns a newVkPhysicalDeviceDrmPropertiesEXTinstance allocated withmemCalloc.static VkPhysicalDeviceDrmPropertiesEXT.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceDrmPropertiesEXT.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceDrmPropertiesEXT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceDrmPropertiesEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceDrmPropertiesEXTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceDrmPropertiesEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceDrmPropertiesEXTcreate()Returns a newVkPhysicalDeviceDrmPropertiesEXTinstance allocated withBufferUtils.static VkPhysicalDeviceDrmPropertiesEXT.Buffercreate(int capacity)Returns a newVkPhysicalDeviceDrmPropertiesEXT.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceDrmPropertiesEXTcreate(long address)Returns a newVkPhysicalDeviceDrmPropertiesEXTinstance for the specified memory address.static VkPhysicalDeviceDrmPropertiesEXT.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceDrmPropertiesEXT.Bufferinstance at the specified memory.static VkPhysicalDeviceDrmPropertiesEXTcreateSafe(long address)static VkPhysicalDeviceDrmPropertiesEXT.BuffercreateSafe(long address, int capacity)booleanhasPrimary()a boolean indicating whether the physical device has a DRM primary node.booleanhasRender()a boolean indicating whether the physical device has a DRM render node.static VkPhysicalDeviceDrmPropertiesEXTmalloc()Returns a newVkPhysicalDeviceDrmPropertiesEXTinstance allocated withmemAlloc.static VkPhysicalDeviceDrmPropertiesEXT.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceDrmPropertiesEXT.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceDrmPropertiesEXT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceDrmPropertiesEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceDrmPropertiesEXTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceDrmPropertiesEXTinstance allocated on the specifiedMemoryStack.static intnhasPrimary(long struct)Unsafe version ofhasPrimary().static intnhasRender(long struct)Unsafe version ofhasRender().static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static longnprimaryMajor(long struct)Unsafe version ofprimaryMajor().static longnprimaryMinor(long struct)Unsafe version ofprimaryMinor().static longnrenderMajor(long struct)Unsafe version ofrenderMajor().static longnrenderMinor(long struct)Unsafe version ofrenderMinor().static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.longpNext()NULLor a pointer to a structure extending this structure.VkPhysicalDeviceDrmPropertiesEXTpNext(long value)Sets the specified value to thepNext()field.longprimaryMajor()the DRM primary node major number, if any.longprimaryMinor()the DRM primary node minor number, if any.longrenderMajor()the DRM render node major number, if any.longrenderMinor()the DRM render node minor number, if any.VkPhysicalDeviceDrmPropertiesEXTset(int sType, long pNext)Initializes this struct with the specified values.VkPhysicalDeviceDrmPropertiesEXTset(VkPhysicalDeviceDrmPropertiesEXT src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkPhysicalDeviceDrmPropertiesEXTsType(int value)Sets the specified value to thesType()field.VkPhysicalDeviceDrmPropertiesEXTsType$Default()Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_DRM_PROPERTIES_EXTvalue to thesType()field.
-
-
-
Constructor Detail
-
VkPhysicalDeviceDrmPropertiesEXT
public VkPhysicalDeviceDrmPropertiesEXT(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceDrmPropertiesEXTinstance 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.
-
hasPrimary
public boolean hasPrimary()
a boolean indicating whether the physical device has a DRM primary node.
-
hasRender
public boolean hasRender()
a boolean indicating whether the physical device has a DRM render node.
-
primaryMajor
public long primaryMajor()
the DRM primary node major number, if any.
-
primaryMinor
public long primaryMinor()
the DRM primary node minor number, if any.
-
renderMajor
public long renderMajor()
the DRM render node major number, if any.
-
renderMinor
public long renderMinor()
the DRM render node minor number, if any.
-
sType
public VkPhysicalDeviceDrmPropertiesEXT sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPhysicalDeviceDrmPropertiesEXT sType$Default()
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_DRM_PROPERTIES_EXTvalue to thesType()field.
-
pNext
public VkPhysicalDeviceDrmPropertiesEXT pNext(long value)
Sets the specified value to thepNext()field.
-
set
public VkPhysicalDeviceDrmPropertiesEXT set(int sType, long pNext)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceDrmPropertiesEXT set(VkPhysicalDeviceDrmPropertiesEXT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceDrmPropertiesEXT malloc()
Returns a newVkPhysicalDeviceDrmPropertiesEXTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceDrmPropertiesEXT calloc()
Returns a newVkPhysicalDeviceDrmPropertiesEXTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceDrmPropertiesEXT create()
Returns a newVkPhysicalDeviceDrmPropertiesEXTinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceDrmPropertiesEXT create(long address)
Returns a newVkPhysicalDeviceDrmPropertiesEXTinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceDrmPropertiesEXT createSafe(long address)
-
malloc
public static VkPhysicalDeviceDrmPropertiesEXT.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceDrmPropertiesEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceDrmPropertiesEXT.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceDrmPropertiesEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceDrmPropertiesEXT.Buffer create(int capacity)
Returns a newVkPhysicalDeviceDrmPropertiesEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceDrmPropertiesEXT.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceDrmPropertiesEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceDrmPropertiesEXT.Buffer createSafe(long address, int capacity)
-
malloc
public static VkPhysicalDeviceDrmPropertiesEXT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceDrmPropertiesEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPhysicalDeviceDrmPropertiesEXT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceDrmPropertiesEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPhysicalDeviceDrmPropertiesEXT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceDrmPropertiesEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceDrmPropertiesEXT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceDrmPropertiesEXT.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().
-
nhasPrimary
public static int nhasPrimary(long struct)
Unsafe version ofhasPrimary().
-
nhasRender
public static int nhasRender(long struct)
Unsafe version ofhasRender().
-
nprimaryMajor
public static long nprimaryMajor(long struct)
Unsafe version ofprimaryMajor().
-
nprimaryMinor
public static long nprimaryMinor(long struct)
Unsafe version ofprimaryMinor().
-
nrenderMajor
public static long nrenderMajor(long struct)
Unsafe version ofrenderMajor().
-
nrenderMinor
public static long nrenderMinor(long struct)
Unsafe version ofrenderMinor().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
-