public class VkDisplayPowerInfoEXT
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
sType must be STRUCTURE_TYPE_DISPLAY_POWER_INFO_EXTpNext must be NULLpowerState must be a valid VkDisplayPowerStateEXT valuesType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.powerState – a VkDisplayPowerStateEXT value specifying the new power state of the display.
struct VkDisplayPowerInfoEXT {
VkStructureType sType;
void const * pNext;
VkDisplayPowerStateEXT powerState;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkDisplayPowerInfoEXT.Buffer
An array of
VkDisplayPowerInfoEXT structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
PNEXT
The struct member offsets.
|
static int |
POWERSTATE
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkDisplayPowerInfoEXT(java.nio.ByteBuffer container)
Creates a
VkDisplayPowerInfoEXT instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkDisplayPowerInfoEXT |
calloc()
Returns a new
VkDisplayPowerInfoEXT instance allocated with memCalloc. |
static VkDisplayPowerInfoEXT.Buffer |
calloc(int capacity)
Returns a new
VkDisplayPowerInfoEXT.Buffer instance allocated with memCalloc. |
static VkDisplayPowerInfoEXT |
callocStack()
Returns a new
VkDisplayPowerInfoEXT instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkDisplayPowerInfoEXT.Buffer |
callocStack(int capacity)
Returns a new
VkDisplayPowerInfoEXT.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkDisplayPowerInfoEXT.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkDisplayPowerInfoEXT.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkDisplayPowerInfoEXT |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkDisplayPowerInfoEXT instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkDisplayPowerInfoEXT |
create()
Returns a new
VkDisplayPowerInfoEXT instance allocated with BufferUtils. |
static VkDisplayPowerInfoEXT.Buffer |
create(int capacity)
Returns a new
VkDisplayPowerInfoEXT.Buffer instance allocated with BufferUtils. |
static VkDisplayPowerInfoEXT |
create(long address)
Returns a new
VkDisplayPowerInfoEXT instance for the specified memory address. |
static VkDisplayPowerInfoEXT.Buffer |
create(long address,
int capacity)
Create a
VkDisplayPowerInfoEXT.Buffer instance at the specified memory. |
static VkDisplayPowerInfoEXT |
createSafe(long address)
|
static VkDisplayPowerInfoEXT.Buffer |
createSafe(long address,
int capacity)
|
static VkDisplayPowerInfoEXT |
malloc()
Returns a new
VkDisplayPowerInfoEXT instance allocated with memAlloc. |
static VkDisplayPowerInfoEXT.Buffer |
malloc(int capacity)
Returns a new
VkDisplayPowerInfoEXT.Buffer instance allocated with memAlloc. |
static VkDisplayPowerInfoEXT |
mallocStack()
Returns a new
VkDisplayPowerInfoEXT instance allocated on the thread-local MemoryStack. |
static VkDisplayPowerInfoEXT.Buffer |
mallocStack(int capacity)
Returns a new
VkDisplayPowerInfoEXT.Buffer instance allocated on the thread-local MemoryStack. |
static VkDisplayPowerInfoEXT.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkDisplayPowerInfoEXT.Buffer instance allocated on the specified MemoryStack. |
static VkDisplayPowerInfoEXT |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkDisplayPowerInfoEXT instance allocated on the specified MemoryStack. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static int |
npowerState(long struct)
Unsafe version of
powerState(). |
static void |
npowerState(long struct,
int value)
Unsafe version of
powerState. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
long |
pNext()
Returns the value of the
pNext field. |
VkDisplayPowerInfoEXT |
pNext(long value)
Sets the specified value to the
pNext field. |
int |
powerState()
Returns the value of the
powerState field. |
VkDisplayPowerInfoEXT |
powerState(int value)
Sets the specified value to the
powerState 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 the
sType field. |
VkDisplayPowerInfoEXT |
sType(int value)
Sets the specified value to the
sType field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STYPE
public static final int PNEXT
public static final int POWERSTATE
public VkDisplayPowerInfoEXT(java.nio.ByteBuffer container)
VkDisplayPowerInfoEXT instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int sType()
sType field.public long pNext()
pNext field.public int powerState()
powerState field.public VkDisplayPowerInfoEXT sType(int value)
sType field.public VkDisplayPowerInfoEXT pNext(long value)
pNext field.public VkDisplayPowerInfoEXT powerState(int value)
powerState field.public VkDisplayPowerInfoEXT set(int sType, long pNext, int powerState)
public VkDisplayPowerInfoEXT set(VkDisplayPowerInfoEXT src)
src - the source structpublic static VkDisplayPowerInfoEXT malloc()
VkDisplayPowerInfoEXT instance allocated with memAlloc. The instance must be explicitly freed.public static VkDisplayPowerInfoEXT calloc()
VkDisplayPowerInfoEXT instance allocated with memCalloc. The instance must be explicitly freed.public static VkDisplayPowerInfoEXT create()
VkDisplayPowerInfoEXT instance allocated with BufferUtils.public static VkDisplayPowerInfoEXT create(long address)
VkDisplayPowerInfoEXT instance for the specified memory address.@Nullable public static VkDisplayPowerInfoEXT createSafe(long address)
public static VkDisplayPowerInfoEXT.Buffer malloc(int capacity)
VkDisplayPowerInfoEXT.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkDisplayPowerInfoEXT.Buffer calloc(int capacity)
VkDisplayPowerInfoEXT.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkDisplayPowerInfoEXT.Buffer create(int capacity)
VkDisplayPowerInfoEXT.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkDisplayPowerInfoEXT.Buffer create(long address, int capacity)
VkDisplayPowerInfoEXT.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkDisplayPowerInfoEXT.Buffer createSafe(long address, int capacity)
public static VkDisplayPowerInfoEXT mallocStack()
VkDisplayPowerInfoEXT instance allocated on the thread-local MemoryStack.public static VkDisplayPowerInfoEXT callocStack()
VkDisplayPowerInfoEXT instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkDisplayPowerInfoEXT mallocStack(org.lwjgl.system.MemoryStack stack)
VkDisplayPowerInfoEXT instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkDisplayPowerInfoEXT callocStack(org.lwjgl.system.MemoryStack stack)
VkDisplayPowerInfoEXT instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkDisplayPowerInfoEXT.Buffer mallocStack(int capacity)
VkDisplayPowerInfoEXT.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkDisplayPowerInfoEXT.Buffer callocStack(int capacity)
VkDisplayPowerInfoEXT.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkDisplayPowerInfoEXT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkDisplayPowerInfoEXT.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkDisplayPowerInfoEXT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkDisplayPowerInfoEXT.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nsType(long struct)
sType().public static long npNext(long struct)
pNext().public static int npowerState(long struct)
powerState().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void npowerState(long struct,
int value)
powerState.Copyright LWJGL. All Rights Reserved. License terms.