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.NativeResourceStructure 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– aVkDisplayModeParametersKHRstructure describing the display parameters associated withdisplayMode.
Layout
struct VkDisplayModePropertiesKHR { VkDisplayModeKHR displayMode;VkDisplayModeParametersKHRparameters; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkDisplayModePropertiesKHR.BufferAn array ofVkDisplayModePropertiesKHRstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intDISPLAYMODE
PARAMETERSThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor 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 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, org.lwjgl.system.MemoryStack stack)Returns a newVkDisplayModePropertiesKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDisplayModePropertiesKHRcallocStack(org.lwjgl.system.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.static VkDisplayModePropertiesKHR.Buffercreate(long address, int capacity)Create aVkDisplayModePropertiesKHR.Bufferinstance at the specified memory.static VkDisplayModePropertiesKHRcreateSafe(long address)static VkDisplayModePropertiesKHR.BuffercreateSafe(long address, int capacity)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, org.lwjgl.system.MemoryStack stack)Returns a newVkDisplayModePropertiesKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkDisplayModePropertiesKHRmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkDisplayModePropertiesKHRinstance allocated on the specifiedMemoryStack.static longndisplayMode(long struct)Unsafe version ofdisplayMode().static VkDisplayModeParametersKHRnparameters(long struct)Unsafe version ofparameters().VkDisplayModeParametersKHRparameters()Returns aVkDisplayModeParametersKHRview of theparametersfield.intsizeof()
-
-
-
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()
- Specified by:
sizeofin classorg.lwjgl.system.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.
-
createSafe
@Nullable public static VkDisplayModePropertiesKHR createSafe(long address)
-
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
-
createSafe
@Nullable public static VkDisplayModePropertiesKHR.Buffer createSafe(long address, int 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(org.lwjgl.system.MemoryStack stack)
Returns a newVkDisplayModePropertiesKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkDisplayModePropertiesKHR callocStack(org.lwjgl.system.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, org.lwjgl.system.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, org.lwjgl.system.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
-
ndisplayMode
public static long ndisplayMode(long struct)
Unsafe version ofdisplayMode().
-
nparameters
public static VkDisplayModeParametersKHR nparameters(long struct)
Unsafe version ofparameters().
-
-