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