public class BGFXAttachment
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
access – attachment accesshandle – render target texture handlemip – mip levellayer – cubemap side or depth layer/sliceresolve – resolve flags. One of:RESOLVE_NONE | RESOLVE_AUTO_GEN_MIPS |
struct bgfx_attachment_t {
bgfx_access_t access;
bgfx_texture_handle_t handle;
uint16_t mip;
uint16_t layer;
uint8_t resolve;
}| Modifier and Type | Class and Description |
|---|---|
static class |
BGFXAttachment.Buffer
An array of
BGFXAttachment structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ACCESS
The struct member offsets.
|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
HANDLE
The struct member offsets.
|
static int |
LAYER
The struct member offsets.
|
static int |
MIP
The struct member offsets.
|
static int |
RESOLVE
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
BGFXAttachment(java.nio.ByteBuffer container)
Creates a
BGFXAttachment instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
int |
access()
Returns the value of the
access field. |
BGFXAttachment |
access(int value)
Sets the specified value to the
access field. |
static BGFXAttachment |
calloc()
Returns a new
BGFXAttachment instance allocated with memCalloc. |
static BGFXAttachment.Buffer |
calloc(int capacity)
Returns a new
BGFXAttachment.Buffer instance allocated with memCalloc. |
static BGFXAttachment |
callocStack()
Returns a new
BGFXAttachment instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static BGFXAttachment.Buffer |
callocStack(int capacity)
Returns a new
BGFXAttachment.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static BGFXAttachment.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
BGFXAttachment.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static BGFXAttachment |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
BGFXAttachment instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static BGFXAttachment |
create()
Returns a new
BGFXAttachment instance allocated with BufferUtils. |
static BGFXAttachment.Buffer |
create(int capacity)
Returns a new
BGFXAttachment.Buffer instance allocated with BufferUtils. |
static BGFXAttachment |
create(long address)
Returns a new
BGFXAttachment instance for the specified memory address. |
static BGFXAttachment.Buffer |
create(long address,
int capacity)
Create a
BGFXAttachment.Buffer instance at the specified memory. |
static BGFXAttachment |
createSafe(long address)
|
static BGFXAttachment.Buffer |
createSafe(long address,
int capacity)
|
short |
handle()
Returns the value of the
handle field. |
BGFXAttachment |
handle(short value)
Sets the specified value to the
handle field. |
short |
layer()
Returns the value of the
layer field. |
BGFXAttachment |
layer(short value)
Sets the specified value to the
layer field. |
static BGFXAttachment |
malloc()
Returns a new
BGFXAttachment instance allocated with memAlloc. |
static BGFXAttachment.Buffer |
malloc(int capacity)
Returns a new
BGFXAttachment.Buffer instance allocated with memAlloc. |
static BGFXAttachment |
mallocStack()
Returns a new
BGFXAttachment instance allocated on the thread-local MemoryStack. |
static BGFXAttachment.Buffer |
mallocStack(int capacity)
Returns a new
BGFXAttachment.Buffer instance allocated on the thread-local MemoryStack. |
static BGFXAttachment.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
BGFXAttachment.Buffer instance allocated on the specified MemoryStack. |
static BGFXAttachment |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
BGFXAttachment instance allocated on the specified MemoryStack. |
short |
mip()
Returns the value of the
mip field. |
BGFXAttachment |
mip(short value)
Sets the specified value to the
mip field. |
static int |
naccess(long struct)
Unsafe version of
access(). |
static void |
naccess(long struct,
int value)
Unsafe version of
access. |
static short |
nhandle(long struct)
Unsafe version of
handle(). |
static void |
nhandle(long struct,
short value)
Unsafe version of
handle. |
static short |
nlayer(long struct)
Unsafe version of
layer(). |
static void |
nlayer(long struct,
short value)
Unsafe version of
layer. |
static short |
nmip(long struct)
Unsafe version of
mip(). |
static void |
nmip(long struct,
short value)
Unsafe version of
mip. |
static byte |
nresolve(long struct)
Unsafe version of
resolve(). |
static void |
nresolve(long struct,
byte value)
Unsafe version of
resolve. |
byte |
resolve()
Returns the value of the
resolve field. |
BGFXAttachment |
resolve(byte value)
Sets the specified value to the
resolve field. |
BGFXAttachment |
set(BGFXAttachment src)
Copies the specified struct data to this struct.
|
BGFXAttachment |
set(int access,
short handle,
short mip,
short layer,
byte resolve)
Initializes this struct with the specified values.
|
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int ACCESS
public static final int HANDLE
public static final int MIP
public static final int LAYER
public static final int RESOLVE
public BGFXAttachment(java.nio.ByteBuffer container)
BGFXAttachment 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 access()
access field.public short handle()
handle field.public short mip()
mip field.public short layer()
layer field.public byte resolve()
resolve field.public BGFXAttachment access(int value)
access field.public BGFXAttachment handle(short value)
handle field.public BGFXAttachment mip(short value)
mip field.public BGFXAttachment layer(short value)
layer field.public BGFXAttachment resolve(byte value)
resolve field.public BGFXAttachment set(int access, short handle, short mip, short layer, byte resolve)
public BGFXAttachment set(BGFXAttachment src)
src - the source structpublic static BGFXAttachment malloc()
BGFXAttachment instance allocated with memAlloc. The instance must be explicitly freed.public static BGFXAttachment calloc()
BGFXAttachment instance allocated with memCalloc. The instance must be explicitly freed.public static BGFXAttachment create()
BGFXAttachment instance allocated with BufferUtils.public static BGFXAttachment create(long address)
BGFXAttachment instance for the specified memory address.@Nullable public static BGFXAttachment createSafe(long address)
public static BGFXAttachment.Buffer malloc(int capacity)
BGFXAttachment.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static BGFXAttachment.Buffer calloc(int capacity)
BGFXAttachment.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static BGFXAttachment.Buffer create(int capacity)
BGFXAttachment.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static BGFXAttachment.Buffer create(long address, int capacity)
BGFXAttachment.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static BGFXAttachment.Buffer createSafe(long address, int capacity)
public static BGFXAttachment mallocStack()
BGFXAttachment instance allocated on the thread-local MemoryStack.public static BGFXAttachment callocStack()
BGFXAttachment instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static BGFXAttachment mallocStack(org.lwjgl.system.MemoryStack stack)
BGFXAttachment instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static BGFXAttachment callocStack(org.lwjgl.system.MemoryStack stack)
BGFXAttachment instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static BGFXAttachment.Buffer mallocStack(int capacity)
BGFXAttachment.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static BGFXAttachment.Buffer callocStack(int capacity)
BGFXAttachment.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static BGFXAttachment.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
BGFXAttachment.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static BGFXAttachment.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
BGFXAttachment.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 naccess(long struct)
access().public static short nhandle(long struct)
handle().public static short nmip(long struct)
mip().public static short nlayer(long struct)
layer().public static byte nresolve(long struct)
resolve().public static void naccess(long struct,
int value)
access.public static void nhandle(long struct,
short value)
handle.public static void nmip(long struct,
short value)
mip.public static void nlayer(long struct,
short value)
layer.public static void nresolve(long struct,
byte value)
resolve.Copyright LWJGL. All Rights Reserved. License terms.