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,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkDisplayModeCreateInfoKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying parameters of a newly created display mode object.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_DISPLAY_MODE_CREATE_INFO_KHRpNextmust beNULLflagsmust be 0parametersmust be a validVkDisplayModeParametersKHRstructure
See Also
VkDisplayModeParametersKHR,CreateDisplayModeKHRMember documentation
sType– the type of this structure.pNext–NULLor a pointer to an extension-specific structure.flags– reserved for future use, and must be zero.parameters– aVkDisplayModeParametersKHRstructure describing the display parameters to use in creating the new mode. If the parameters are not compatible with the specified display, the implementation must returnERROR_INITIALIZATION_FAILED.
Layout
struct VkDisplayModeCreateInfoKHR { VkStructureType sType; void const * pNext; VkDisplayModeCreateFlagsKHR flags;VkDisplayModeParametersKHRparameters; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkDisplayModeCreateInfoKHR.BufferAn array ofVkDisplayModeCreateInfoKHRstructs.
-
Constructor Summary
Constructors Constructor 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 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, org.lwjgl.system.MemoryStack stack)Returns a newVkDisplayModeCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDisplayModeCreateInfoKHRcallocStack(org.lwjgl.system.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.static VkDisplayModeCreateInfoKHR.Buffercreate(long address, int capacity)Create aVkDisplayModeCreateInfoKHR.Bufferinstance at the specified memory.static VkDisplayModeCreateInfoKHRcreateSafe(long address)static VkDisplayModeCreateInfoKHR.BuffercreateSafe(long address, int capacity)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, org.lwjgl.system.MemoryStack stack)Returns a newVkDisplayModeCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkDisplayModeCreateInfoKHRmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkDisplayModeCreateInfoKHRinstance allocated on the specifiedMemoryStack.static intnflags(long struct)Unsafe version offlags().static voidnflags(long struct, int value)Unsafe version offlags.static VkDisplayModeParametersKHRnparameters(long struct)Unsafe version ofparameters().static voidnparameters(long struct, VkDisplayModeParametersKHR value)Unsafe version ofparameters.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.VkDisplayModeParametersKHRparameters()Returns aVkDisplayModeParametersKHRview of theparametersfield.VkDisplayModeCreateInfoKHRparameters(java.util.function.Consumer<VkDisplayModeParametersKHR> consumer)Passes theparametersfield to the specifiedConsumer.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()intsType()Returns the value of thesTypefield.VkDisplayModeCreateInfoKHRsType(int value)Sets the specified value to thesTypefield.
-
-
-
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()
- Specified by:
sizeofin classorg.lwjgl.system.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.
-
parameters
public VkDisplayModeCreateInfoKHR parameters(java.util.function.Consumer<VkDisplayModeParametersKHR> consumer)
Passes theparametersfield to the specifiedConsumer.
-
set
public VkDisplayModeCreateInfoKHR set(int sType, long pNext, int flags, VkDisplayModeParametersKHR parameters)
Initializes this struct with the specified values.
-
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.
-
createSafe
@Nullable public static VkDisplayModeCreateInfoKHR createSafe(long address)
-
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
-
createSafe
@Nullable public static VkDisplayModeCreateInfoKHR.Buffer createSafe(long address, int 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(org.lwjgl.system.MemoryStack stack)
Returns a newVkDisplayModeCreateInfoKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkDisplayModeCreateInfoKHR callocStack(org.lwjgl.system.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, org.lwjgl.system.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, org.lwjgl.system.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
-
nsType
public static int nsType(long struct)
Unsafe version ofsType().
-
npNext
public static long npNext(long struct)
Unsafe version ofpNext().
-
nflags
public static int nflags(long struct)
Unsafe version offlags().
-
nparameters
public static VkDisplayModeParametersKHR nparameters(long struct)
Unsafe version ofparameters().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nflags
public static void nflags(long struct, int value)Unsafe version offlags.
-
nparameters
public static void nparameters(long struct, VkDisplayModeParametersKHR value)Unsafe version ofparameters.
-
-