public class VkExtent2D
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
width – the width of the extent.height – the height of the extent.
struct VkExtent2D {
uint32_t width;
uint32_t height;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkExtent2D.Buffer
An array of
VkExtent2D structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
HEIGHT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
WIDTH
The struct member offsets.
|
| Constructor and Description |
|---|
VkExtent2D(java.nio.ByteBuffer container)
Creates a
VkExtent2D instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkExtent2D |
calloc()
Returns a new
VkExtent2D instance allocated with memCalloc. |
static VkExtent2D.Buffer |
calloc(int capacity)
Returns a new
VkExtent2D.Buffer instance allocated with memCalloc. |
static VkExtent2D |
callocStack()
Returns a new
VkExtent2D instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkExtent2D.Buffer |
callocStack(int capacity)
Returns a new
VkExtent2D.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkExtent2D.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkExtent2D.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkExtent2D |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkExtent2D instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkExtent2D |
create()
Returns a new
VkExtent2D instance allocated with BufferUtils. |
static VkExtent2D.Buffer |
create(int capacity)
Returns a new
VkExtent2D.Buffer instance allocated with BufferUtils. |
static VkExtent2D |
create(long address)
Returns a new
VkExtent2D instance for the specified memory address. |
static VkExtent2D.Buffer |
create(long address,
int capacity)
Create a
VkExtent2D.Buffer instance at the specified memory. |
static VkExtent2D |
createSafe(long address)
|
static VkExtent2D.Buffer |
createSafe(long address,
int capacity)
|
int |
height()
Returns the value of the
height field. |
VkExtent2D |
height(int value)
Sets the specified value to the
height field. |
static VkExtent2D |
malloc()
Returns a new
VkExtent2D instance allocated with memAlloc. |
static VkExtent2D.Buffer |
malloc(int capacity)
Returns a new
VkExtent2D.Buffer instance allocated with memAlloc. |
static VkExtent2D |
mallocStack()
Returns a new
VkExtent2D instance allocated on the thread-local MemoryStack. |
static VkExtent2D.Buffer |
mallocStack(int capacity)
Returns a new
VkExtent2D.Buffer instance allocated on the thread-local MemoryStack. |
static VkExtent2D.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkExtent2D.Buffer instance allocated on the specified MemoryStack. |
static VkExtent2D |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkExtent2D instance allocated on the specified MemoryStack. |
static int |
nheight(long struct)
Unsafe version of
height(). |
static void |
nheight(long struct,
int value)
Unsafe version of
height. |
static int |
nwidth(long struct)
Unsafe version of
width(). |
static void |
nwidth(long struct,
int value)
Unsafe version of
width. |
VkExtent2D |
set(int width,
int height)
Initializes this struct with the specified values.
|
VkExtent2D |
set(VkExtent2D src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
width()
Returns the value of the
width field. |
VkExtent2D |
width(int value)
Sets the specified value to the
width field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int WIDTH
public static final int HEIGHT
public VkExtent2D(java.nio.ByteBuffer container)
VkExtent2D 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 width()
width field.public int height()
height field.public VkExtent2D width(int value)
width field.public VkExtent2D height(int value)
height field.public VkExtent2D set(int width, int height)
public VkExtent2D set(VkExtent2D src)
src - the source structpublic static VkExtent2D malloc()
VkExtent2D instance allocated with memAlloc. The instance must be explicitly freed.public static VkExtent2D calloc()
VkExtent2D instance allocated with memCalloc. The instance must be explicitly freed.public static VkExtent2D create()
VkExtent2D instance allocated with BufferUtils.public static VkExtent2D create(long address)
VkExtent2D instance for the specified memory address.@Nullable public static VkExtent2D createSafe(long address)
public static VkExtent2D.Buffer malloc(int capacity)
VkExtent2D.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkExtent2D.Buffer calloc(int capacity)
VkExtent2D.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkExtent2D.Buffer create(int capacity)
VkExtent2D.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkExtent2D.Buffer create(long address, int capacity)
VkExtent2D.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkExtent2D.Buffer createSafe(long address, int capacity)
public static VkExtent2D mallocStack()
VkExtent2D instance allocated on the thread-local MemoryStack.public static VkExtent2D callocStack()
VkExtent2D instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkExtent2D mallocStack(org.lwjgl.system.MemoryStack stack)
VkExtent2D instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkExtent2D callocStack(org.lwjgl.system.MemoryStack stack)
VkExtent2D instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkExtent2D.Buffer mallocStack(int capacity)
VkExtent2D.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkExtent2D.Buffer callocStack(int capacity)
VkExtent2D.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkExtent2D.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkExtent2D.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkExtent2D.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkExtent2D.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 nwidth(long struct)
width().public static int nheight(long struct)
height().public static void nwidth(long struct,
int value)
width.public static void nheight(long struct,
int value)
height.Copyright LWJGL. All Rights Reserved. License terms.