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