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
Member documentation
sType– the type of this structure.pNext–NULLor a pointer to an extension-specific structure.powerState– aVkDisplayPowerStateEXTvalue specifying the new power state of the display.
Layout
struct VkDisplayPowerInfoEXT { VkStructureType sType; void const * pNext; VkDisplayPowerStateEXT powerState; }
-
-
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 Modifier and Type Method Description static VkDisplayPowerInfoEXTcalloc()Returns a newVkDisplayPowerInfoEXTinstance allocated withmemCalloc.static VkDisplayPowerInfoEXT.Buffercalloc(int capacity)Returns a newVkDisplayPowerInfoEXT.Bufferinstance allocated withmemCalloc.static VkDisplayPowerInfoEXTcallocStack()Returns a newVkDisplayPowerInfoEXTinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkDisplayPowerInfoEXT.BuffercallocStack(int capacity)Returns a newVkDisplayPowerInfoEXT.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkDisplayPowerInfoEXT.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDisplayPowerInfoEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDisplayPowerInfoEXTcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkDisplayPowerInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.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 VkDisplayPowerInfoEXTmallocStack()Returns a newVkDisplayPowerInfoEXTinstance allocated on the thread-localMemoryStack.static VkDisplayPowerInfoEXT.BuffermallocStack(int capacity)Returns a newVkDisplayPowerInfoEXT.Bufferinstance allocated on the thread-localMemoryStack.static VkDisplayPowerInfoEXT.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDisplayPowerInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkDisplayPowerInfoEXTmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkDisplayPowerInfoEXTinstance allocated on the specifiedMemoryStack.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()Returns the value of thepNextfield.VkDisplayPowerInfoEXTpNext(long value)Sets the specified value to thepNextfield.intpowerState()Returns the value of thepowerStatefield.VkDisplayPowerInfoEXTpowerState(int value)Sets the specified value to thepowerStatefield.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()Returns the value of thesTypefield.VkDisplayPowerInfoEXTsType(int value)Sets the specified value to thesTypefield.
-
-
-
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()
Returns the value of thesTypefield.
-
pNext
public long pNext()
Returns the value of thepNextfield.
-
powerState
public int powerState()
Returns the value of thepowerStatefield.
-
sType
public VkDisplayPowerInfoEXT sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkDisplayPowerInfoEXT pNext(long value)
Sets the specified value to thepNextfield.
-
powerState
public VkDisplayPowerInfoEXT powerState(int value)
Sets the specified value to thepowerStatefield.
-
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
public static VkDisplayPowerInfoEXT mallocStack()
Returns a newVkDisplayPowerInfoEXTinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkDisplayPowerInfoEXT callocStack()
Returns a newVkDisplayPowerInfoEXTinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkDisplayPowerInfoEXT mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDisplayPowerInfoEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkDisplayPowerInfoEXT callocStack(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
-
mallocStack
public static VkDisplayPowerInfoEXT.Buffer mallocStack(int capacity)
Returns a newVkDisplayPowerInfoEXT.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkDisplayPowerInfoEXT.Buffer callocStack(int capacity)
Returns a newVkDisplayPowerInfoEXT.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkDisplayPowerInfoEXT.Buffer mallocStack(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
-
callocStack
public static VkDisplayPowerInfoEXT.Buffer callocStack(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.
-
-