Package org.lwjgl.vulkan
Class VkDisplayModePropertiesKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkDisplayModePropertiesKHR
-
- All Implemented Interfaces:
- java.lang.AutoCloseable, NativeResource, Pointer
public class VkDisplayModePropertiesKHR extends Struct
Khronos Reference Page
Vulkan SpecificationDescribes properties of a display mode.
Valid Usage
displayModemust be a validVkDisplayModeKHRhandle
Member documentation
displayMode– a handle to the display mode described in this structure. This handle will be valid for the lifetime of the Vulkan instance.parameters– aVkDisplayModeParametersKHRstructure describing the display parameters associated withdisplayMode
Layout
struct VkDisplayModePropertiesKHR { VkDisplayModeKHR displayMode;VkDisplayModeParametersKHRparameters; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classVkDisplayModePropertiesKHR.BufferAn array ofVkDisplayModePropertiesKHRstructs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field and Description static intSIZEOFThe struct size in bytes.-
Fields inherited from interface org.lwjgl.system.Pointer
POINTER_SHIFT, POINTER_SIZE
-
-
Constructor Summary
Constructors Constructor and Description VkDisplayModePropertiesKHR(java.nio.ByteBuffer container)Creates aVkDisplayModePropertiesKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static VkDisplayModePropertiesKHRcalloc()Returns a newVkDisplayModePropertiesKHRinstance allocated withmemCalloc.static VkDisplayModePropertiesKHR.Buffercalloc(int capacity)Returns a newVkDisplayModePropertiesKHR.Bufferinstance allocated withmemCalloc.static VkDisplayModePropertiesKHRcallocStack()Returns a newVkDisplayModePropertiesKHRinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkDisplayModePropertiesKHR.BuffercallocStack(int capacity)Returns a newVkDisplayModePropertiesKHR.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkDisplayModePropertiesKHR.BuffercallocStack(int capacity, MemoryStack stack)Returns a newVkDisplayModePropertiesKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDisplayModePropertiesKHRcallocStack(MemoryStack stack)Returns a newVkDisplayModePropertiesKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDisplayModePropertiesKHRcreate()Returns a newVkDisplayModePropertiesKHRinstance allocated withBufferUtils.static VkDisplayModePropertiesKHR.Buffercreate(int capacity)Returns a newVkDisplayModePropertiesKHR.Bufferinstance allocated withBufferUtils.static VkDisplayModePropertiesKHRcreate(long address)Returns a newVkDisplayModePropertiesKHRinstance for the specified memory address ornullif the address isNULL.static VkDisplayModePropertiesKHR.Buffercreate(long address, int capacity)Create aVkDisplayModePropertiesKHR.Bufferinstance at the specified memory.longdisplayMode()Returns the value of thedisplayModefield.static VkDisplayModePropertiesKHRmalloc()Returns a newVkDisplayModePropertiesKHRinstance allocated withmemAlloc.static VkDisplayModePropertiesKHR.Buffermalloc(int capacity)Returns a newVkDisplayModePropertiesKHR.Bufferinstance allocated withmemAlloc.static VkDisplayModePropertiesKHRmallocStack()Returns a newVkDisplayModePropertiesKHRinstance allocated on the thread-localMemoryStack.static VkDisplayModePropertiesKHR.BuffermallocStack(int capacity)Returns a newVkDisplayModePropertiesKHR.Bufferinstance allocated on the thread-localMemoryStack.static VkDisplayModePropertiesKHR.BuffermallocStack(int capacity, MemoryStack stack)Returns a newVkDisplayModePropertiesKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkDisplayModePropertiesKHRmallocStack(MemoryStack stack)Returns a newVkDisplayModePropertiesKHRinstance allocated on the specifiedMemoryStack.VkDisplayModeParametersKHRparameters()Returns aVkDisplayModeParametersKHRview of theparametersfield.intsizeof()Returns thesizeof(struct).-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
-
-
-
Constructor Detail
-
VkDisplayModePropertiesKHR
public VkDisplayModePropertiesKHR(java.nio.ByteBuffer container)
Creates aVkDisplayModePropertiesKHRinstance 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()
Description copied from class:StructReturns thesizeof(struct).
-
displayMode
public long displayMode()
Returns the value of thedisplayModefield.
-
parameters
public VkDisplayModeParametersKHR parameters()
Returns aVkDisplayModeParametersKHRview of theparametersfield.
-
malloc
public static VkDisplayModePropertiesKHR malloc()
Returns a newVkDisplayModePropertiesKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkDisplayModePropertiesKHR calloc()
Returns a newVkDisplayModePropertiesKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkDisplayModePropertiesKHR create()
Returns a newVkDisplayModePropertiesKHRinstance allocated withBufferUtils.
-
create
public static VkDisplayModePropertiesKHR create(long address)
Returns a newVkDisplayModePropertiesKHRinstance for the specified memory address ornullif the address isNULL.
-
malloc
public static VkDisplayModePropertiesKHR.Buffer malloc(int capacity)
Returns a newVkDisplayModePropertiesKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkDisplayModePropertiesKHR.Buffer calloc(int capacity)
Returns a newVkDisplayModePropertiesKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkDisplayModePropertiesKHR.Buffer create(int capacity)
Returns a newVkDisplayModePropertiesKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkDisplayModePropertiesKHR.Buffer create(long address, int capacity)
Create aVkDisplayModePropertiesKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
mallocStack
public static VkDisplayModePropertiesKHR mallocStack()
Returns a newVkDisplayModePropertiesKHRinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkDisplayModePropertiesKHR callocStack()
Returns a newVkDisplayModePropertiesKHRinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkDisplayModePropertiesKHR mallocStack(MemoryStack stack)
Returns a newVkDisplayModePropertiesKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkDisplayModePropertiesKHR callocStack(MemoryStack stack)
Returns a newVkDisplayModePropertiesKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkDisplayModePropertiesKHR.Buffer mallocStack(int capacity)
Returns a newVkDisplayModePropertiesKHR.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkDisplayModePropertiesKHR.Buffer callocStack(int capacity)
Returns a newVkDisplayModePropertiesKHR.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkDisplayModePropertiesKHR.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newVkDisplayModePropertiesKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkDisplayModePropertiesKHR.Buffer callocStack(int capacity, MemoryStack stack)
Returns a newVkDisplayModePropertiesKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
-