public class VkSurfaceFormatKHR
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
format – a VkFormat that is compatible with the specified surface.colorSpace – a presentation VkColorSpaceKHR that is compatible with the surface.
struct VkSurfaceFormatKHR {
VkFormat format;
VkColorSpaceKHR colorSpace;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkSurfaceFormatKHR.Buffer
An array of
VkSurfaceFormatKHR structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
COLORSPACE
The struct member offsets.
|
static int |
FORMAT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
VkSurfaceFormatKHR(java.nio.ByteBuffer container)
Creates a
VkSurfaceFormatKHR instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkSurfaceFormatKHR |
calloc()
Returns a new
VkSurfaceFormatKHR instance allocated with memCalloc. |
static VkSurfaceFormatKHR.Buffer |
calloc(int capacity)
Returns a new
VkSurfaceFormatKHR.Buffer instance allocated with memCalloc. |
static VkSurfaceFormatKHR |
callocStack()
Returns a new
VkSurfaceFormatKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkSurfaceFormatKHR.Buffer |
callocStack(int capacity)
Returns a new
VkSurfaceFormatKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkSurfaceFormatKHR.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkSurfaceFormatKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkSurfaceFormatKHR |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkSurfaceFormatKHR instance allocated on the specified MemoryStack and initializes all its bits to zero. |
int |
colorSpace()
Returns the value of the
colorSpace field. |
static VkSurfaceFormatKHR |
create()
Returns a new
VkSurfaceFormatKHR instance allocated with BufferUtils. |
static VkSurfaceFormatKHR.Buffer |
create(int capacity)
Returns a new
VkSurfaceFormatKHR.Buffer instance allocated with BufferUtils. |
static VkSurfaceFormatKHR |
create(long address)
Returns a new
VkSurfaceFormatKHR instance for the specified memory address. |
static VkSurfaceFormatKHR.Buffer |
create(long address,
int capacity)
Create a
VkSurfaceFormatKHR.Buffer instance at the specified memory. |
static VkSurfaceFormatKHR |
createSafe(long address)
|
static VkSurfaceFormatKHR.Buffer |
createSafe(long address,
int capacity)
|
int |
format()
Returns the value of the
format field. |
static VkSurfaceFormatKHR |
malloc()
Returns a new
VkSurfaceFormatKHR instance allocated with memAlloc. |
static VkSurfaceFormatKHR.Buffer |
malloc(int capacity)
Returns a new
VkSurfaceFormatKHR.Buffer instance allocated with memAlloc. |
static VkSurfaceFormatKHR |
mallocStack()
Returns a new
VkSurfaceFormatKHR instance allocated on the thread-local MemoryStack. |
static VkSurfaceFormatKHR.Buffer |
mallocStack(int capacity)
Returns a new
VkSurfaceFormatKHR.Buffer instance allocated on the thread-local MemoryStack. |
static VkSurfaceFormatKHR.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkSurfaceFormatKHR.Buffer instance allocated on the specified MemoryStack. |
static VkSurfaceFormatKHR |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkSurfaceFormatKHR instance allocated on the specified MemoryStack. |
static int |
ncolorSpace(long struct)
Unsafe version of
colorSpace(). |
static int |
nformat(long struct)
Unsafe version of
format(). |
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int FORMAT
public static final int COLORSPACE
public VkSurfaceFormatKHR(java.nio.ByteBuffer container)
VkSurfaceFormatKHR 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 format()
format field.public int colorSpace()
colorSpace field.public static VkSurfaceFormatKHR malloc()
VkSurfaceFormatKHR instance allocated with memAlloc. The instance must be explicitly freed.public static VkSurfaceFormatKHR calloc()
VkSurfaceFormatKHR instance allocated with memCalloc. The instance must be explicitly freed.public static VkSurfaceFormatKHR create()
VkSurfaceFormatKHR instance allocated with BufferUtils.public static VkSurfaceFormatKHR create(long address)
VkSurfaceFormatKHR instance for the specified memory address.@Nullable public static VkSurfaceFormatKHR createSafe(long address)
public static VkSurfaceFormatKHR.Buffer malloc(int capacity)
VkSurfaceFormatKHR.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkSurfaceFormatKHR.Buffer calloc(int capacity)
VkSurfaceFormatKHR.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkSurfaceFormatKHR.Buffer create(int capacity)
VkSurfaceFormatKHR.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkSurfaceFormatKHR.Buffer create(long address, int capacity)
VkSurfaceFormatKHR.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkSurfaceFormatKHR.Buffer createSafe(long address, int capacity)
public static VkSurfaceFormatKHR mallocStack()
VkSurfaceFormatKHR instance allocated on the thread-local MemoryStack.public static VkSurfaceFormatKHR callocStack()
VkSurfaceFormatKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkSurfaceFormatKHR mallocStack(org.lwjgl.system.MemoryStack stack)
VkSurfaceFormatKHR instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkSurfaceFormatKHR callocStack(org.lwjgl.system.MemoryStack stack)
VkSurfaceFormatKHR instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkSurfaceFormatKHR.Buffer mallocStack(int capacity)
VkSurfaceFormatKHR.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkSurfaceFormatKHR.Buffer callocStack(int capacity)
VkSurfaceFormatKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkSurfaceFormatKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkSurfaceFormatKHR.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkSurfaceFormatKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkSurfaceFormatKHR.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 nformat(long struct)
format().public static int ncolorSpace(long struct)
colorSpace().Copyright LWJGL. All Rights Reserved. License terms.