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.NativeResource
Describe the power state of a display.Valid Usage (Implicit)
sType
must beSTRUCTURE_TYPE_DISPLAY_POWER_INFO_EXT
pNext
must beNULL
powerState
must be a validVkDisplayPowerStateEXT
value
See Also
Member documentation
sType
– the type of this structure.pNext
–NULL
or a pointer to an extension-specific structure.powerState
– aVkDisplayPowerStateEXT
value 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 class
VkDisplayPowerInfoEXT.Buffer
An array ofVkDisplayPowerInfoEXT
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
PNEXT
POWERSTATEThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
STYPE
The struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkDisplayPowerInfoEXT(java.nio.ByteBuffer container)
Creates aVkDisplayPowerInfoEXT
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkDisplayPowerInfoEXT
calloc()
Returns a newVkDisplayPowerInfoEXT
instance allocated withmemCalloc
.static VkDisplayPowerInfoEXT.Buffer
calloc(int capacity)
Returns a newVkDisplayPowerInfoEXT.Buffer
instance allocated withmemCalloc
.static VkDisplayPowerInfoEXT
callocStack()
Returns a newVkDisplayPowerInfoEXT
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkDisplayPowerInfoEXT.Buffer
callocStack(int capacity)
Returns a newVkDisplayPowerInfoEXT.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkDisplayPowerInfoEXT.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDisplayPowerInfoEXT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkDisplayPowerInfoEXT
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDisplayPowerInfoEXT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkDisplayPowerInfoEXT
create()
Returns a newVkDisplayPowerInfoEXT
instance allocated withBufferUtils
.static VkDisplayPowerInfoEXT.Buffer
create(int capacity)
Returns a newVkDisplayPowerInfoEXT.Buffer
instance allocated withBufferUtils
.static VkDisplayPowerInfoEXT
create(long address)
Returns a newVkDisplayPowerInfoEXT
instance for the specified memory address.static VkDisplayPowerInfoEXT.Buffer
create(long address, int capacity)
Create aVkDisplayPowerInfoEXT.Buffer
instance at the specified memory.static VkDisplayPowerInfoEXT
createSafe(long address)
static VkDisplayPowerInfoEXT.Buffer
createSafe(long address, int capacity)
static VkDisplayPowerInfoEXT
malloc()
Returns a newVkDisplayPowerInfoEXT
instance allocated withmemAlloc
.static VkDisplayPowerInfoEXT.Buffer
malloc(int capacity)
Returns a newVkDisplayPowerInfoEXT.Buffer
instance allocated withmemAlloc
.static VkDisplayPowerInfoEXT
mallocStack()
Returns a newVkDisplayPowerInfoEXT
instance allocated on the thread-localMemoryStack
.static VkDisplayPowerInfoEXT.Buffer
mallocStack(int capacity)
Returns a newVkDisplayPowerInfoEXT.Buffer
instance allocated on the thread-localMemoryStack
.static VkDisplayPowerInfoEXT.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDisplayPowerInfoEXT.Buffer
instance allocated on the specifiedMemoryStack
.static VkDisplayPowerInfoEXT
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDisplayPowerInfoEXT
instance allocated on the specifiedMemoryStack
.static long
npNext(long struct)
Unsafe version ofpNext()
.static void
npNext(long struct, long value)
Unsafe version ofpNext
.static int
npowerState(long struct)
Unsafe version ofpowerState()
.static void
npowerState(long struct, int value)
Unsafe version ofpowerState
.static int
nsType(long struct)
Unsafe version ofsType()
.static void
nsType(long struct, int value)
Unsafe version ofsType
.long
pNext()
Returns the value of thepNext
field.VkDisplayPowerInfoEXT
pNext(long value)
Sets the specified value to thepNext
field.int
powerState()
Returns the value of thepowerState
field.VkDisplayPowerInfoEXT
powerState(int value)
Sets the specified value to thepowerState
field.VkDisplayPowerInfoEXT
set(int sType, long pNext, int powerState)
Initializes this struct with the specified values.VkDisplayPowerInfoEXT
set(VkDisplayPowerInfoEXT src)
Copies the specified struct data to this struct.int
sizeof()
int
sType()
Returns the value of thesType
field.VkDisplayPowerInfoEXT
sType(int value)
Sets the specified value to thesType
field.
-
-
-
Constructor Detail
-
VkDisplayPowerInfoEXT
public VkDisplayPowerInfoEXT(java.nio.ByteBuffer container)
Creates aVkDisplayPowerInfoEXT
instance at the current position of the specifiedByteBuffer
container. 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:
sizeof
in classorg.lwjgl.system.Struct
-
sType
public int sType()
Returns the value of thesType
field.
-
pNext
public long pNext()
Returns the value of thepNext
field.
-
powerState
public int powerState()
Returns the value of thepowerState
field.
-
sType
public VkDisplayPowerInfoEXT sType(int value)
Sets the specified value 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 newVkDisplayPowerInfoEXT
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkDisplayPowerInfoEXT calloc()
Returns a newVkDisplayPowerInfoEXT
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkDisplayPowerInfoEXT create()
Returns a newVkDisplayPowerInfoEXT
instance allocated withBufferUtils
.
-
create
public static VkDisplayPowerInfoEXT create(long address)
Returns a newVkDisplayPowerInfoEXT
instance for the specified memory address.
-
createSafe
@Nullable public static VkDisplayPowerInfoEXT createSafe(long address)
-
malloc
public static VkDisplayPowerInfoEXT.Buffer malloc(int capacity)
Returns a newVkDisplayPowerInfoEXT.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkDisplayPowerInfoEXT.Buffer calloc(int capacity)
Returns a newVkDisplayPowerInfoEXT.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkDisplayPowerInfoEXT.Buffer create(int capacity)
Returns a newVkDisplayPowerInfoEXT.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkDisplayPowerInfoEXT.Buffer create(long address, int capacity)
Create aVkDisplayPowerInfoEXT.Buffer
instance 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 newVkDisplayPowerInfoEXT
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkDisplayPowerInfoEXT callocStack()
Returns a newVkDisplayPowerInfoEXT
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkDisplayPowerInfoEXT mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDisplayPowerInfoEXT
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkDisplayPowerInfoEXT callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDisplayPowerInfoEXT
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkDisplayPowerInfoEXT.Buffer callocStack(int capacity)
Returns a newVkDisplayPowerInfoEXT.Buffer
instance allocated on the thread-localMemoryStack
and 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.Buffer
instance 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.Buffer
instance allocated on the specifiedMemoryStack
and 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
.
-
-