public class VkPhysicalDeviceSurfaceInfo2KHR
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
The members of VkPhysicalDeviceSurfaceInfo2KHR correspond to the arguments to GetPhysicalDeviceSurfaceCapabilitiesKHR, with sType and pNext added for extensibility.
Additional capabilities of a surface may be available to swapchains created with different full-screen exclusive settings - particularly if exclusive full-screen access is application controlled. These additional capabilities can be queried by adding a VkSurfaceFullScreenExclusiveInfoEXT structure to the pNext chain of this structure when used to query surface properties. Additionally, for Win32 surfaces with application controlled exclusive full-screen access, chaining a VkSurfaceFullScreenExclusiveWin32InfoEXT structure may also report additional surface capabilities. These additional capabilities only apply to swapchains created with the same parameters included in the pNext chain of VkSwapchainCreateInfoKHR.
pNext chain includes a VkSurfaceFullScreenExclusiveInfoEXT structure with its fullScreenExclusive member set to FULL_SCREEN_EXCLUSIVE_APPLICATION_CONTROLLED_EXT, and surface was created using CreateWin32SurfaceKHR, a VkSurfaceFullScreenExclusiveWin32InfoEXT structure must be included in the pNext chainsType must be STRUCTURE_TYPE_PHYSICAL_DEVICE_SURFACE_INFO_2_KHRpNext member of any structure (including this one) in the pNext chain must be either NULL or a pointer to a valid instance of VkSurfaceFullScreenExclusiveInfoEXT or VkSurfaceFullScreenExclusiveWin32InfoEXTsType member in the pNext chain must be uniquesurface must be a valid VkSurfaceKHR handleGetDeviceGroupSurfacePresentModes2EXT, GetPhysicalDeviceSurfaceCapabilities2KHR, GetPhysicalDeviceSurfaceFormats2KHR, GetPhysicalDeviceSurfacePresentModes2EXT
sType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.surface – the surface that will be associated with the swapchain.
struct VkPhysicalDeviceSurfaceInfo2KHR {
VkStructureType sType;
void const * pNext;
VkSurfaceKHR surface;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkPhysicalDeviceSurfaceInfo2KHR.Buffer
An array of
VkPhysicalDeviceSurfaceInfo2KHR structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
PNEXT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
static int |
SURFACE
The struct member offsets.
|
| Constructor and Description |
|---|
VkPhysicalDeviceSurfaceInfo2KHR(java.nio.ByteBuffer container)
Creates a
VkPhysicalDeviceSurfaceInfo2KHR instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkPhysicalDeviceSurfaceInfo2KHR |
calloc()
Returns a new
VkPhysicalDeviceSurfaceInfo2KHR instance allocated with memCalloc. |
static VkPhysicalDeviceSurfaceInfo2KHR.Buffer |
calloc(int capacity)
Returns a new
VkPhysicalDeviceSurfaceInfo2KHR.Buffer instance allocated with memCalloc. |
static VkPhysicalDeviceSurfaceInfo2KHR |
callocStack()
Returns a new
VkPhysicalDeviceSurfaceInfo2KHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceSurfaceInfo2KHR.Buffer |
callocStack(int capacity)
Returns a new
VkPhysicalDeviceSurfaceInfo2KHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceSurfaceInfo2KHR.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceSurfaceInfo2KHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceSurfaceInfo2KHR |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceSurfaceInfo2KHR instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceSurfaceInfo2KHR |
create()
Returns a new
VkPhysicalDeviceSurfaceInfo2KHR instance allocated with BufferUtils. |
static VkPhysicalDeviceSurfaceInfo2KHR.Buffer |
create(int capacity)
Returns a new
VkPhysicalDeviceSurfaceInfo2KHR.Buffer instance allocated with BufferUtils. |
static VkPhysicalDeviceSurfaceInfo2KHR |
create(long address)
Returns a new
VkPhysicalDeviceSurfaceInfo2KHR instance for the specified memory address. |
static VkPhysicalDeviceSurfaceInfo2KHR.Buffer |
create(long address,
int capacity)
Create a
VkPhysicalDeviceSurfaceInfo2KHR.Buffer instance at the specified memory. |
static VkPhysicalDeviceSurfaceInfo2KHR |
createSafe(long address)
|
static VkPhysicalDeviceSurfaceInfo2KHR.Buffer |
createSafe(long address,
int capacity)
|
static VkPhysicalDeviceSurfaceInfo2KHR |
malloc()
Returns a new
VkPhysicalDeviceSurfaceInfo2KHR instance allocated with memAlloc. |
static VkPhysicalDeviceSurfaceInfo2KHR.Buffer |
malloc(int capacity)
Returns a new
VkPhysicalDeviceSurfaceInfo2KHR.Buffer instance allocated with memAlloc. |
static VkPhysicalDeviceSurfaceInfo2KHR |
mallocStack()
Returns a new
VkPhysicalDeviceSurfaceInfo2KHR instance allocated on the thread-local MemoryStack. |
static VkPhysicalDeviceSurfaceInfo2KHR.Buffer |
mallocStack(int capacity)
Returns a new
VkPhysicalDeviceSurfaceInfo2KHR.Buffer instance allocated on the thread-local MemoryStack. |
static VkPhysicalDeviceSurfaceInfo2KHR.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceSurfaceInfo2KHR.Buffer instance allocated on the specified MemoryStack. |
static VkPhysicalDeviceSurfaceInfo2KHR |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceSurfaceInfo2KHR 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 |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
static long |
nsurface(long struct)
Unsafe version of
surface(). |
static void |
nsurface(long struct,
long value)
Unsafe version of
surface. |
long |
pNext()
Returns the value of the
pNext field. |
VkPhysicalDeviceSurfaceInfo2KHR |
pNext(long value)
Sets the specified value to the
pNext field. |
VkPhysicalDeviceSurfaceInfo2KHR |
set(int sType,
long pNext,
long surface)
Initializes this struct with the specified values.
|
VkPhysicalDeviceSurfaceInfo2KHR |
set(VkPhysicalDeviceSurfaceInfo2KHR src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkPhysicalDeviceSurfaceInfo2KHR |
sType(int value)
Sets the specified value to the
sType field. |
long |
surface()
Returns the value of the
surface field. |
VkPhysicalDeviceSurfaceInfo2KHR |
surface(long value)
Sets the specified value to the
surface 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 SURFACE
public VkPhysicalDeviceSurfaceInfo2KHR(java.nio.ByteBuffer container)
VkPhysicalDeviceSurfaceInfo2KHR 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 long surface()
surface field.public VkPhysicalDeviceSurfaceInfo2KHR sType(int value)
sType field.public VkPhysicalDeviceSurfaceInfo2KHR pNext(long value)
pNext field.public VkPhysicalDeviceSurfaceInfo2KHR surface(long value)
surface field.public VkPhysicalDeviceSurfaceInfo2KHR set(int sType, long pNext, long surface)
public VkPhysicalDeviceSurfaceInfo2KHR set(VkPhysicalDeviceSurfaceInfo2KHR src)
src - the source structpublic static VkPhysicalDeviceSurfaceInfo2KHR malloc()
VkPhysicalDeviceSurfaceInfo2KHR instance allocated with memAlloc. The instance must be explicitly freed.public static VkPhysicalDeviceSurfaceInfo2KHR calloc()
VkPhysicalDeviceSurfaceInfo2KHR instance allocated with memCalloc. The instance must be explicitly freed.public static VkPhysicalDeviceSurfaceInfo2KHR create()
VkPhysicalDeviceSurfaceInfo2KHR instance allocated with BufferUtils.public static VkPhysicalDeviceSurfaceInfo2KHR create(long address)
VkPhysicalDeviceSurfaceInfo2KHR instance for the specified memory address.@Nullable public static VkPhysicalDeviceSurfaceInfo2KHR createSafe(long address)
public static VkPhysicalDeviceSurfaceInfo2KHR.Buffer malloc(int capacity)
VkPhysicalDeviceSurfaceInfo2KHR.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPhysicalDeviceSurfaceInfo2KHR.Buffer calloc(int capacity)
VkPhysicalDeviceSurfaceInfo2KHR.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPhysicalDeviceSurfaceInfo2KHR.Buffer create(int capacity)
VkPhysicalDeviceSurfaceInfo2KHR.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkPhysicalDeviceSurfaceInfo2KHR.Buffer create(long address, int capacity)
VkPhysicalDeviceSurfaceInfo2KHR.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkPhysicalDeviceSurfaceInfo2KHR.Buffer createSafe(long address, int capacity)
public static VkPhysicalDeviceSurfaceInfo2KHR mallocStack()
VkPhysicalDeviceSurfaceInfo2KHR instance allocated on the thread-local MemoryStack.public static VkPhysicalDeviceSurfaceInfo2KHR callocStack()
VkPhysicalDeviceSurfaceInfo2KHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkPhysicalDeviceSurfaceInfo2KHR mallocStack(org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceSurfaceInfo2KHR instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkPhysicalDeviceSurfaceInfo2KHR callocStack(org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceSurfaceInfo2KHR instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkPhysicalDeviceSurfaceInfo2KHR.Buffer mallocStack(int capacity)
VkPhysicalDeviceSurfaceInfo2KHR.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkPhysicalDeviceSurfaceInfo2KHR.Buffer callocStack(int capacity)
VkPhysicalDeviceSurfaceInfo2KHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkPhysicalDeviceSurfaceInfo2KHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceSurfaceInfo2KHR.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkPhysicalDeviceSurfaceInfo2KHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceSurfaceInfo2KHR.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 long nsurface(long struct)
surface().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nsurface(long struct,
long value)
surface.Copyright LWJGL. All Rights Reserved. License terms.