Package org.lwjgl.vulkan
Class VkDisplayModeCreateInfoKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkDisplayModeCreateInfoKHR
-
- All Implemented Interfaces:
- java.lang.AutoCloseable, NativeResource, Pointer
public class VkDisplayModeCreateInfoKHR extends Struct
Khronos Reference Page
Vulkan SpecificationContains information about how a display mode should be created.
Valid Usage
sTypemust beSTRUCTURE_TYPE_DISPLAY_MODE_CREATE_INFO_KHRpNextmust beNULLflagsmust be 0- The
widthandheightmembers of thevisibleRegionmember ofparametersmust be greater than 0 - The
refreshRatemember ofparametersmust be greater than 0
Member documentation
sType– the type of this structure. Must be:STRUCTURE_TYPE_DISPLAY_MODE_CREATE_INFO_KHRpNext– reserved for use by extensionsflags– reserved for future use, and must be zeroparameters– aVkDisplayModeParametersKHRstructure describing the display parameters to use in creating the new mode
Layout
struct VkDisplayModeCreateInfoKHR { VkStructureType sType; const void * pNext; VkDisplayModeCreateFlagsKHR flags;VkDisplayModeParametersKHRparameters; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classVkDisplayModeCreateInfoKHR.BufferAn array ofVkDisplayModeCreateInfoKHRstructs.-
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 VkDisplayModeCreateInfoKHR(java.nio.ByteBuffer container)Creates aVkDisplayModeCreateInfoKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static VkDisplayModeCreateInfoKHRcalloc()Returns a newVkDisplayModeCreateInfoKHRinstance allocated withmemCalloc.static VkDisplayModeCreateInfoKHR.Buffercalloc(int capacity)Returns a newVkDisplayModeCreateInfoKHR.Bufferinstance allocated withmemCalloc.static VkDisplayModeCreateInfoKHRcallocStack()Returns a newVkDisplayModeCreateInfoKHRinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkDisplayModeCreateInfoKHR.BuffercallocStack(int capacity)Returns a newVkDisplayModeCreateInfoKHR.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkDisplayModeCreateInfoKHR.BuffercallocStack(int capacity, MemoryStack stack)Returns a newVkDisplayModeCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDisplayModeCreateInfoKHRcallocStack(MemoryStack stack)Returns a newVkDisplayModeCreateInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDisplayModeCreateInfoKHRcreate()Returns a newVkDisplayModeCreateInfoKHRinstance allocated withBufferUtils.static VkDisplayModeCreateInfoKHR.Buffercreate(int capacity)Returns a newVkDisplayModeCreateInfoKHR.Bufferinstance allocated withBufferUtils.static VkDisplayModeCreateInfoKHRcreate(long address)Returns a newVkDisplayModeCreateInfoKHRinstance for the specified memory address ornullif the address isNULL.static VkDisplayModeCreateInfoKHR.Buffercreate(long address, int capacity)Create aVkDisplayModeCreateInfoKHR.Bufferinstance at the specified memory.intflags()Returns the value of theflagsfield.VkDisplayModeCreateInfoKHRflags(int value)Sets the specified value to theflagsfield.static VkDisplayModeCreateInfoKHRmalloc()Returns a newVkDisplayModeCreateInfoKHRinstance allocated withmemAlloc.static VkDisplayModeCreateInfoKHR.Buffermalloc(int capacity)Returns a newVkDisplayModeCreateInfoKHR.Bufferinstance allocated withmemAlloc.static VkDisplayModeCreateInfoKHRmallocStack()Returns a newVkDisplayModeCreateInfoKHRinstance allocated on the thread-localMemoryStack.static VkDisplayModeCreateInfoKHR.BuffermallocStack(int capacity)Returns a newVkDisplayModeCreateInfoKHR.Bufferinstance allocated on the thread-localMemoryStack.static VkDisplayModeCreateInfoKHR.BuffermallocStack(int capacity, MemoryStack stack)Returns a newVkDisplayModeCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkDisplayModeCreateInfoKHRmallocStack(MemoryStack stack)Returns a newVkDisplayModeCreateInfoKHRinstance allocated on the specifiedMemoryStack.VkDisplayModeCreateInfoKHRnset(long struct)Unsafe version ofset.VkDisplayModeParametersKHRparameters()Returns aVkDisplayModeParametersKHRview of theparametersfield.VkDisplayModeCreateInfoKHRparameters(VkDisplayModeParametersKHR value)Copies the specifiedVkDisplayModeParametersKHRto theparametersfield.longpNext()Returns the value of thepNextfield.VkDisplayModeCreateInfoKHRpNext(long value)Sets the specified value to thepNextfield.VkDisplayModeCreateInfoKHRset(int sType, long pNext, int flags, VkDisplayModeParametersKHR parameters)Initializes this struct with the specified values.VkDisplayModeCreateInfoKHRset(VkDisplayModeCreateInfoKHR src)Copies the specified struct data to this struct.intsizeof()Returns thesizeof(struct).intsType()Returns the value of thesTypefield.VkDisplayModeCreateInfoKHRsType(int value)Sets the specified value to thesTypefield.-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
-
-
-
Constructor Detail
-
VkDisplayModeCreateInfoKHR
public VkDisplayModeCreateInfoKHR(java.nio.ByteBuffer container)
Creates aVkDisplayModeCreateInfoKHRinstance 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).
-
sType
public int sType()
Returns the value of thesTypefield.
-
pNext
public long pNext()
Returns the value of thepNextfield.
-
flags
public int flags()
Returns the value of theflagsfield.
-
parameters
public VkDisplayModeParametersKHR parameters()
Returns aVkDisplayModeParametersKHRview of theparametersfield.
-
sType
public VkDisplayModeCreateInfoKHR sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkDisplayModeCreateInfoKHR pNext(long value)
Sets the specified value to thepNextfield.
-
flags
public VkDisplayModeCreateInfoKHR flags(int value)
Sets the specified value to theflagsfield.
-
parameters
public VkDisplayModeCreateInfoKHR parameters(VkDisplayModeParametersKHR value)
Copies the specifiedVkDisplayModeParametersKHRto theparametersfield.
-
set
public VkDisplayModeCreateInfoKHR set(int sType, long pNext, int flags, VkDisplayModeParametersKHR parameters)
Initializes this struct with the specified values.
-
nset
public VkDisplayModeCreateInfoKHR nset(long struct)
Unsafe version ofset.
-
set
public VkDisplayModeCreateInfoKHR set(VkDisplayModeCreateInfoKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkDisplayModeCreateInfoKHR malloc()
Returns a newVkDisplayModeCreateInfoKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkDisplayModeCreateInfoKHR calloc()
Returns a newVkDisplayModeCreateInfoKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkDisplayModeCreateInfoKHR create()
Returns a newVkDisplayModeCreateInfoKHRinstance allocated withBufferUtils.
-
create
public static VkDisplayModeCreateInfoKHR create(long address)
Returns a newVkDisplayModeCreateInfoKHRinstance for the specified memory address ornullif the address isNULL.
-
malloc
public static VkDisplayModeCreateInfoKHR.Buffer malloc(int capacity)
Returns a newVkDisplayModeCreateInfoKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkDisplayModeCreateInfoKHR.Buffer calloc(int capacity)
Returns a newVkDisplayModeCreateInfoKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkDisplayModeCreateInfoKHR.Buffer create(int capacity)
Returns a newVkDisplayModeCreateInfoKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkDisplayModeCreateInfoKHR.Buffer create(long address, int capacity)
Create aVkDisplayModeCreateInfoKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
mallocStack
public static VkDisplayModeCreateInfoKHR mallocStack()
Returns a newVkDisplayModeCreateInfoKHRinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkDisplayModeCreateInfoKHR callocStack()
Returns a newVkDisplayModeCreateInfoKHRinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkDisplayModeCreateInfoKHR mallocStack(MemoryStack stack)
Returns a newVkDisplayModeCreateInfoKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkDisplayModeCreateInfoKHR callocStack(MemoryStack stack)
Returns a newVkDisplayModeCreateInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkDisplayModeCreateInfoKHR.Buffer mallocStack(int capacity)
Returns a newVkDisplayModeCreateInfoKHR.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkDisplayModeCreateInfoKHR.Buffer callocStack(int capacity)
Returns a newVkDisplayModeCreateInfoKHR.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkDisplayModeCreateInfoKHR.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newVkDisplayModeCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkDisplayModeCreateInfoKHR.Buffer callocStack(int capacity, MemoryStack stack)
Returns a newVkDisplayModeCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
-