struct bgfx_attachment_t {
bgfx_access_t access;
bgfx_texture_handle_t handle;
uint16_t mip;
uint16_t layer;
uint16_t numLayers;
uint8_t resolve;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | BGFXAttachment.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ACCESS
The struct member offsets. |
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | HANDLE
The struct member offsets. |
| public static final int | LAYER
The struct member offsets. |
| public static final int | MIP
The struct member offsets. |
| public static final int | NUMLAYERS
The struct member offsets. |
| public static final int | RESOLVE
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | BGFXAttachment(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public BGFXAttachment | |
| public static BGFXAttachment | |
| public static BGFXAttachment. | calloc(int
the buffer capacity capacity)Returns a new |
| public static BGFXAttachment | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static BGFXAttachment. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static BGFXAttachment | |
| public static BGFXAttachment | |
| public static BGFXAttachment. | |
| public static BGFXAttachment. | |
| protected BGFXAttachment | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static BGFXAttachment | |
| public static BGFXAttachment | |
| public static BGFXAttachment. | create(int
the buffer capacity capacity)Returns a new |
| public static BGFXAttachment. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static BGFXAttachment | |
| public static BGFXAttachment. | |
| public short | |
| public BGFXAttachment | |
| public short | |
| public BGFXAttachment | |
| public static BGFXAttachment | |
| public static BGFXAttachment. | malloc(int
the buffer capacity capacity)Returns a new |
| public static BGFXAttachment | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static BGFXAttachment. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static BGFXAttachment | |
| public static BGFXAttachment | |
| public static BGFXAttachment. | |
| public static BGFXAttachment. | |
| public short | |
| public BGFXAttachment | |
| public static int | |
| public static void | |
| public static short | |
| public static void | |
| public static short | |
| public static void | |
| public static short | |
| public static void | |
| public static short | |
| public static void | |
| public static byte | |
| public static void | |
| public short | |
| public BGFXAttachment | |
| public byte | |
| public BGFXAttachment | |
| public BGFXAttachment | set(int access, short handle, short mip, short layer, short numLayers, byte resolve)
Initializes this struct with the specified values. |
| public BGFXAttachment | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int |
| ACCESS | back to summary |
|---|---|
| public static final int ACCESS The struct member offsets. | |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| HANDLE | back to summary |
|---|---|
| public static final int HANDLE The struct member offsets. | |
| LAYER | back to summary |
|---|---|
| public static final int LAYER The struct member offsets. | |
| MIP | back to summary |
|---|---|
| public static final int MIP The struct member offsets. | |
| NUMLAYERS | back to summary |
|---|---|
| public static final int NUMLAYERS The struct member offsets. | |
| RESOLVE | back to summary |
|---|---|
| public static final int RESOLVE The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| BGFXAttachment | back to summary |
|---|---|
| protected BGFXAttachment(long address, ByteBuffer container) | |
| BGFXAttachment | back to summary |
|---|---|
| public BGFXAttachment(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| access | back to summary |
|---|---|
| public int access() attachment access
| |
| access | back to summary |
|---|---|
| public BGFXAttachment access(int value) Sets the specified value to the | |
| calloc | back to summary |
|---|---|
| public static BGFXAttachment calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static BGFXAttachment. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static BGFXAttachment calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static BGFXAttachment. Returns a new
| |
| callocStack | back to summary |
|---|---|
| public static BGFXAttachment callocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static BGFXAttachment callocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static BGFXAttachment. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static BGFXAttachment. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| create | back to summary |
|---|---|
| protected BGFXAttachment create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static BGFXAttachment create() Returns a new | |
| create | back to summary |
|---|---|
| public static BGFXAttachment create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static BGFXAttachment. Returns a new
| |
| create | back to summary |
|---|---|
| public static BGFXAttachment. Create a
| |
| createSafe | back to summary |
|---|---|
| public static BGFXAttachment createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static BGFXAttachment. Like
| |
| handle | back to summary |
|---|---|
| public short handle() render target texture handle
| |
| handle | back to summary |
|---|---|
| public BGFXAttachment handle(short value) Sets the specified value to the | |
| layer | back to summary |
|---|---|
| public short layer() cubemap side or depth layer/slice to use
| |
| layer | back to summary |
|---|---|
| public BGFXAttachment layer(short value) Sets the specified value to the | |
| malloc | back to summary |
|---|---|
| public static BGFXAttachment malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static BGFXAttachment. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static BGFXAttachment malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static BGFXAttachment. Returns a new
| |
| mallocStack | back to summary |
|---|---|
| public static BGFXAttachment mallocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static BGFXAttachment mallocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static BGFXAttachment. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static BGFXAttachment. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mip | back to summary |
|---|---|
| public short mip() mip level
| |
| mip | back to summary |
|---|---|
| public BGFXAttachment mip(short value) Sets the specified value to the | |
| naccess | back to summary |
|---|---|
| public static int naccess(long struct) Unsafe version of | |
| naccess | back to summary |
|---|---|
| public static void naccess(long struct, int value) Unsafe version of | |
| nhandle | back to summary |
|---|---|
| public static short nhandle(long struct) Unsafe version of | |
| nhandle | back to summary |
|---|---|
| public static void nhandle(long struct, short value) Unsafe version of | |
| nlayer | back to summary |
|---|---|
| public static short nlayer(long struct) Unsafe version of | |
| nlayer | back to summary |
|---|---|
| public static void nlayer(long struct, short value) Unsafe version of | |
| nmip | back to summary |
|---|---|
| public static short nmip(long struct) Unsafe version of | |
| nmip | back to summary |
|---|---|
| public static void nmip(long struct, short value) Unsafe version of | |
| nnumLayers | back to summary |
|---|---|
| public static short nnumLayers(long struct) Unsafe version of | |
| nnumLayers | back to summary |
|---|---|
| public static void nnumLayers(long struct, short value) Unsafe version of | |
| nresolve | back to summary |
|---|---|
| public static byte nresolve(long struct) Unsafe version of | |
| nresolve | back to summary |
|---|---|
| public static void nresolve(long struct, byte value) Unsafe version of | |
| numLayers | back to summary |
|---|---|
| public short numLayers() number of texture layer/slice(s) in array to use
| |
| numLayers | back to summary |
|---|---|
| public BGFXAttachment numLayers(short value) Sets the specified value to the | |
| resolve | back to summary | ||
|---|---|---|---|
| public byte resolve() resolve flags. One of:
| |||
| resolve | back to summary |
|---|---|
| public BGFXAttachment resolve(byte value) Sets the specified value to the | |
| set | back to summary |
|---|---|
| public BGFXAttachment set(int access, short handle, short mip, short layer, short numLayers, byte resolve) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public BGFXAttachment set(BGFXAttachment src) Copies the specified struct data to this struct.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
BGFXAttachment structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final BGFXAttachment |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public BGFXAttachment. | |
| protected BGFXAttachment | |
| public short | |
| public BGFXAttachment. | |
| public short | |
| public BGFXAttachment. | |
| public short | |
| public BGFXAttachment. | |
| public short | |
| public BGFXAttachment. | |
| public byte | |
| public BGFXAttachment. | |
| protected BGFXAttachment. |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final BGFXAttachment ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
by The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| access | back to summary |
|---|---|
public int access()
| |
| access | back to summary |
|---|---|
| public BGFXAttachment. Sets the specified value to the | |
| getElementFactory | back to summary |
|---|---|
| protected BGFXAttachment getElementFactory() Implements abstract org.
| |
| handle | back to summary |
|---|---|
public short handle()
| |
| handle | back to summary |
|---|---|
| public BGFXAttachment. Sets the specified value to the | |
| layer | back to summary |
|---|---|
public short layer()
| |
| layer | back to summary |
|---|---|
| public BGFXAttachment. Sets the specified value to the | |
| mip | back to summary |
|---|---|
public short mip()
| |
| mip | back to summary |
|---|---|
| public BGFXAttachment. Sets the specified value to the | |
| numLayers | back to summary |
|---|---|
public short numLayers()
| |
| numLayers | back to summary |
|---|---|
| public BGFXAttachment. Sets the specified value to the | |
| resolve | back to summary |
|---|---|
public byte resolve()
| |
| resolve | back to summary |
|---|---|
| public BGFXAttachment. Sets the specified value to the | |
| self | back to summary |
|---|---|
| protected BGFXAttachment. Implements abstract org.
| |