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
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class VkDisplayModePropertiesKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Structure describing display mode properties.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
– aVkDisplayModeParametersKHR
structure describing the display parameters associated withdisplayMode
.
Layout
struct VkDisplayModePropertiesKHR { VkDisplayModeKHR displayMode;
VkDisplayModeParametersKHR
parameters; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VkDisplayModePropertiesKHR.Buffer
An array ofVkDisplayModePropertiesKHR
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
DISPLAYMODE
PARAMETERSThe struct member offsets.static int
SIZEOF
The struct size in bytes.
-
Constructor Summary
Constructors Constructor Description VkDisplayModePropertiesKHR(java.nio.ByteBuffer container)
Creates aVkDisplayModePropertiesKHR
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 VkDisplayModePropertiesKHR
calloc()
Returns a newVkDisplayModePropertiesKHR
instance allocated withmemCalloc
.static VkDisplayModePropertiesKHR.Buffer
calloc(int capacity)
Returns a newVkDisplayModePropertiesKHR.Buffer
instance allocated withmemCalloc
.static VkDisplayModePropertiesKHR
callocStack()
Returns a newVkDisplayModePropertiesKHR
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkDisplayModePropertiesKHR.Buffer
callocStack(int capacity)
Returns a newVkDisplayModePropertiesKHR.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkDisplayModePropertiesKHR.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDisplayModePropertiesKHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkDisplayModePropertiesKHR
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDisplayModePropertiesKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkDisplayModePropertiesKHR
create()
Returns a newVkDisplayModePropertiesKHR
instance allocated withBufferUtils
.static VkDisplayModePropertiesKHR.Buffer
create(int capacity)
Returns a newVkDisplayModePropertiesKHR.Buffer
instance allocated withBufferUtils
.static VkDisplayModePropertiesKHR
create(long address)
Returns a newVkDisplayModePropertiesKHR
instance for the specified memory address.static VkDisplayModePropertiesKHR.Buffer
create(long address, int capacity)
Create aVkDisplayModePropertiesKHR.Buffer
instance at the specified memory.static VkDisplayModePropertiesKHR
createSafe(long address)
static VkDisplayModePropertiesKHR.Buffer
createSafe(long address, int capacity)
long
displayMode()
Returns the value of thedisplayMode
field.static VkDisplayModePropertiesKHR
malloc()
Returns a newVkDisplayModePropertiesKHR
instance allocated withmemAlloc
.static VkDisplayModePropertiesKHR.Buffer
malloc(int capacity)
Returns a newVkDisplayModePropertiesKHR.Buffer
instance allocated withmemAlloc
.static VkDisplayModePropertiesKHR
mallocStack()
Returns a newVkDisplayModePropertiesKHR
instance allocated on the thread-localMemoryStack
.static VkDisplayModePropertiesKHR.Buffer
mallocStack(int capacity)
Returns a newVkDisplayModePropertiesKHR.Buffer
instance allocated on the thread-localMemoryStack
.static VkDisplayModePropertiesKHR.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDisplayModePropertiesKHR.Buffer
instance allocated on the specifiedMemoryStack
.static VkDisplayModePropertiesKHR
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDisplayModePropertiesKHR
instance allocated on the specifiedMemoryStack
.static long
ndisplayMode(long struct)
Unsafe version ofdisplayMode()
.static VkDisplayModeParametersKHR
nparameters(long struct)
Unsafe version ofparameters()
.VkDisplayModeParametersKHR
parameters()
Returns aVkDisplayModeParametersKHR
view of theparameters
field.int
sizeof()
-
-
-
Constructor Detail
-
VkDisplayModePropertiesKHR
public VkDisplayModePropertiesKHR(java.nio.ByteBuffer container)
Creates aVkDisplayModePropertiesKHR
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
-
displayMode
public long displayMode()
Returns the value of thedisplayMode
field.
-
parameters
public VkDisplayModeParametersKHR parameters()
Returns aVkDisplayModeParametersKHR
view of theparameters
field.
-
malloc
public static VkDisplayModePropertiesKHR malloc()
Returns a newVkDisplayModePropertiesKHR
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkDisplayModePropertiesKHR calloc()
Returns a newVkDisplayModePropertiesKHR
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkDisplayModePropertiesKHR create()
Returns a newVkDisplayModePropertiesKHR
instance allocated withBufferUtils
.
-
create
public static VkDisplayModePropertiesKHR create(long address)
Returns a newVkDisplayModePropertiesKHR
instance for the specified memory address.
-
createSafe
@Nullable public static VkDisplayModePropertiesKHR createSafe(long address)
-
malloc
public static VkDisplayModePropertiesKHR.Buffer malloc(int capacity)
Returns a newVkDisplayModePropertiesKHR.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkDisplayModePropertiesKHR.Buffer calloc(int capacity)
Returns a newVkDisplayModePropertiesKHR.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkDisplayModePropertiesKHR.Buffer create(int capacity)
Returns a newVkDisplayModePropertiesKHR.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkDisplayModePropertiesKHR.Buffer create(long address, int capacity)
Create aVkDisplayModePropertiesKHR.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VkDisplayModePropertiesKHR.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkDisplayModePropertiesKHR mallocStack()
Returns a newVkDisplayModePropertiesKHR
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkDisplayModePropertiesKHR callocStack()
Returns a newVkDisplayModePropertiesKHR
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkDisplayModePropertiesKHR mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDisplayModePropertiesKHR
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkDisplayModePropertiesKHR callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDisplayModePropertiesKHR
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkDisplayModePropertiesKHR.Buffer callocStack(int capacity)
Returns a newVkDisplayModePropertiesKHR.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkDisplayModePropertiesKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDisplayModePropertiesKHR.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VkDisplayModePropertiesKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDisplayModePropertiesKHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
ndisplayMode
public static long ndisplayMode(long struct)
Unsafe version ofdisplayMode()
.
-
nparameters
public static VkDisplayModeParametersKHR nparameters(long struct)
Unsafe version ofparameters()
.
-
-