Package org.lwjgl.vulkan
Class VkDisplayPowerInfoEXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkDisplayPowerInfoEXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkDisplayPowerInfoEXT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceDescribe the power state of a display.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_DISPLAY_POWER_INFO_EXTpNextmust beNULLpowerStatemust be a validVkDisplayPowerStateEXTvalue
See Also
Layout
struct VkDisplayPowerInfoEXT { VkStructureTypesType(); void const *pNext(); VkDisplayPowerStateEXTpowerState(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkDisplayPowerInfoEXT.BufferAn array ofVkDisplayPowerInfoEXTstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intPNEXT
POWERSTATEThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkDisplayPowerInfoEXT(java.nio.ByteBuffer container)Creates aVkDisplayPowerInfoEXTinstance 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 VkDisplayPowerInfoEXTcalloc()Returns a newVkDisplayPowerInfoEXTinstance allocated withmemCalloc.static VkDisplayPowerInfoEXT.Buffercalloc(int capacity)Returns a newVkDisplayPowerInfoEXT.Bufferinstance allocated withmemCalloc.static VkDisplayPowerInfoEXT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDisplayPowerInfoEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDisplayPowerInfoEXTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkDisplayPowerInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDisplayPowerInfoEXTcallocStack()Deprecated.static VkDisplayPowerInfoEXT.BuffercallocStack(int capacity)Deprecated.static VkDisplayPowerInfoEXT.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkDisplayPowerInfoEXTcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static VkDisplayPowerInfoEXTcreate()Returns a newVkDisplayPowerInfoEXTinstance allocated withBufferUtils.static VkDisplayPowerInfoEXT.Buffercreate(int capacity)Returns a newVkDisplayPowerInfoEXT.Bufferinstance allocated withBufferUtils.static VkDisplayPowerInfoEXTcreate(long address)Returns a newVkDisplayPowerInfoEXTinstance for the specified memory address.static VkDisplayPowerInfoEXT.Buffercreate(long address, int capacity)Create aVkDisplayPowerInfoEXT.Bufferinstance at the specified memory.static VkDisplayPowerInfoEXTcreateSafe(long address)static VkDisplayPowerInfoEXT.BuffercreateSafe(long address, int capacity)static VkDisplayPowerInfoEXTmalloc()Returns a newVkDisplayPowerInfoEXTinstance allocated withmemAlloc.static VkDisplayPowerInfoEXT.Buffermalloc(int capacity)Returns a newVkDisplayPowerInfoEXT.Bufferinstance allocated withmemAlloc.static VkDisplayPowerInfoEXT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDisplayPowerInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkDisplayPowerInfoEXTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkDisplayPowerInfoEXTinstance allocated on the specifiedMemoryStack.static VkDisplayPowerInfoEXTmallocStack()Deprecated.static VkDisplayPowerInfoEXT.BuffermallocStack(int capacity)Deprecated.static VkDisplayPowerInfoEXT.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkDisplayPowerInfoEXTmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnpowerState(long struct)Unsafe version ofpowerState().static voidnpowerState(long struct, int value)Unsafe version ofpowerState.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.longpNext()NULLor a pointer to a structure extending this structure.VkDisplayPowerInfoEXTpNext(long value)Sets the specified value to thepNext()field.intpowerState()aVkDisplayPowerStateEXTvalue specifying the new power state of the display.VkDisplayPowerInfoEXTpowerState(int value)Sets the specified value to thepowerState()field.VkDisplayPowerInfoEXTset(int sType, long pNext, int powerState)Initializes this struct with the specified values.VkDisplayPowerInfoEXTset(VkDisplayPowerInfoEXT src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkDisplayPowerInfoEXTsType(int value)Sets the specified value to thesType()field.VkDisplayPowerInfoEXTsType$Default()Sets theSTRUCTURE_TYPE_DISPLAY_POWER_INFO_EXTvalue to thesType()field.
-
-
-
Constructor Detail
-
VkDisplayPowerInfoEXT
public VkDisplayPowerInfoEXT(java.nio.ByteBuffer container)
Creates aVkDisplayPowerInfoEXTinstance 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.
-
powerState
public int powerState()
aVkDisplayPowerStateEXTvalue specifying the new power state of the display.
-
sType
public VkDisplayPowerInfoEXT sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkDisplayPowerInfoEXT sType$Default()
Sets theSTRUCTURE_TYPE_DISPLAY_POWER_INFO_EXTvalue to thesType()field.
-
pNext
public VkDisplayPowerInfoEXT pNext(long value)
Sets the specified value to thepNext()field.
-
powerState
public VkDisplayPowerInfoEXT powerState(int value)
Sets the specified value to thepowerState()field.
-
set
public VkDisplayPowerInfoEXT set(int sType, long pNext, int powerState)
Initializes this struct with the specified values.
-
set
public VkDisplayPowerInfoEXT set(VkDisplayPowerInfoEXT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkDisplayPowerInfoEXT malloc()
Returns a newVkDisplayPowerInfoEXTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkDisplayPowerInfoEXT calloc()
Returns a newVkDisplayPowerInfoEXTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkDisplayPowerInfoEXT create()
Returns a newVkDisplayPowerInfoEXTinstance allocated withBufferUtils.
-
create
public static VkDisplayPowerInfoEXT create(long address)
Returns a newVkDisplayPowerInfoEXTinstance for the specified memory address.
-
createSafe
@Nullable public static VkDisplayPowerInfoEXT createSafe(long address)
-
malloc
public static VkDisplayPowerInfoEXT.Buffer malloc(int capacity)
Returns a newVkDisplayPowerInfoEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkDisplayPowerInfoEXT.Buffer calloc(int capacity)
Returns a newVkDisplayPowerInfoEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkDisplayPowerInfoEXT.Buffer create(int capacity)
Returns a newVkDisplayPowerInfoEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkDisplayPowerInfoEXT.Buffer create(long address, int capacity)
Create aVkDisplayPowerInfoEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkDisplayPowerInfoEXT.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static VkDisplayPowerInfoEXT mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkDisplayPowerInfoEXT callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkDisplayPowerInfoEXT mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkDisplayPowerInfoEXT callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkDisplayPowerInfoEXT.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkDisplayPowerInfoEXT.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkDisplayPowerInfoEXT.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 VkDisplayPowerInfoEXT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkDisplayPowerInfoEXT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkDisplayPowerInfoEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkDisplayPowerInfoEXT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkDisplayPowerInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkDisplayPowerInfoEXT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDisplayPowerInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkDisplayPowerInfoEXT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDisplayPowerInfoEXT.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().
-
npowerState
public static int npowerState(long struct)
Unsafe version ofpowerState().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
npowerState
public static void npowerState(long struct, int value)Unsafe version ofpowerState.
-
-