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,CreateDisplayModeKHRLayout
struct VkDisplayModeCreateInfoKHR { VkStructureTypesType(); void const *pNext(); VkDisplayModeCreateFlagsKHRflags();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 Deprecated 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 VkDisplayModeCreateInfoKHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDisplayModeCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDisplayModeCreateInfoKHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkDisplayModeCreateInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDisplayModeCreateInfoKHRcallocStack()Deprecated.static VkDisplayModeCreateInfoKHR.BuffercallocStack(int capacity)Deprecated.static VkDisplayModeCreateInfoKHR.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkDisplayModeCreateInfoKHRcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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()reserved for future use, and must be zero.VkDisplayModeCreateInfoKHRflags(int value)Sets the specified value to theflags()field.static VkDisplayModeCreateInfoKHRmalloc()Returns a newVkDisplayModeCreateInfoKHRinstance allocated withmemAlloc.static VkDisplayModeCreateInfoKHR.Buffermalloc(int capacity)Returns a newVkDisplayModeCreateInfoKHR.Bufferinstance allocated withmemAlloc.static VkDisplayModeCreateInfoKHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDisplayModeCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkDisplayModeCreateInfoKHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkDisplayModeCreateInfoKHRinstance allocated on the specifiedMemoryStack.static VkDisplayModeCreateInfoKHRmallocStack()Deprecated.static VkDisplayModeCreateInfoKHR.BuffermallocStack(int capacity)Deprecated.static VkDisplayModeCreateInfoKHR.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkDisplayModeCreateInfoKHRmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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()aVkDisplayModeParametersKHRstructure describing the display parameters to use in creating the new mode.VkDisplayModeCreateInfoKHRparameters(java.util.function.Consumer<VkDisplayModeParametersKHR> consumer)Passes theparameters()field to the specifiedConsumer.VkDisplayModeCreateInfoKHRparameters(VkDisplayModeParametersKHR value)Copies the specifiedVkDisplayModeParametersKHRto theparameters()field.longpNext()NULLor a pointer to a structure extending this structure.VkDisplayModeCreateInfoKHRpNext(long value)Sets the specified value to thepNext()field.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()the type of this structure.VkDisplayModeCreateInfoKHRsType(int value)Sets the specified value to thesType()field.VkDisplayModeCreateInfoKHRsType$Default()Sets theSTRUCTURE_TYPE_DISPLAY_MODE_CREATE_INFO_KHRvalue to thesType()field.
-
-
-
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()
the type of this structure.
-
pNext
public long pNext()
NULLor a pointer to a structure extending this structure.
-
flags
public int flags()
reserved for future use, and must be zero.
-
parameters
public VkDisplayModeParametersKHR 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.
-
sType
public VkDisplayModeCreateInfoKHR sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkDisplayModeCreateInfoKHR sType$Default()
Sets theSTRUCTURE_TYPE_DISPLAY_MODE_CREATE_INFO_KHRvalue to thesType()field.
-
pNext
public VkDisplayModeCreateInfoKHR pNext(long value)
Sets the specified value to thepNext()field.
-
flags
public VkDisplayModeCreateInfoKHR flags(int value)
Sets the specified value to theflags()field.
-
parameters
public VkDisplayModeCreateInfoKHR parameters(VkDisplayModeParametersKHR value)
Copies the specifiedVkDisplayModeParametersKHRto theparameters()field.
-
parameters
public VkDisplayModeCreateInfoKHR parameters(java.util.function.Consumer<VkDisplayModeParametersKHR> consumer)
Passes theparameters()field 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
@Deprecated public static VkDisplayModeCreateInfoKHR mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkDisplayModeCreateInfoKHR callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkDisplayModeCreateInfoKHR mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkDisplayModeCreateInfoKHR callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkDisplayModeCreateInfoKHR.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkDisplayModeCreateInfoKHR.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkDisplayModeCreateInfoKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkDisplayModeCreateInfoKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkDisplayModeCreateInfoKHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkDisplayModeCreateInfoKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkDisplayModeCreateInfoKHR calloc(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
-
malloc
public static VkDisplayModeCreateInfoKHR.Buffer malloc(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
-
calloc
public static VkDisplayModeCreateInfoKHR.Buffer calloc(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.
-
-