Package org.lwjgl.vulkan
Class VkSurfaceFullScreenExclusiveWin32InfoEXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkSurfaceFullScreenExclusiveWin32InfoEXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class VkSurfaceFullScreenExclusiveWin32InfoEXT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Structure specifying additional creation parameters specific to Win32 fullscreen exclusive mode.Description
Note
If
hmonitor
is invalidated (e.g. the monitor is unplugged) during the lifetime of a swapchain created with this structure, operations on that swapchain will returnERROR_OUT_OF_DATE_KHR
.Note
It's the responsibility of the application to change the display settings of the targeted Win32 display using the appropriate platform APIs. Such changes may alter the surface capabilities reported for the created surface.
Valid Usage
hmonitor
must be a validHMONITOR
Valid Usage (Implicit)
Member documentation
sType
– the type of this structure.pNext
–NULL
or a pointer to an extension-specific structure.hmonitor
– the Win32HMONITOR
handle identifying the display to create the surface with.
Layout
struct VkSurfaceFullScreenExclusiveWin32InfoEXT { VkStructureType sType; void const * pNext; HMONITOR hmonitor; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VkSurfaceFullScreenExclusiveWin32InfoEXT.Buffer
An array ofVkSurfaceFullScreenExclusiveWin32InfoEXT
structs.
-
Constructor Summary
Constructors Constructor Description VkSurfaceFullScreenExclusiveWin32InfoEXT(java.nio.ByteBuffer container)
Creates aVkSurfaceFullScreenExclusiveWin32InfoEXT
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 VkSurfaceFullScreenExclusiveWin32InfoEXT
calloc()
Returns a newVkSurfaceFullScreenExclusiveWin32InfoEXT
instance allocated withmemCalloc
.static VkSurfaceFullScreenExclusiveWin32InfoEXT.Buffer
calloc(int capacity)
Returns a newVkSurfaceFullScreenExclusiveWin32InfoEXT.Buffer
instance allocated withmemCalloc
.static VkSurfaceFullScreenExclusiveWin32InfoEXT
callocStack()
Returns a newVkSurfaceFullScreenExclusiveWin32InfoEXT
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkSurfaceFullScreenExclusiveWin32InfoEXT.Buffer
callocStack(int capacity)
Returns a newVkSurfaceFullScreenExclusiveWin32InfoEXT.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkSurfaceFullScreenExclusiveWin32InfoEXT.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkSurfaceFullScreenExclusiveWin32InfoEXT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkSurfaceFullScreenExclusiveWin32InfoEXT
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkSurfaceFullScreenExclusiveWin32InfoEXT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkSurfaceFullScreenExclusiveWin32InfoEXT
create()
Returns a newVkSurfaceFullScreenExclusiveWin32InfoEXT
instance allocated withBufferUtils
.static VkSurfaceFullScreenExclusiveWin32InfoEXT.Buffer
create(int capacity)
Returns a newVkSurfaceFullScreenExclusiveWin32InfoEXT.Buffer
instance allocated withBufferUtils
.static VkSurfaceFullScreenExclusiveWin32InfoEXT
create(long address)
Returns a newVkSurfaceFullScreenExclusiveWin32InfoEXT
instance for the specified memory address.static VkSurfaceFullScreenExclusiveWin32InfoEXT.Buffer
create(long address, int capacity)
Create aVkSurfaceFullScreenExclusiveWin32InfoEXT.Buffer
instance at the specified memory.static VkSurfaceFullScreenExclusiveWin32InfoEXT
createSafe(long address)
static VkSurfaceFullScreenExclusiveWin32InfoEXT.Buffer
createSafe(long address, int capacity)
long
hmonitor()
Returns the value of thehmonitor
field.VkSurfaceFullScreenExclusiveWin32InfoEXT
hmonitor(long value)
Sets the specified value to thehmonitor
field.static VkSurfaceFullScreenExclusiveWin32InfoEXT
malloc()
Returns a newVkSurfaceFullScreenExclusiveWin32InfoEXT
instance allocated withmemAlloc
.static VkSurfaceFullScreenExclusiveWin32InfoEXT.Buffer
malloc(int capacity)
Returns a newVkSurfaceFullScreenExclusiveWin32InfoEXT.Buffer
instance allocated withmemAlloc
.static VkSurfaceFullScreenExclusiveWin32InfoEXT
mallocStack()
Returns a newVkSurfaceFullScreenExclusiveWin32InfoEXT
instance allocated on the thread-localMemoryStack
.static VkSurfaceFullScreenExclusiveWin32InfoEXT.Buffer
mallocStack(int capacity)
Returns a newVkSurfaceFullScreenExclusiveWin32InfoEXT.Buffer
instance allocated on the thread-localMemoryStack
.static VkSurfaceFullScreenExclusiveWin32InfoEXT.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkSurfaceFullScreenExclusiveWin32InfoEXT.Buffer
instance allocated on the specifiedMemoryStack
.static VkSurfaceFullScreenExclusiveWin32InfoEXT
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkSurfaceFullScreenExclusiveWin32InfoEXT
instance allocated on the specifiedMemoryStack
.static long
nhmonitor(long struct)
Unsafe version ofhmonitor()
.static void
nhmonitor(long struct, long value)
Unsafe version ofhmonitor
.static long
npNext(long struct)
Unsafe version ofpNext()
.static void
npNext(long struct, long value)
Unsafe version ofpNext
.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.VkSurfaceFullScreenExclusiveWin32InfoEXT
pNext(long value)
Sets the specified value to thepNext
field.VkSurfaceFullScreenExclusiveWin32InfoEXT
set(int sType, long pNext, long hmonitor)
Initializes this struct with the specified values.VkSurfaceFullScreenExclusiveWin32InfoEXT
set(VkSurfaceFullScreenExclusiveWin32InfoEXT src)
Copies the specified struct data to this struct.int
sizeof()
int
sType()
Returns the value of thesType
field.VkSurfaceFullScreenExclusiveWin32InfoEXT
sType(int value)
Sets the specified value to thesType
field.static void
validate(long struct)
Validates pointer members that should not beNULL
.static void
validate(long array, int count)
Callsvalidate(long)
for each struct contained in the specified struct array.
-
-
-
Constructor Detail
-
VkSurfaceFullScreenExclusiveWin32InfoEXT
public VkSurfaceFullScreenExclusiveWin32InfoEXT(java.nio.ByteBuffer container)
Creates aVkSurfaceFullScreenExclusiveWin32InfoEXT
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.
-
hmonitor
public long hmonitor()
Returns the value of thehmonitor
field.
-
sType
public VkSurfaceFullScreenExclusiveWin32InfoEXT sType(int value)
Sets the specified value to thesType
field.
-
pNext
public VkSurfaceFullScreenExclusiveWin32InfoEXT pNext(long value)
Sets the specified value to thepNext
field.
-
hmonitor
public VkSurfaceFullScreenExclusiveWin32InfoEXT hmonitor(long value)
Sets the specified value to thehmonitor
field.
-
set
public VkSurfaceFullScreenExclusiveWin32InfoEXT set(int sType, long pNext, long hmonitor)
Initializes this struct with the specified values.
-
set
public VkSurfaceFullScreenExclusiveWin32InfoEXT set(VkSurfaceFullScreenExclusiveWin32InfoEXT src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static VkSurfaceFullScreenExclusiveWin32InfoEXT malloc()
Returns a newVkSurfaceFullScreenExclusiveWin32InfoEXT
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkSurfaceFullScreenExclusiveWin32InfoEXT calloc()
Returns a newVkSurfaceFullScreenExclusiveWin32InfoEXT
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkSurfaceFullScreenExclusiveWin32InfoEXT create()
Returns a newVkSurfaceFullScreenExclusiveWin32InfoEXT
instance allocated withBufferUtils
.
-
create
public static VkSurfaceFullScreenExclusiveWin32InfoEXT create(long address)
Returns a newVkSurfaceFullScreenExclusiveWin32InfoEXT
instance for the specified memory address.
-
createSafe
@Nullable public static VkSurfaceFullScreenExclusiveWin32InfoEXT createSafe(long address)
-
malloc
public static VkSurfaceFullScreenExclusiveWin32InfoEXT.Buffer malloc(int capacity)
Returns a newVkSurfaceFullScreenExclusiveWin32InfoEXT.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkSurfaceFullScreenExclusiveWin32InfoEXT.Buffer calloc(int capacity)
Returns a newVkSurfaceFullScreenExclusiveWin32InfoEXT.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkSurfaceFullScreenExclusiveWin32InfoEXT.Buffer create(int capacity)
Returns a newVkSurfaceFullScreenExclusiveWin32InfoEXT.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkSurfaceFullScreenExclusiveWin32InfoEXT.Buffer create(long address, int capacity)
Create aVkSurfaceFullScreenExclusiveWin32InfoEXT.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VkSurfaceFullScreenExclusiveWin32InfoEXT.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkSurfaceFullScreenExclusiveWin32InfoEXT mallocStack()
Returns a newVkSurfaceFullScreenExclusiveWin32InfoEXT
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkSurfaceFullScreenExclusiveWin32InfoEXT callocStack()
Returns a newVkSurfaceFullScreenExclusiveWin32InfoEXT
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkSurfaceFullScreenExclusiveWin32InfoEXT mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkSurfaceFullScreenExclusiveWin32InfoEXT
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkSurfaceFullScreenExclusiveWin32InfoEXT callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkSurfaceFullScreenExclusiveWin32InfoEXT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VkSurfaceFullScreenExclusiveWin32InfoEXT.Buffer mallocStack(int capacity)
Returns a newVkSurfaceFullScreenExclusiveWin32InfoEXT.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkSurfaceFullScreenExclusiveWin32InfoEXT.Buffer callocStack(int capacity)
Returns a newVkSurfaceFullScreenExclusiveWin32InfoEXT.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkSurfaceFullScreenExclusiveWin32InfoEXT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkSurfaceFullScreenExclusiveWin32InfoEXT.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VkSurfaceFullScreenExclusiveWin32InfoEXT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkSurfaceFullScreenExclusiveWin32InfoEXT.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()
.
-
nhmonitor
public static long nhmonitor(long struct)
Unsafe version ofhmonitor()
.
-
nsType
public static void nsType(long struct, int value)
Unsafe version ofsType
.
-
npNext
public static void npNext(long struct, long value)
Unsafe version ofpNext
.
-
nhmonitor
public static void nhmonitor(long struct, long value)
Unsafe version ofhmonitor
.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL
.- Parameters:
struct
- the struct to validate
-
validate
public static void validate(long array, int count)
Callsvalidate(long)
for each struct contained in the specified struct array.- Parameters:
array
- the struct array to validatecount
- the number of structs inarray
-
-