public class VkSharedPresentSurfaceCapabilitiesKHR
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
sType must be STRUCTURE_TYPE_SHARED_PRESENT_SURFACE_CAPABILITIES_KHRsType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.sharedPresentSupportedUsageFlags – a bitmask of VkImageUsageFlagBits representing the ways the application can use the shared presentable image from a swapchain created with VkPresentModeKHR set to PRESENT_MODE_SHARED_DEMAND_REFRESH_KHR or PRESENT_MODE_SHARED_CONTINUOUS_REFRESH_KHR for the surface on the specified device. IMAGE_USAGE_COLOR_ATTACHMENT_BIT must be included in the set but implementations may support additional usages.
struct VkSharedPresentSurfaceCapabilitiesKHR {
VkStructureType sType;
void * pNext;
VkImageUsageFlags sharedPresentSupportedUsageFlags;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkSharedPresentSurfaceCapabilitiesKHR.Buffer
An array of
VkSharedPresentSurfaceCapabilitiesKHR structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
PNEXT
The struct member offsets.
|
static int |
SHAREDPRESENTSUPPORTEDUSAGEFLAGS
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkSharedPresentSurfaceCapabilitiesKHR(java.nio.ByteBuffer container)
Creates a
VkSharedPresentSurfaceCapabilitiesKHR instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkSharedPresentSurfaceCapabilitiesKHR |
calloc()
Returns a new
VkSharedPresentSurfaceCapabilitiesKHR instance allocated with memCalloc. |
static VkSharedPresentSurfaceCapabilitiesKHR.Buffer |
calloc(int capacity)
Returns a new
VkSharedPresentSurfaceCapabilitiesKHR.Buffer instance allocated with memCalloc. |
static VkSharedPresentSurfaceCapabilitiesKHR |
callocStack()
Returns a new
VkSharedPresentSurfaceCapabilitiesKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkSharedPresentSurfaceCapabilitiesKHR.Buffer |
callocStack(int capacity)
Returns a new
VkSharedPresentSurfaceCapabilitiesKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkSharedPresentSurfaceCapabilitiesKHR.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkSharedPresentSurfaceCapabilitiesKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkSharedPresentSurfaceCapabilitiesKHR |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkSharedPresentSurfaceCapabilitiesKHR instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkSharedPresentSurfaceCapabilitiesKHR |
create()
Returns a new
VkSharedPresentSurfaceCapabilitiesKHR instance allocated with BufferUtils. |
static VkSharedPresentSurfaceCapabilitiesKHR.Buffer |
create(int capacity)
Returns a new
VkSharedPresentSurfaceCapabilitiesKHR.Buffer instance allocated with BufferUtils. |
static VkSharedPresentSurfaceCapabilitiesKHR |
create(long address)
Returns a new
VkSharedPresentSurfaceCapabilitiesKHR instance for the specified memory address. |
static VkSharedPresentSurfaceCapabilitiesKHR.Buffer |
create(long address,
int capacity)
Create a
VkSharedPresentSurfaceCapabilitiesKHR.Buffer instance at the specified memory. |
static VkSharedPresentSurfaceCapabilitiesKHR |
createSafe(long address)
|
static VkSharedPresentSurfaceCapabilitiesKHR.Buffer |
createSafe(long address,
int capacity)
|
static VkSharedPresentSurfaceCapabilitiesKHR |
malloc()
Returns a new
VkSharedPresentSurfaceCapabilitiesKHR instance allocated with memAlloc. |
static VkSharedPresentSurfaceCapabilitiesKHR.Buffer |
malloc(int capacity)
Returns a new
VkSharedPresentSurfaceCapabilitiesKHR.Buffer instance allocated with memAlloc. |
static VkSharedPresentSurfaceCapabilitiesKHR |
mallocStack()
Returns a new
VkSharedPresentSurfaceCapabilitiesKHR instance allocated on the thread-local MemoryStack. |
static VkSharedPresentSurfaceCapabilitiesKHR.Buffer |
mallocStack(int capacity)
Returns a new
VkSharedPresentSurfaceCapabilitiesKHR.Buffer instance allocated on the thread-local MemoryStack. |
static VkSharedPresentSurfaceCapabilitiesKHR.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkSharedPresentSurfaceCapabilitiesKHR.Buffer instance allocated on the specified MemoryStack. |
static VkSharedPresentSurfaceCapabilitiesKHR |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkSharedPresentSurfaceCapabilitiesKHR 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 |
nsharedPresentSupportedUsageFlags(long struct)
Unsafe version of
sharedPresentSupportedUsageFlags(). |
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. |
VkSharedPresentSurfaceCapabilitiesKHR |
pNext(long value)
Sets the specified value to the
pNext field. |
VkSharedPresentSurfaceCapabilitiesKHR |
set(int sType,
long pNext)
Initializes this struct with the specified values.
|
VkSharedPresentSurfaceCapabilitiesKHR |
set(VkSharedPresentSurfaceCapabilitiesKHR src)
Copies the specified struct data to this struct.
|
int |
sharedPresentSupportedUsageFlags()
Returns the value of the
sharedPresentSupportedUsageFlags field. |
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkSharedPresentSurfaceCapabilitiesKHR |
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 SHAREDPRESENTSUPPORTEDUSAGEFLAGS
public VkSharedPresentSurfaceCapabilitiesKHR(java.nio.ByteBuffer container)
VkSharedPresentSurfaceCapabilitiesKHR 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 sharedPresentSupportedUsageFlags()
sharedPresentSupportedUsageFlags field.public VkSharedPresentSurfaceCapabilitiesKHR sType(int value)
sType field.public VkSharedPresentSurfaceCapabilitiesKHR pNext(long value)
pNext field.public VkSharedPresentSurfaceCapabilitiesKHR set(int sType, long pNext)
public VkSharedPresentSurfaceCapabilitiesKHR set(VkSharedPresentSurfaceCapabilitiesKHR src)
src - the source structpublic static VkSharedPresentSurfaceCapabilitiesKHR malloc()
VkSharedPresentSurfaceCapabilitiesKHR instance allocated with memAlloc. The instance must be explicitly freed.public static VkSharedPresentSurfaceCapabilitiesKHR calloc()
VkSharedPresentSurfaceCapabilitiesKHR instance allocated with memCalloc. The instance must be explicitly freed.public static VkSharedPresentSurfaceCapabilitiesKHR create()
VkSharedPresentSurfaceCapabilitiesKHR instance allocated with BufferUtils.public static VkSharedPresentSurfaceCapabilitiesKHR create(long address)
VkSharedPresentSurfaceCapabilitiesKHR instance for the specified memory address.@Nullable public static VkSharedPresentSurfaceCapabilitiesKHR createSafe(long address)
public static VkSharedPresentSurfaceCapabilitiesKHR.Buffer malloc(int capacity)
VkSharedPresentSurfaceCapabilitiesKHR.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkSharedPresentSurfaceCapabilitiesKHR.Buffer calloc(int capacity)
VkSharedPresentSurfaceCapabilitiesKHR.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkSharedPresentSurfaceCapabilitiesKHR.Buffer create(int capacity)
VkSharedPresentSurfaceCapabilitiesKHR.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkSharedPresentSurfaceCapabilitiesKHR.Buffer create(long address, int capacity)
VkSharedPresentSurfaceCapabilitiesKHR.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkSharedPresentSurfaceCapabilitiesKHR.Buffer createSafe(long address, int capacity)
public static VkSharedPresentSurfaceCapabilitiesKHR mallocStack()
VkSharedPresentSurfaceCapabilitiesKHR instance allocated on the thread-local MemoryStack.public static VkSharedPresentSurfaceCapabilitiesKHR callocStack()
VkSharedPresentSurfaceCapabilitiesKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkSharedPresentSurfaceCapabilitiesKHR mallocStack(org.lwjgl.system.MemoryStack stack)
VkSharedPresentSurfaceCapabilitiesKHR instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkSharedPresentSurfaceCapabilitiesKHR callocStack(org.lwjgl.system.MemoryStack stack)
VkSharedPresentSurfaceCapabilitiesKHR instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkSharedPresentSurfaceCapabilitiesKHR.Buffer mallocStack(int capacity)
VkSharedPresentSurfaceCapabilitiesKHR.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkSharedPresentSurfaceCapabilitiesKHR.Buffer callocStack(int capacity)
VkSharedPresentSurfaceCapabilitiesKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkSharedPresentSurfaceCapabilitiesKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkSharedPresentSurfaceCapabilitiesKHR.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkSharedPresentSurfaceCapabilitiesKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkSharedPresentSurfaceCapabilitiesKHR.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 nsharedPresentSupportedUsageFlags(long struct)
sharedPresentSupportedUsageFlags().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.Copyright LWJGL. All Rights Reserved. License terms.