public class SpvcHlslRootConstants
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
start and end denotes the range of the root constant in bytes. Both values need to be multiple of 4.
struct SpvcHlslRootConstants {
unsigned int start;
unsigned int end;
unsigned int binding;
unsigned int space;
}| Modifier and Type | Class and Description |
|---|---|
static class |
SpvcHlslRootConstants.Buffer
An array of
SpvcHlslRootConstants structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
BINDING
The struct member offsets.
|
static int |
END
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
SPACE
The struct member offsets.
|
static int |
START
The struct member offsets.
|
| Constructor and Description |
|---|
SpvcHlslRootConstants(java.nio.ByteBuffer container)
Creates a
SpvcHlslRootConstants instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
int |
binding()
Returns the value of the
binding field. |
SpvcHlslRootConstants |
binding(int value)
Sets the specified value to the
binding field. |
static SpvcHlslRootConstants |
calloc()
Returns a new
SpvcHlslRootConstants instance allocated with memCalloc. |
static SpvcHlslRootConstants.Buffer |
calloc(int capacity)
Returns a new
SpvcHlslRootConstants.Buffer instance allocated with memCalloc. |
static SpvcHlslRootConstants |
callocStack()
Returns a new
SpvcHlslRootConstants instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static SpvcHlslRootConstants.Buffer |
callocStack(int capacity)
Returns a new
SpvcHlslRootConstants.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static SpvcHlslRootConstants.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
SpvcHlslRootConstants.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static SpvcHlslRootConstants |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
SpvcHlslRootConstants instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static SpvcHlslRootConstants |
create()
Returns a new
SpvcHlslRootConstants instance allocated with BufferUtils. |
static SpvcHlslRootConstants.Buffer |
create(int capacity)
Returns a new
SpvcHlslRootConstants.Buffer instance allocated with BufferUtils. |
static SpvcHlslRootConstants |
create(long address)
Returns a new
SpvcHlslRootConstants instance for the specified memory address. |
static SpvcHlslRootConstants.Buffer |
create(long address,
int capacity)
Create a
SpvcHlslRootConstants.Buffer instance at the specified memory. |
static SpvcHlslRootConstants |
createSafe(long address)
|
static SpvcHlslRootConstants.Buffer |
createSafe(long address,
int capacity)
|
int |
end()
Returns the value of the
end field. |
SpvcHlslRootConstants |
end(int value)
Sets the specified value to the
end field. |
static SpvcHlslRootConstants |
malloc()
Returns a new
SpvcHlslRootConstants instance allocated with memAlloc. |
static SpvcHlslRootConstants.Buffer |
malloc(int capacity)
Returns a new
SpvcHlslRootConstants.Buffer instance allocated with memAlloc. |
static SpvcHlslRootConstants |
mallocStack()
Returns a new
SpvcHlslRootConstants instance allocated on the thread-local MemoryStack. |
static SpvcHlslRootConstants.Buffer |
mallocStack(int capacity)
Returns a new
SpvcHlslRootConstants.Buffer instance allocated on the thread-local MemoryStack. |
static SpvcHlslRootConstants.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
SpvcHlslRootConstants.Buffer instance allocated on the specified MemoryStack. |
static SpvcHlslRootConstants |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
SpvcHlslRootConstants instance allocated on the specified MemoryStack. |
static int |
nbinding(long struct)
Unsafe version of
binding(). |
static void |
nbinding(long struct,
int value)
Unsafe version of
binding. |
static int |
nend(long struct)
Unsafe version of
end(). |
static void |
nend(long struct,
int value)
Unsafe version of
end. |
static int |
nspace(long struct)
Unsafe version of
space(). |
static void |
nspace(long struct,
int value)
Unsafe version of
space. |
static int |
nstart(long struct)
Unsafe version of
start(). |
static void |
nstart(long struct,
int value)
Unsafe version of
start. |
SpvcHlslRootConstants |
set(int start,
int end,
int binding,
int space)
Initializes this struct with the specified values.
|
SpvcHlslRootConstants |
set(SpvcHlslRootConstants src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
space()
Returns the value of the
space field. |
SpvcHlslRootConstants |
space(int value)
Sets the specified value to the
space field. |
int |
start()
Returns the value of the
start field. |
SpvcHlslRootConstants |
start(int value)
Sets the specified value to the
start field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int START
public static final int END
public static final int BINDING
public static final int SPACE
public SpvcHlslRootConstants(java.nio.ByteBuffer container)
SpvcHlslRootConstants 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 start()
start field.public int end()
end field.public int binding()
binding field.public int space()
space field.public SpvcHlslRootConstants start(int value)
start field.public SpvcHlslRootConstants end(int value)
end field.public SpvcHlslRootConstants binding(int value)
binding field.public SpvcHlslRootConstants space(int value)
space field.public SpvcHlslRootConstants set(int start, int end, int binding, int space)
public SpvcHlslRootConstants set(SpvcHlslRootConstants src)
src - the source structpublic static SpvcHlslRootConstants malloc()
SpvcHlslRootConstants instance allocated with memAlloc. The instance must be explicitly freed.public static SpvcHlslRootConstants calloc()
SpvcHlslRootConstants instance allocated with memCalloc. The instance must be explicitly freed.public static SpvcHlslRootConstants create()
SpvcHlslRootConstants instance allocated with BufferUtils.public static SpvcHlslRootConstants create(long address)
SpvcHlslRootConstants instance for the specified memory address.@Nullable public static SpvcHlslRootConstants createSafe(long address)
public static SpvcHlslRootConstants.Buffer malloc(int capacity)
SpvcHlslRootConstants.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static SpvcHlslRootConstants.Buffer calloc(int capacity)
SpvcHlslRootConstants.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static SpvcHlslRootConstants.Buffer create(int capacity)
SpvcHlslRootConstants.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static SpvcHlslRootConstants.Buffer create(long address, int capacity)
SpvcHlslRootConstants.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static SpvcHlslRootConstants.Buffer createSafe(long address, int capacity)
public static SpvcHlslRootConstants mallocStack()
SpvcHlslRootConstants instance allocated on the thread-local MemoryStack.public static SpvcHlslRootConstants callocStack()
SpvcHlslRootConstants instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static SpvcHlslRootConstants mallocStack(org.lwjgl.system.MemoryStack stack)
SpvcHlslRootConstants instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static SpvcHlslRootConstants callocStack(org.lwjgl.system.MemoryStack stack)
SpvcHlslRootConstants instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static SpvcHlslRootConstants.Buffer mallocStack(int capacity)
SpvcHlslRootConstants.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static SpvcHlslRootConstants.Buffer callocStack(int capacity)
SpvcHlslRootConstants.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static SpvcHlslRootConstants.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
SpvcHlslRootConstants.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static SpvcHlslRootConstants.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
SpvcHlslRootConstants.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 nstart(long struct)
start().public static int nend(long struct)
end().public static int nbinding(long struct)
binding().public static int nspace(long struct)
space().public static void nstart(long struct,
int value)
start.public static void nend(long struct,
int value)
end.public static void nbinding(long struct,
int value)
binding.public static void nspace(long struct,
int value)
space.Copyright LWJGL. All Rights Reserved. License terms.