public class VkMetalSurfaceCreateInfoEXT
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
sType must be STRUCTURE_TYPE_METAL_SURFACE_CREATE_INFO_EXTpNext must be NULLflags must be 0sType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.flags – reserved for future use.pLayer – a reference to a dlink:CAMetalLayer object representing a renderable surface.
struct VkMetalSurfaceCreateInfoEXT {
VkStructureType sType;
void const * pNext;
VkMetalSurfaceCreateFlagsEXT flags;
CAMetalLayer const * pLayer;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkMetalSurfaceCreateInfoEXT.Buffer
An array of
VkMetalSurfaceCreateInfoEXT structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
FLAGS
The struct member offsets.
|
static int |
PLAYER
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkMetalSurfaceCreateInfoEXT(java.nio.ByteBuffer container)
Creates a
VkMetalSurfaceCreateInfoEXT instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkMetalSurfaceCreateInfoEXT |
calloc()
Returns a new
VkMetalSurfaceCreateInfoEXT instance allocated with memCalloc. |
static VkMetalSurfaceCreateInfoEXT.Buffer |
calloc(int capacity)
Returns a new
VkMetalSurfaceCreateInfoEXT.Buffer instance allocated with memCalloc. |
static VkMetalSurfaceCreateInfoEXT |
callocStack()
Returns a new
VkMetalSurfaceCreateInfoEXT instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkMetalSurfaceCreateInfoEXT.Buffer |
callocStack(int capacity)
Returns a new
VkMetalSurfaceCreateInfoEXT.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkMetalSurfaceCreateInfoEXT.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkMetalSurfaceCreateInfoEXT.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkMetalSurfaceCreateInfoEXT |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkMetalSurfaceCreateInfoEXT instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkMetalSurfaceCreateInfoEXT |
create()
Returns a new
VkMetalSurfaceCreateInfoEXT instance allocated with BufferUtils. |
static VkMetalSurfaceCreateInfoEXT.Buffer |
create(int capacity)
Returns a new
VkMetalSurfaceCreateInfoEXT.Buffer instance allocated with BufferUtils. |
static VkMetalSurfaceCreateInfoEXT |
create(long address)
Returns a new
VkMetalSurfaceCreateInfoEXT instance for the specified memory address. |
static VkMetalSurfaceCreateInfoEXT.Buffer |
create(long address,
int capacity)
Create a
VkMetalSurfaceCreateInfoEXT.Buffer instance at the specified memory. |
static VkMetalSurfaceCreateInfoEXT |
createSafe(long address)
|
static VkMetalSurfaceCreateInfoEXT.Buffer |
createSafe(long address,
int capacity)
|
int |
flags()
Returns the value of the
flags field. |
VkMetalSurfaceCreateInfoEXT |
flags(int value)
Sets the specified value to the
flags field. |
static VkMetalSurfaceCreateInfoEXT |
malloc()
Returns a new
VkMetalSurfaceCreateInfoEXT instance allocated with memAlloc. |
static VkMetalSurfaceCreateInfoEXT.Buffer |
malloc(int capacity)
Returns a new
VkMetalSurfaceCreateInfoEXT.Buffer instance allocated with memAlloc. |
static VkMetalSurfaceCreateInfoEXT |
mallocStack()
Returns a new
VkMetalSurfaceCreateInfoEXT instance allocated on the thread-local MemoryStack. |
static VkMetalSurfaceCreateInfoEXT.Buffer |
mallocStack(int capacity)
Returns a new
VkMetalSurfaceCreateInfoEXT.Buffer instance allocated on the thread-local MemoryStack. |
static VkMetalSurfaceCreateInfoEXT.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkMetalSurfaceCreateInfoEXT.Buffer instance allocated on the specified MemoryStack. |
static VkMetalSurfaceCreateInfoEXT |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkMetalSurfaceCreateInfoEXT instance allocated on the specified MemoryStack. |
static int |
nflags(long struct)
Unsafe version of
flags(). |
static void |
nflags(long struct,
int value)
Unsafe version of
flags. |
static org.lwjgl.PointerBuffer |
npLayer(long struct,
int capacity)
Unsafe version of
pLayer. |
static void |
npLayer(long struct,
org.lwjgl.PointerBuffer value)
Unsafe version of
pLayer. |
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. |
org.lwjgl.PointerBuffer |
pLayer(int capacity)
Returns a
PointerBuffer view of the data pointed to by the pLayer field. |
VkMetalSurfaceCreateInfoEXT |
pLayer(org.lwjgl.PointerBuffer value)
Sets the address of the specified
PointerBuffer to the pLayer field. |
long |
pNext()
Returns the value of the
pNext field. |
VkMetalSurfaceCreateInfoEXT |
pNext(long value)
Sets the specified value to the
pNext field. |
VkMetalSurfaceCreateInfoEXT |
set(int sType,
long pNext,
int flags,
org.lwjgl.PointerBuffer pLayer)
Initializes this struct with the specified values.
|
VkMetalSurfaceCreateInfoEXT |
set(VkMetalSurfaceCreateInfoEXT src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkMetalSurfaceCreateInfoEXT |
sType(int value)
Sets the specified value to the
sType field. |
static void |
validate(long struct)
Validates pointer members that should not be
NULL. |
static void |
validate(long array,
int count)
Calls
validate(long) for each struct contained in the specified struct array. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STYPE
public static final int PNEXT
public static final int FLAGS
public static final int PLAYER
public VkMetalSurfaceCreateInfoEXT(java.nio.ByteBuffer container)
VkMetalSurfaceCreateInfoEXT 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 flags()
flags field.public org.lwjgl.PointerBuffer pLayer(int capacity)
PointerBuffer view of the data pointed to by the pLayer field.capacity - the number of elements in the returned bufferpublic VkMetalSurfaceCreateInfoEXT sType(int value)
sType field.public VkMetalSurfaceCreateInfoEXT pNext(long value)
pNext field.public VkMetalSurfaceCreateInfoEXT flags(int value)
flags field.public VkMetalSurfaceCreateInfoEXT pLayer(org.lwjgl.PointerBuffer value)
PointerBuffer to the pLayer field.public VkMetalSurfaceCreateInfoEXT set(int sType, long pNext, int flags, org.lwjgl.PointerBuffer pLayer)
public VkMetalSurfaceCreateInfoEXT set(VkMetalSurfaceCreateInfoEXT src)
src - the source structpublic static VkMetalSurfaceCreateInfoEXT malloc()
VkMetalSurfaceCreateInfoEXT instance allocated with memAlloc. The instance must be explicitly freed.public static VkMetalSurfaceCreateInfoEXT calloc()
VkMetalSurfaceCreateInfoEXT instance allocated with memCalloc. The instance must be explicitly freed.public static VkMetalSurfaceCreateInfoEXT create()
VkMetalSurfaceCreateInfoEXT instance allocated with BufferUtils.public static VkMetalSurfaceCreateInfoEXT create(long address)
VkMetalSurfaceCreateInfoEXT instance for the specified memory address.@Nullable public static VkMetalSurfaceCreateInfoEXT createSafe(long address)
public static VkMetalSurfaceCreateInfoEXT.Buffer malloc(int capacity)
VkMetalSurfaceCreateInfoEXT.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkMetalSurfaceCreateInfoEXT.Buffer calloc(int capacity)
VkMetalSurfaceCreateInfoEXT.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkMetalSurfaceCreateInfoEXT.Buffer create(int capacity)
VkMetalSurfaceCreateInfoEXT.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkMetalSurfaceCreateInfoEXT.Buffer create(long address, int capacity)
VkMetalSurfaceCreateInfoEXT.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkMetalSurfaceCreateInfoEXT.Buffer createSafe(long address, int capacity)
public static VkMetalSurfaceCreateInfoEXT mallocStack()
VkMetalSurfaceCreateInfoEXT instance allocated on the thread-local MemoryStack.public static VkMetalSurfaceCreateInfoEXT callocStack()
VkMetalSurfaceCreateInfoEXT instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkMetalSurfaceCreateInfoEXT mallocStack(org.lwjgl.system.MemoryStack stack)
VkMetalSurfaceCreateInfoEXT instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkMetalSurfaceCreateInfoEXT callocStack(org.lwjgl.system.MemoryStack stack)
VkMetalSurfaceCreateInfoEXT instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkMetalSurfaceCreateInfoEXT.Buffer mallocStack(int capacity)
VkMetalSurfaceCreateInfoEXT.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkMetalSurfaceCreateInfoEXT.Buffer callocStack(int capacity)
VkMetalSurfaceCreateInfoEXT.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkMetalSurfaceCreateInfoEXT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkMetalSurfaceCreateInfoEXT.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkMetalSurfaceCreateInfoEXT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkMetalSurfaceCreateInfoEXT.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 nflags(long struct)
flags().public static org.lwjgl.PointerBuffer npLayer(long struct,
int capacity)
pLayer.public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nflags(long struct,
int value)
flags.public static void npLayer(long struct,
org.lwjgl.PointerBuffer value)
pLayer.public static void validate(long struct)
NULL.struct - the struct to validatepublic static void validate(long array,
int count)
validate(long) for each struct contained in the specified struct array.array - the struct array to validatecount - the number of structs in arrayCopyright LWJGL. All Rights Reserved. License terms.