public class VkMacOSSurfaceCreateInfoMVK
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
pView must be a valid NSView and must be backed by a CALayer instance of type dlink:CAMetalLayer.sType must be STRUCTURE_TYPE_MACOS_SURFACE_CREATE_INFO_MVKpNext 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.pView – a reference to a NSView object which will display this surface. This NSView must be backed by a CALayer instance of type dlink:CAMetalLayer.
struct VkMacOSSurfaceCreateInfoMVK {
VkStructureType sType;
void const * pNext;
VkMacOSSurfaceCreateFlagsMVK flags;
void const * pView;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkMacOSSurfaceCreateInfoMVK.Buffer
An array of
VkMacOSSurfaceCreateInfoMVK structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
FLAGS
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
PVIEW
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkMacOSSurfaceCreateInfoMVK(java.nio.ByteBuffer container)
Creates a
VkMacOSSurfaceCreateInfoMVK instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkMacOSSurfaceCreateInfoMVK |
calloc()
Returns a new
VkMacOSSurfaceCreateInfoMVK instance allocated with memCalloc. |
static VkMacOSSurfaceCreateInfoMVK.Buffer |
calloc(int capacity)
Returns a new
VkMacOSSurfaceCreateInfoMVK.Buffer instance allocated with memCalloc. |
static VkMacOSSurfaceCreateInfoMVK |
callocStack()
Returns a new
VkMacOSSurfaceCreateInfoMVK instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkMacOSSurfaceCreateInfoMVK.Buffer |
callocStack(int capacity)
Returns a new
VkMacOSSurfaceCreateInfoMVK.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkMacOSSurfaceCreateInfoMVK.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkMacOSSurfaceCreateInfoMVK.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkMacOSSurfaceCreateInfoMVK |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkMacOSSurfaceCreateInfoMVK instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkMacOSSurfaceCreateInfoMVK |
create()
Returns a new
VkMacOSSurfaceCreateInfoMVK instance allocated with BufferUtils. |
static VkMacOSSurfaceCreateInfoMVK.Buffer |
create(int capacity)
Returns a new
VkMacOSSurfaceCreateInfoMVK.Buffer instance allocated with BufferUtils. |
static VkMacOSSurfaceCreateInfoMVK |
create(long address)
Returns a new
VkMacOSSurfaceCreateInfoMVK instance for the specified memory address. |
static VkMacOSSurfaceCreateInfoMVK.Buffer |
create(long address,
int capacity)
Create a
VkMacOSSurfaceCreateInfoMVK.Buffer instance at the specified memory. |
static VkMacOSSurfaceCreateInfoMVK |
createSafe(long address)
|
static VkMacOSSurfaceCreateInfoMVK.Buffer |
createSafe(long address,
int capacity)
|
int |
flags()
Returns the value of the
flags field. |
VkMacOSSurfaceCreateInfoMVK |
flags(int value)
Sets the specified value to the
flags field. |
static VkMacOSSurfaceCreateInfoMVK |
malloc()
Returns a new
VkMacOSSurfaceCreateInfoMVK instance allocated with memAlloc. |
static VkMacOSSurfaceCreateInfoMVK.Buffer |
malloc(int capacity)
Returns a new
VkMacOSSurfaceCreateInfoMVK.Buffer instance allocated with memAlloc. |
static VkMacOSSurfaceCreateInfoMVK |
mallocStack()
Returns a new
VkMacOSSurfaceCreateInfoMVK instance allocated on the thread-local MemoryStack. |
static VkMacOSSurfaceCreateInfoMVK.Buffer |
mallocStack(int capacity)
Returns a new
VkMacOSSurfaceCreateInfoMVK.Buffer instance allocated on the thread-local MemoryStack. |
static VkMacOSSurfaceCreateInfoMVK.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkMacOSSurfaceCreateInfoMVK.Buffer instance allocated on the specified MemoryStack. |
static VkMacOSSurfaceCreateInfoMVK |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkMacOSSurfaceCreateInfoMVK 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 long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static long |
npView(long struct)
Unsafe version of
pView(). |
static void |
npView(long struct,
long value)
Unsafe version of
pView. |
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. |
VkMacOSSurfaceCreateInfoMVK |
pNext(long value)
Sets the specified value to the
pNext field. |
long |
pView()
Returns the value of the
pView field. |
VkMacOSSurfaceCreateInfoMVK |
pView(long value)
Sets the specified value to the
pView field. |
VkMacOSSurfaceCreateInfoMVK |
set(int sType,
long pNext,
int flags,
long pView)
Initializes this struct with the specified values.
|
VkMacOSSurfaceCreateInfoMVK |
set(VkMacOSSurfaceCreateInfoMVK src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkMacOSSurfaceCreateInfoMVK |
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 PVIEW
public VkMacOSSurfaceCreateInfoMVK(java.nio.ByteBuffer container)
VkMacOSSurfaceCreateInfoMVK 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 long pView()
pView field.public VkMacOSSurfaceCreateInfoMVK sType(int value)
sType field.public VkMacOSSurfaceCreateInfoMVK pNext(long value)
pNext field.public VkMacOSSurfaceCreateInfoMVK flags(int value)
flags field.public VkMacOSSurfaceCreateInfoMVK pView(long value)
pView field.public VkMacOSSurfaceCreateInfoMVK set(int sType, long pNext, int flags, long pView)
public VkMacOSSurfaceCreateInfoMVK set(VkMacOSSurfaceCreateInfoMVK src)
src - the source structpublic static VkMacOSSurfaceCreateInfoMVK malloc()
VkMacOSSurfaceCreateInfoMVK instance allocated with memAlloc. The instance must be explicitly freed.public static VkMacOSSurfaceCreateInfoMVK calloc()
VkMacOSSurfaceCreateInfoMVK instance allocated with memCalloc. The instance must be explicitly freed.public static VkMacOSSurfaceCreateInfoMVK create()
VkMacOSSurfaceCreateInfoMVK instance allocated with BufferUtils.public static VkMacOSSurfaceCreateInfoMVK create(long address)
VkMacOSSurfaceCreateInfoMVK instance for the specified memory address.@Nullable public static VkMacOSSurfaceCreateInfoMVK createSafe(long address)
public static VkMacOSSurfaceCreateInfoMVK.Buffer malloc(int capacity)
VkMacOSSurfaceCreateInfoMVK.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkMacOSSurfaceCreateInfoMVK.Buffer calloc(int capacity)
VkMacOSSurfaceCreateInfoMVK.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkMacOSSurfaceCreateInfoMVK.Buffer create(int capacity)
VkMacOSSurfaceCreateInfoMVK.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkMacOSSurfaceCreateInfoMVK.Buffer create(long address, int capacity)
VkMacOSSurfaceCreateInfoMVK.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkMacOSSurfaceCreateInfoMVK.Buffer createSafe(long address, int capacity)
public static VkMacOSSurfaceCreateInfoMVK mallocStack()
VkMacOSSurfaceCreateInfoMVK instance allocated on the thread-local MemoryStack.public static VkMacOSSurfaceCreateInfoMVK callocStack()
VkMacOSSurfaceCreateInfoMVK instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkMacOSSurfaceCreateInfoMVK mallocStack(org.lwjgl.system.MemoryStack stack)
VkMacOSSurfaceCreateInfoMVK instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkMacOSSurfaceCreateInfoMVK callocStack(org.lwjgl.system.MemoryStack stack)
VkMacOSSurfaceCreateInfoMVK instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkMacOSSurfaceCreateInfoMVK.Buffer mallocStack(int capacity)
VkMacOSSurfaceCreateInfoMVK.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkMacOSSurfaceCreateInfoMVK.Buffer callocStack(int capacity)
VkMacOSSurfaceCreateInfoMVK.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkMacOSSurfaceCreateInfoMVK.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkMacOSSurfaceCreateInfoMVK.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkMacOSSurfaceCreateInfoMVK.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkMacOSSurfaceCreateInfoMVK.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 long npView(long struct)
pView().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 npView(long struct,
long value)
pView.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.