public class BGFXUniformInfo
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
name[256] – uniform nametype – uniform typenum – number of elements in array
struct bgfx_uniform_info_t {
char name[256];
bgfx_uniform_type_t type;
uint16_t num;
}| Modifier and Type | Class and Description |
|---|---|
static class |
BGFXUniformInfo.Buffer
An array of
BGFXUniformInfo structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
NAME
The struct member offsets.
|
static int |
NUM
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
TYPE
The struct member offsets.
|
| Constructor and Description |
|---|
BGFXUniformInfo(java.nio.ByteBuffer container)
Creates a
BGFXUniformInfo instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static BGFXUniformInfo |
calloc()
Returns a new
BGFXUniformInfo instance allocated with memCalloc. |
static BGFXUniformInfo.Buffer |
calloc(int capacity)
Returns a new
BGFXUniformInfo.Buffer instance allocated with memCalloc. |
static BGFXUniformInfo |
callocStack()
Returns a new
BGFXUniformInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static BGFXUniformInfo.Buffer |
callocStack(int capacity)
Returns a new
BGFXUniformInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static BGFXUniformInfo.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
BGFXUniformInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static BGFXUniformInfo |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
BGFXUniformInfo instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static BGFXUniformInfo |
create()
Returns a new
BGFXUniformInfo instance allocated with BufferUtils. |
static BGFXUniformInfo.Buffer |
create(int capacity)
Returns a new
BGFXUniformInfo.Buffer instance allocated with BufferUtils. |
static BGFXUniformInfo |
create(long address)
Returns a new
BGFXUniformInfo instance for the specified memory address. |
static BGFXUniformInfo.Buffer |
create(long address,
int capacity)
Create a
BGFXUniformInfo.Buffer instance at the specified memory. |
static BGFXUniformInfo |
createSafe(long address)
|
static BGFXUniformInfo.Buffer |
createSafe(long address,
int capacity)
|
static BGFXUniformInfo |
malloc()
Returns a new
BGFXUniformInfo instance allocated with memAlloc. |
static BGFXUniformInfo.Buffer |
malloc(int capacity)
Returns a new
BGFXUniformInfo.Buffer instance allocated with memAlloc. |
static BGFXUniformInfo |
mallocStack()
Returns a new
BGFXUniformInfo instance allocated on the thread-local MemoryStack. |
static BGFXUniformInfo.Buffer |
mallocStack(int capacity)
Returns a new
BGFXUniformInfo.Buffer instance allocated on the thread-local MemoryStack. |
static BGFXUniformInfo.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
BGFXUniformInfo.Buffer instance allocated on the specified MemoryStack. |
static BGFXUniformInfo |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
BGFXUniformInfo instance allocated on the specified MemoryStack. |
java.nio.ByteBuffer |
name()
Returns a
ByteBuffer view of the name field. |
BGFXUniformInfo |
name(java.nio.ByteBuffer value)
Copies the specified encoded string to the
name field. |
java.lang.String |
nameString()
Decodes the null-terminated string stored in the
name field. |
static java.nio.ByteBuffer |
nname(long struct)
Unsafe version of
name(). |
static void |
nname(long struct,
java.nio.ByteBuffer value)
Unsafe version of
name. |
static java.lang.String |
nnameString(long struct)
Unsafe version of
nameString(). |
static short |
nnum(long struct)
Unsafe version of
num(). |
static void |
nnum(long struct,
short value)
Unsafe version of
num. |
static int |
ntype(long struct)
Unsafe version of
type(). |
static void |
ntype(long struct,
int value)
Unsafe version of
type. |
short |
num()
Returns the value of the
num field. |
BGFXUniformInfo |
num(short value)
Sets the specified value to the
num field. |
BGFXUniformInfo |
set(BGFXUniformInfo src)
Copies the specified struct data to this struct.
|
BGFXUniformInfo |
set(java.nio.ByteBuffer name,
int type,
short num)
Initializes this struct with the specified values.
|
int |
sizeof() |
int |
type()
Returns the value of the
type field. |
BGFXUniformInfo |
type(int value)
Sets the specified value to the
type field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int NAME
public static final int TYPE
public static final int NUM
public BGFXUniformInfo(java.nio.ByteBuffer container)
BGFXUniformInfo 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 java.nio.ByteBuffer name()
ByteBuffer view of the name field.public java.lang.String nameString()
name field.public int type()
type field.public short num()
num field.public BGFXUniformInfo name(java.nio.ByteBuffer value)
name field.public BGFXUniformInfo type(int value)
type field.public BGFXUniformInfo num(short value)
num field.public BGFXUniformInfo set(java.nio.ByteBuffer name, int type, short num)
public BGFXUniformInfo set(BGFXUniformInfo src)
src - the source structpublic static BGFXUniformInfo malloc()
BGFXUniformInfo instance allocated with memAlloc. The instance must be explicitly freed.public static BGFXUniformInfo calloc()
BGFXUniformInfo instance allocated with memCalloc. The instance must be explicitly freed.public static BGFXUniformInfo create()
BGFXUniformInfo instance allocated with BufferUtils.public static BGFXUniformInfo create(long address)
BGFXUniformInfo instance for the specified memory address.@Nullable public static BGFXUniformInfo createSafe(long address)
public static BGFXUniformInfo.Buffer malloc(int capacity)
BGFXUniformInfo.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static BGFXUniformInfo.Buffer calloc(int capacity)
BGFXUniformInfo.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static BGFXUniformInfo.Buffer create(int capacity)
BGFXUniformInfo.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static BGFXUniformInfo.Buffer create(long address, int capacity)
BGFXUniformInfo.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static BGFXUniformInfo.Buffer createSafe(long address, int capacity)
public static BGFXUniformInfo mallocStack()
BGFXUniformInfo instance allocated on the thread-local MemoryStack.public static BGFXUniformInfo callocStack()
BGFXUniformInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static BGFXUniformInfo mallocStack(org.lwjgl.system.MemoryStack stack)
BGFXUniformInfo instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static BGFXUniformInfo callocStack(org.lwjgl.system.MemoryStack stack)
BGFXUniformInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static BGFXUniformInfo.Buffer mallocStack(int capacity)
BGFXUniformInfo.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static BGFXUniformInfo.Buffer callocStack(int capacity)
BGFXUniformInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static BGFXUniformInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
BGFXUniformInfo.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static BGFXUniformInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
BGFXUniformInfo.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 java.nio.ByteBuffer nname(long struct)
name().public static java.lang.String nnameString(long struct)
nameString().public static int ntype(long struct)
type().public static short nnum(long struct)
num().public static void nname(long struct,
java.nio.ByteBuffer value)
name.public static void ntype(long struct,
int value)
type.public static void nnum(long struct,
short value)
num.Copyright LWJGL. All Rights Reserved. License terms.