Package org.lwjgl.vulkan
Class VkDisplayModeParametersKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkDisplayModeParametersKHR
-
- All Implemented Interfaces:
- java.lang.AutoCloseable, NativeResource, Pointer
public class VkDisplayModeParametersKHR extends Struct
Khronos Reference Page
Vulkan SpecificationDescribes the display parameters associated a display mode.
Member documentation
visibleRegion– the 2D extents of the visible regionrefreshRate– auint32_tthat is the number of times the display is refreshed each second multiplied by 1000
Layout
struct VkDisplayModeParametersKHR {VkExtent2DvisibleRegion; uint32_t refreshRate; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classVkDisplayModeParametersKHR.BufferAn array ofVkDisplayModeParametersKHRstructs.-
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 VkDisplayModeParametersKHR(java.nio.ByteBuffer container)Creates aVkDisplayModeParametersKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static VkDisplayModeParametersKHRcalloc()Returns a newVkDisplayModeParametersKHRinstance allocated withmemCalloc.static VkDisplayModeParametersKHR.Buffercalloc(int capacity)Returns a newVkDisplayModeParametersKHR.Bufferinstance allocated withmemCalloc.static VkDisplayModeParametersKHRcallocStack()Returns a newVkDisplayModeParametersKHRinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkDisplayModeParametersKHR.BuffercallocStack(int capacity)Returns a newVkDisplayModeParametersKHR.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkDisplayModeParametersKHR.BuffercallocStack(int capacity, MemoryStack stack)Returns a newVkDisplayModeParametersKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDisplayModeParametersKHRcallocStack(MemoryStack stack)Returns a newVkDisplayModeParametersKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDisplayModeParametersKHRcreate()Returns a newVkDisplayModeParametersKHRinstance allocated withBufferUtils.static VkDisplayModeParametersKHR.Buffercreate(int capacity)Returns a newVkDisplayModeParametersKHR.Bufferinstance allocated withBufferUtils.static VkDisplayModeParametersKHRcreate(long address)Returns a newVkDisplayModeParametersKHRinstance for the specified memory address ornullif the address isNULL.static VkDisplayModeParametersKHR.Buffercreate(long address, int capacity)Create aVkDisplayModeParametersKHR.Bufferinstance at the specified memory.static VkDisplayModeParametersKHRmalloc()Returns a newVkDisplayModeParametersKHRinstance allocated withmemAlloc.static VkDisplayModeParametersKHR.Buffermalloc(int capacity)Returns a newVkDisplayModeParametersKHR.Bufferinstance allocated withmemAlloc.static VkDisplayModeParametersKHRmallocStack()Returns a newVkDisplayModeParametersKHRinstance allocated on the thread-localMemoryStack.static VkDisplayModeParametersKHR.BuffermallocStack(int capacity)Returns a newVkDisplayModeParametersKHR.Bufferinstance allocated on the thread-localMemoryStack.static VkDisplayModeParametersKHR.BuffermallocStack(int capacity, MemoryStack stack)Returns a newVkDisplayModeParametersKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkDisplayModeParametersKHRmallocStack(MemoryStack stack)Returns a newVkDisplayModeParametersKHRinstance allocated on the specifiedMemoryStack.VkDisplayModeParametersKHRnset(long struct)Unsafe version ofset.intrefreshRate()Returns the value of therefreshRatefield.VkDisplayModeParametersKHRrefreshRate(int value)Sets the specified value to therefreshRatefield.VkDisplayModeParametersKHRset(VkDisplayModeParametersKHR src)Copies the specified struct data to this struct.VkDisplayModeParametersKHRset(VkExtent2D visibleRegion, int refreshRate)Initializes this struct with the specified values.intsizeof()Returns thesizeof(struct).VkExtent2DvisibleRegion()Returns aVkExtent2Dview of thevisibleRegionfield.VkDisplayModeParametersKHRvisibleRegion(VkExtent2D value)Copies the specifiedVkExtent2Dto thevisibleRegionfield.-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
-
-
-
Constructor Detail
-
VkDisplayModeParametersKHR
public VkDisplayModeParametersKHR(java.nio.ByteBuffer container)
Creates aVkDisplayModeParametersKHRinstance 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).
-
visibleRegion
public VkExtent2D visibleRegion()
Returns aVkExtent2Dview of thevisibleRegionfield.
-
refreshRate
public int refreshRate()
Returns the value of therefreshRatefield.
-
visibleRegion
public VkDisplayModeParametersKHR visibleRegion(VkExtent2D value)
Copies the specifiedVkExtent2Dto thevisibleRegionfield.
-
refreshRate
public VkDisplayModeParametersKHR refreshRate(int value)
Sets the specified value to therefreshRatefield.
-
set
public VkDisplayModeParametersKHR set(VkExtent2D visibleRegion, int refreshRate)
Initializes this struct with the specified values.
-
nset
public VkDisplayModeParametersKHR nset(long struct)
Unsafe version ofset.
-
set
public VkDisplayModeParametersKHR set(VkDisplayModeParametersKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkDisplayModeParametersKHR malloc()
Returns a newVkDisplayModeParametersKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkDisplayModeParametersKHR calloc()
Returns a newVkDisplayModeParametersKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkDisplayModeParametersKHR create()
Returns a newVkDisplayModeParametersKHRinstance allocated withBufferUtils.
-
create
public static VkDisplayModeParametersKHR create(long address)
Returns a newVkDisplayModeParametersKHRinstance for the specified memory address ornullif the address isNULL.
-
malloc
public static VkDisplayModeParametersKHR.Buffer malloc(int capacity)
Returns a newVkDisplayModeParametersKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkDisplayModeParametersKHR.Buffer calloc(int capacity)
Returns a newVkDisplayModeParametersKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkDisplayModeParametersKHR.Buffer create(int capacity)
Returns a newVkDisplayModeParametersKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkDisplayModeParametersKHR.Buffer create(long address, int capacity)
Create aVkDisplayModeParametersKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
mallocStack
public static VkDisplayModeParametersKHR mallocStack()
Returns a newVkDisplayModeParametersKHRinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkDisplayModeParametersKHR callocStack()
Returns a newVkDisplayModeParametersKHRinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkDisplayModeParametersKHR mallocStack(MemoryStack stack)
Returns a newVkDisplayModeParametersKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkDisplayModeParametersKHR callocStack(MemoryStack stack)
Returns a newVkDisplayModeParametersKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkDisplayModeParametersKHR.Buffer mallocStack(int capacity)
Returns a newVkDisplayModeParametersKHR.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkDisplayModeParametersKHR.Buffer callocStack(int capacity)
Returns a newVkDisplayModeParametersKHR.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkDisplayModeParametersKHR.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newVkDisplayModeParametersKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkDisplayModeParametersKHR.Buffer callocStack(int capacity, MemoryStack stack)
Returns a newVkDisplayModeParametersKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
-