public class VkSurfaceProtectedCapabilitiesKHR
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
sType must be STRUCTURE_TYPE_SURFACE_PROTECTED_CAPABILITIES_KHRsType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.supportsProtected – specifies whether a protected swapchain created from VkPhysicalDeviceSurfaceInfo2KHR::surface for a particular windowing system can be displayed on screen or not. If supportsProtected is TRUE, then creation of swapchains with the SWAPCHAIN_CREATE_PROTECTED_BIT_KHR flag set must be supported for surface.
struct VkSurfaceProtectedCapabilitiesKHR {
VkStructureType sType;
void const * pNext;
VkBool32 supportsProtected;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkSurfaceProtectedCapabilitiesKHR.Buffer
An array of
VkSurfaceProtectedCapabilitiesKHR 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 |
SUPPORTSPROTECTED
The struct member offsets.
|
| Constructor and Description |
|---|
VkSurfaceProtectedCapabilitiesKHR(java.nio.ByteBuffer container)
Creates a
VkSurfaceProtectedCapabilitiesKHR instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkSurfaceProtectedCapabilitiesKHR |
calloc()
Returns a new
VkSurfaceProtectedCapabilitiesKHR instance allocated with memCalloc. |
static VkSurfaceProtectedCapabilitiesKHR.Buffer |
calloc(int capacity)
Returns a new
VkSurfaceProtectedCapabilitiesKHR.Buffer instance allocated with memCalloc. |
static VkSurfaceProtectedCapabilitiesKHR |
callocStack()
Returns a new
VkSurfaceProtectedCapabilitiesKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkSurfaceProtectedCapabilitiesKHR.Buffer |
callocStack(int capacity)
Returns a new
VkSurfaceProtectedCapabilitiesKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkSurfaceProtectedCapabilitiesKHR.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkSurfaceProtectedCapabilitiesKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkSurfaceProtectedCapabilitiesKHR |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkSurfaceProtectedCapabilitiesKHR instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkSurfaceProtectedCapabilitiesKHR |
create()
Returns a new
VkSurfaceProtectedCapabilitiesKHR instance allocated with BufferUtils. |
static VkSurfaceProtectedCapabilitiesKHR.Buffer |
create(int capacity)
Returns a new
VkSurfaceProtectedCapabilitiesKHR.Buffer instance allocated with BufferUtils. |
static VkSurfaceProtectedCapabilitiesKHR |
create(long address)
Returns a new
VkSurfaceProtectedCapabilitiesKHR instance for the specified memory address. |
static VkSurfaceProtectedCapabilitiesKHR.Buffer |
create(long address,
int capacity)
Create a
VkSurfaceProtectedCapabilitiesKHR.Buffer instance at the specified memory. |
static VkSurfaceProtectedCapabilitiesKHR |
createSafe(long address)
|
static VkSurfaceProtectedCapabilitiesKHR.Buffer |
createSafe(long address,
int capacity)
|
static VkSurfaceProtectedCapabilitiesKHR |
malloc()
Returns a new
VkSurfaceProtectedCapabilitiesKHR instance allocated with memAlloc. |
static VkSurfaceProtectedCapabilitiesKHR.Buffer |
malloc(int capacity)
Returns a new
VkSurfaceProtectedCapabilitiesKHR.Buffer instance allocated with memAlloc. |
static VkSurfaceProtectedCapabilitiesKHR |
mallocStack()
Returns a new
VkSurfaceProtectedCapabilitiesKHR instance allocated on the thread-local MemoryStack. |
static VkSurfaceProtectedCapabilitiesKHR.Buffer |
mallocStack(int capacity)
Returns a new
VkSurfaceProtectedCapabilitiesKHR.Buffer instance allocated on the thread-local MemoryStack. |
static VkSurfaceProtectedCapabilitiesKHR.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkSurfaceProtectedCapabilitiesKHR.Buffer instance allocated on the specified MemoryStack. |
static VkSurfaceProtectedCapabilitiesKHR |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkSurfaceProtectedCapabilitiesKHR 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 int |
nsupportsProtected(long struct)
Unsafe version of
supportsProtected(). |
static void |
nsupportsProtected(long struct,
int value)
Unsafe version of
supportsProtected. |
long |
pNext()
Returns the value of the
pNext field. |
VkSurfaceProtectedCapabilitiesKHR |
pNext(long value)
Sets the specified value to the
pNext field. |
VkSurfaceProtectedCapabilitiesKHR |
set(int sType,
long pNext,
boolean supportsProtected)
Initializes this struct with the specified values.
|
VkSurfaceProtectedCapabilitiesKHR |
set(VkSurfaceProtectedCapabilitiesKHR src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkSurfaceProtectedCapabilitiesKHR |
sType(int value)
Sets the specified value to the
sType field. |
boolean |
supportsProtected()
Returns the value of the
supportsProtected field. |
VkSurfaceProtectedCapabilitiesKHR |
supportsProtected(boolean value)
Sets the specified value to the
supportsProtected 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 SUPPORTSPROTECTED
public VkSurfaceProtectedCapabilitiesKHR(java.nio.ByteBuffer container)
VkSurfaceProtectedCapabilitiesKHR 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 boolean supportsProtected()
supportsProtected field.public VkSurfaceProtectedCapabilitiesKHR sType(int value)
sType field.public VkSurfaceProtectedCapabilitiesKHR pNext(long value)
pNext field.public VkSurfaceProtectedCapabilitiesKHR supportsProtected(boolean value)
supportsProtected field.public VkSurfaceProtectedCapabilitiesKHR set(int sType, long pNext, boolean supportsProtected)
public VkSurfaceProtectedCapabilitiesKHR set(VkSurfaceProtectedCapabilitiesKHR src)
src - the source structpublic static VkSurfaceProtectedCapabilitiesKHR malloc()
VkSurfaceProtectedCapabilitiesKHR instance allocated with memAlloc. The instance must be explicitly freed.public static VkSurfaceProtectedCapabilitiesKHR calloc()
VkSurfaceProtectedCapabilitiesKHR instance allocated with memCalloc. The instance must be explicitly freed.public static VkSurfaceProtectedCapabilitiesKHR create()
VkSurfaceProtectedCapabilitiesKHR instance allocated with BufferUtils.public static VkSurfaceProtectedCapabilitiesKHR create(long address)
VkSurfaceProtectedCapabilitiesKHR instance for the specified memory address.@Nullable public static VkSurfaceProtectedCapabilitiesKHR createSafe(long address)
public static VkSurfaceProtectedCapabilitiesKHR.Buffer malloc(int capacity)
VkSurfaceProtectedCapabilitiesKHR.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkSurfaceProtectedCapabilitiesKHR.Buffer calloc(int capacity)
VkSurfaceProtectedCapabilitiesKHR.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkSurfaceProtectedCapabilitiesKHR.Buffer create(int capacity)
VkSurfaceProtectedCapabilitiesKHR.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkSurfaceProtectedCapabilitiesKHR.Buffer create(long address, int capacity)
VkSurfaceProtectedCapabilitiesKHR.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkSurfaceProtectedCapabilitiesKHR.Buffer createSafe(long address, int capacity)
public static VkSurfaceProtectedCapabilitiesKHR mallocStack()
VkSurfaceProtectedCapabilitiesKHR instance allocated on the thread-local MemoryStack.public static VkSurfaceProtectedCapabilitiesKHR callocStack()
VkSurfaceProtectedCapabilitiesKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkSurfaceProtectedCapabilitiesKHR mallocStack(org.lwjgl.system.MemoryStack stack)
VkSurfaceProtectedCapabilitiesKHR instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkSurfaceProtectedCapabilitiesKHR callocStack(org.lwjgl.system.MemoryStack stack)
VkSurfaceProtectedCapabilitiesKHR instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkSurfaceProtectedCapabilitiesKHR.Buffer mallocStack(int capacity)
VkSurfaceProtectedCapabilitiesKHR.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkSurfaceProtectedCapabilitiesKHR.Buffer callocStack(int capacity)
VkSurfaceProtectedCapabilitiesKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkSurfaceProtectedCapabilitiesKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkSurfaceProtectedCapabilitiesKHR.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkSurfaceProtectedCapabilitiesKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkSurfaceProtectedCapabilitiesKHR.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 nsupportsProtected(long struct)
supportsProtected().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nsupportsProtected(long struct,
int value)
supportsProtected.Copyright LWJGL. All Rights Reserved. License terms.