public class VkPushConstantRange
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
offset must be less than VkPhysicalDeviceLimits::maxPushConstantsSizeoffset must be a multiple of 4size must be greater than 0size must be a multiple of 4size must be less than or equal to VkPhysicalDeviceLimits::maxPushConstantsSize minus offsetstageFlags must be a valid combination of VkShaderStageFlagBits valuesstageFlags must not be 0stageFlags – a set of stage flags describing the shader stages that will access a range of push constants. If a particular stage is not included in the range, then accessing members of that range of push constants from the corresponding shader stage will return undefined values.offset – offset and size are the start offset and size, respectively, consumed by the range. Both offset and size are in units of bytes and must be a multiple of 4. The layout of the push constant variables is specified in the shader.size – see offset
struct VkPushConstantRange {
VkShaderStageFlags stageFlags;
uint32_t offset;
uint32_t size;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkPushConstantRange.Buffer
An array of
VkPushConstantRange structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
OFFSET
The struct member offsets.
|
static int |
SIZE
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STAGEFLAGS
The struct member offsets.
|
| Constructor and Description |
|---|
VkPushConstantRange(java.nio.ByteBuffer container)
Creates a
VkPushConstantRange instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkPushConstantRange |
calloc()
Returns a new
VkPushConstantRange instance allocated with memCalloc. |
static VkPushConstantRange.Buffer |
calloc(int capacity)
Returns a new
VkPushConstantRange.Buffer instance allocated with memCalloc. |
static VkPushConstantRange |
callocStack()
Returns a new
VkPushConstantRange instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPushConstantRange.Buffer |
callocStack(int capacity)
Returns a new
VkPushConstantRange.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPushConstantRange.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPushConstantRange.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPushConstantRange |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPushConstantRange instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPushConstantRange |
create()
Returns a new
VkPushConstantRange instance allocated with BufferUtils. |
static VkPushConstantRange.Buffer |
create(int capacity)
Returns a new
VkPushConstantRange.Buffer instance allocated with BufferUtils. |
static VkPushConstantRange |
create(long address)
Returns a new
VkPushConstantRange instance for the specified memory address. |
static VkPushConstantRange.Buffer |
create(long address,
int capacity)
Create a
VkPushConstantRange.Buffer instance at the specified memory. |
static VkPushConstantRange |
createSafe(long address)
|
static VkPushConstantRange.Buffer |
createSafe(long address,
int capacity)
|
static VkPushConstantRange |
malloc()
Returns a new
VkPushConstantRange instance allocated with memAlloc. |
static VkPushConstantRange.Buffer |
malloc(int capacity)
Returns a new
VkPushConstantRange.Buffer instance allocated with memAlloc. |
static VkPushConstantRange |
mallocStack()
Returns a new
VkPushConstantRange instance allocated on the thread-local MemoryStack. |
static VkPushConstantRange.Buffer |
mallocStack(int capacity)
Returns a new
VkPushConstantRange.Buffer instance allocated on the thread-local MemoryStack. |
static VkPushConstantRange.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPushConstantRange.Buffer instance allocated on the specified MemoryStack. |
static VkPushConstantRange |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPushConstantRange instance allocated on the specified MemoryStack. |
static int |
noffset(long struct)
Unsafe version of
offset(). |
static void |
noffset(long struct,
int value)
Unsafe version of
offset. |
static int |
nsize(long struct)
Unsafe version of
size(). |
static void |
nsize(long struct,
int value)
Unsafe version of
size. |
static int |
nstageFlags(long struct)
Unsafe version of
stageFlags(). |
static void |
nstageFlags(long struct,
int value)
Unsafe version of
stageFlags. |
int |
offset()
Returns the value of the
offset field. |
VkPushConstantRange |
offset(int value)
Sets the specified value to the
offset field. |
VkPushConstantRange |
set(int stageFlags,
int offset,
int size)
Initializes this struct with the specified values.
|
VkPushConstantRange |
set(VkPushConstantRange src)
Copies the specified struct data to this struct.
|
int |
size()
Returns the value of the
size field. |
VkPushConstantRange |
size(int value)
Sets the specified value to the
size field. |
int |
sizeof() |
int |
stageFlags()
Returns the value of the
stageFlags field. |
VkPushConstantRange |
stageFlags(int value)
Sets the specified value to the
stageFlags field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STAGEFLAGS
public static final int OFFSET
public static final int SIZE
public VkPushConstantRange(java.nio.ByteBuffer container)
VkPushConstantRange 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 stageFlags()
stageFlags field.public int offset()
offset field.public int size()
size field.public VkPushConstantRange stageFlags(int value)
stageFlags field.public VkPushConstantRange offset(int value)
offset field.public VkPushConstantRange size(int value)
size field.public VkPushConstantRange set(int stageFlags, int offset, int size)
public VkPushConstantRange set(VkPushConstantRange src)
src - the source structpublic static VkPushConstantRange malloc()
VkPushConstantRange instance allocated with memAlloc. The instance must be explicitly freed.public static VkPushConstantRange calloc()
VkPushConstantRange instance allocated with memCalloc. The instance must be explicitly freed.public static VkPushConstantRange create()
VkPushConstantRange instance allocated with BufferUtils.public static VkPushConstantRange create(long address)
VkPushConstantRange instance for the specified memory address.@Nullable public static VkPushConstantRange createSafe(long address)
public static VkPushConstantRange.Buffer malloc(int capacity)
VkPushConstantRange.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPushConstantRange.Buffer calloc(int capacity)
VkPushConstantRange.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPushConstantRange.Buffer create(int capacity)
VkPushConstantRange.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkPushConstantRange.Buffer create(long address, int capacity)
VkPushConstantRange.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkPushConstantRange.Buffer createSafe(long address, int capacity)
public static VkPushConstantRange mallocStack()
VkPushConstantRange instance allocated on the thread-local MemoryStack.public static VkPushConstantRange callocStack()
VkPushConstantRange instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkPushConstantRange mallocStack(org.lwjgl.system.MemoryStack stack)
VkPushConstantRange instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkPushConstantRange callocStack(org.lwjgl.system.MemoryStack stack)
VkPushConstantRange instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkPushConstantRange.Buffer mallocStack(int capacity)
VkPushConstantRange.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkPushConstantRange.Buffer callocStack(int capacity)
VkPushConstantRange.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkPushConstantRange.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPushConstantRange.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkPushConstantRange.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPushConstantRange.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 nstageFlags(long struct)
stageFlags().public static int noffset(long struct)
offset().public static int nsize(long struct)
size().public static void nstageFlags(long struct,
int value)
stageFlags.public static void noffset(long struct,
int value)
offset.public static void nsize(long struct,
int value)
size.Copyright LWJGL. All Rights Reserved. License terms.