public class VkSpecializationInfo
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
pMapEntries is a pointer to a VkSpecializationMapEntry structure.
offset member of each element of pMapEntries must be less than dataSizesize member of each element of pMapEntries must be less than or equal to dataSize minus offsetmapEntryCount is not 0, pMapEntries must be a valid pointer to an array of mapEntryCount valid VkSpecializationMapEntry structuresdataSize is not 0, pData must be a valid pointer to an array of dataSize bytesVkPipelineShaderStageCreateInfo, VkSpecializationMapEntry
mapEntryCount – the number of entries in the pMapEntries array.pMapEntries – a pointer to an array of VkSpecializationMapEntry structures which map constant IDs to offsets in pData.dataSize – the byte size of the pData buffer.pData – contains the actual constant values to specialize with.
struct VkSpecializationInfo {
uint32_t mapEntryCount;
VkSpecializationMapEntry const * pMapEntries;
size_t dataSize;
void const * pData;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkSpecializationInfo.Buffer
An array of
VkSpecializationInfo structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
DATASIZE
The struct member offsets.
|
static int |
MAPENTRYCOUNT
The struct member offsets.
|
static int |
PDATA
The struct member offsets.
|
static int |
PMAPENTRIES
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
VkSpecializationInfo(java.nio.ByteBuffer container)
Creates a
VkSpecializationInfo instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkSpecializationInfo |
calloc()
Returns a new
VkSpecializationInfo instance allocated with memCalloc. |
static VkSpecializationInfo.Buffer |
calloc(int capacity)
Returns a new
VkSpecializationInfo.Buffer instance allocated with memCalloc. |
static VkSpecializationInfo |
callocStack()
Returns a new
VkSpecializationInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkSpecializationInfo.Buffer |
callocStack(int capacity)
Returns a new
VkSpecializationInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkSpecializationInfo.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkSpecializationInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkSpecializationInfo |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkSpecializationInfo instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkSpecializationInfo |
create()
Returns a new
VkSpecializationInfo instance allocated with BufferUtils. |
static VkSpecializationInfo.Buffer |
create(int capacity)
Returns a new
VkSpecializationInfo.Buffer instance allocated with BufferUtils. |
static VkSpecializationInfo |
create(long address)
Returns a new
VkSpecializationInfo instance for the specified memory address. |
static VkSpecializationInfo.Buffer |
create(long address,
int capacity)
Create a
VkSpecializationInfo.Buffer instance at the specified memory. |
static VkSpecializationInfo |
createSafe(long address)
|
static VkSpecializationInfo.Buffer |
createSafe(long address,
int capacity)
|
long |
dataSize()
Returns the value of the
dataSize field. |
static VkSpecializationInfo |
malloc()
Returns a new
VkSpecializationInfo instance allocated with memAlloc. |
static VkSpecializationInfo.Buffer |
malloc(int capacity)
Returns a new
VkSpecializationInfo.Buffer instance allocated with memAlloc. |
static VkSpecializationInfo |
mallocStack()
Returns a new
VkSpecializationInfo instance allocated on the thread-local MemoryStack. |
static VkSpecializationInfo.Buffer |
mallocStack(int capacity)
Returns a new
VkSpecializationInfo.Buffer instance allocated on the thread-local MemoryStack. |
static VkSpecializationInfo.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkSpecializationInfo.Buffer instance allocated on the specified MemoryStack. |
static VkSpecializationInfo |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkSpecializationInfo instance allocated on the specified MemoryStack. |
int |
mapEntryCount()
Returns the value of the
mapEntryCount field. |
static long |
ndataSize(long struct)
Unsafe version of
dataSize(). |
static void |
ndataSize(long struct,
long value)
Sets the specified value to the
dataSize field of the specified struct. |
static int |
nmapEntryCount(long struct)
Unsafe version of
mapEntryCount(). |
static void |
nmapEntryCount(long struct,
int value)
Sets the specified value to the
mapEntryCount field of the specified struct. |
static java.nio.ByteBuffer |
npData(long struct)
Unsafe version of
pData. |
static void |
npData(long struct,
java.nio.ByteBuffer value)
Unsafe version of
pData. |
static VkSpecializationMapEntry.Buffer |
npMapEntries(long struct)
Unsafe version of
pMapEntries(). |
static void |
npMapEntries(long struct,
VkSpecializationMapEntry.Buffer value)
Unsafe version of
pMapEntries. |
java.nio.ByteBuffer |
pData()
Returns a
ByteBuffer view of the data pointed to by the pData field. |
VkSpecializationInfo |
pData(java.nio.ByteBuffer value)
Sets the address of the specified
ByteBuffer to the pData field. |
VkSpecializationMapEntry.Buffer |
pMapEntries()
Returns a
VkSpecializationMapEntry.Buffer view of the struct array pointed to by the pMapEntries field. |
VkSpecializationInfo |
pMapEntries(VkSpecializationMapEntry.Buffer value)
Sets the address of the specified
VkSpecializationMapEntry.Buffer to the pMapEntries field. |
VkSpecializationInfo |
set(VkSpecializationInfo src)
Copies the specified struct data to this struct.
|
VkSpecializationInfo |
set(VkSpecializationMapEntry.Buffer pMapEntries,
java.nio.ByteBuffer pData)
Initializes this struct with the specified values.
|
int |
sizeof() |
static void |
validate(long struct)
Validates pointer members that should not be
NULL. |
static void |
validate(long array,
int count)
Calls
validate(long) for each struct contained in the specified struct array. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int MAPENTRYCOUNT
public static final int PMAPENTRIES
public static final int DATASIZE
public static final int PDATA
public VkSpecializationInfo(java.nio.ByteBuffer container)
VkSpecializationInfo 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 mapEntryCount()
mapEntryCount field.@Nullable public VkSpecializationMapEntry.Buffer pMapEntries()
VkSpecializationMapEntry.Buffer view of the struct array pointed to by the pMapEntries field.public long dataSize()
dataSize field.@Nullable public java.nio.ByteBuffer pData()
ByteBuffer view of the data pointed to by the pData field.public VkSpecializationInfo pMapEntries(@Nullable VkSpecializationMapEntry.Buffer value)
VkSpecializationMapEntry.Buffer to the pMapEntries field.public VkSpecializationInfo pData(@Nullable java.nio.ByteBuffer value)
ByteBuffer to the pData field.public VkSpecializationInfo set(@Nullable VkSpecializationMapEntry.Buffer pMapEntries, @Nullable java.nio.ByteBuffer pData)
public VkSpecializationInfo set(VkSpecializationInfo src)
src - the source structpublic static VkSpecializationInfo malloc()
VkSpecializationInfo instance allocated with memAlloc. The instance must be explicitly freed.public static VkSpecializationInfo calloc()
VkSpecializationInfo instance allocated with memCalloc. The instance must be explicitly freed.public static VkSpecializationInfo create()
VkSpecializationInfo instance allocated with BufferUtils.public static VkSpecializationInfo create(long address)
VkSpecializationInfo instance for the specified memory address.@Nullable public static VkSpecializationInfo createSafe(long address)
public static VkSpecializationInfo.Buffer malloc(int capacity)
VkSpecializationInfo.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkSpecializationInfo.Buffer calloc(int capacity)
VkSpecializationInfo.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkSpecializationInfo.Buffer create(int capacity)
VkSpecializationInfo.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkSpecializationInfo.Buffer create(long address, int capacity)
VkSpecializationInfo.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkSpecializationInfo.Buffer createSafe(long address, int capacity)
public static VkSpecializationInfo mallocStack()
VkSpecializationInfo instance allocated on the thread-local MemoryStack.public static VkSpecializationInfo callocStack()
VkSpecializationInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkSpecializationInfo mallocStack(org.lwjgl.system.MemoryStack stack)
VkSpecializationInfo instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkSpecializationInfo callocStack(org.lwjgl.system.MemoryStack stack)
VkSpecializationInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkSpecializationInfo.Buffer mallocStack(int capacity)
VkSpecializationInfo.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkSpecializationInfo.Buffer callocStack(int capacity)
VkSpecializationInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkSpecializationInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkSpecializationInfo.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkSpecializationInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkSpecializationInfo.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 nmapEntryCount(long struct)
mapEntryCount().@Nullable public static VkSpecializationMapEntry.Buffer npMapEntries(long struct)
pMapEntries().public static long ndataSize(long struct)
dataSize().@Nullable public static java.nio.ByteBuffer npData(long struct)
pData.public static void nmapEntryCount(long struct,
int value)
mapEntryCount field of the specified struct.public static void npMapEntries(long struct,
@Nullable
VkSpecializationMapEntry.Buffer value)
pMapEntries.public static void ndataSize(long struct,
long value)
dataSize field of the specified struct.public static void npData(long struct,
@Nullable
java.nio.ByteBuffer value)
pData.public static void validate(long struct)
NULL.struct - the struct to validatepublic static void validate(long array,
int count)
validate(long) for each struct contained in the specified struct array.array - the struct array to validatecount - the number of structs in arrayCopyright LWJGL. All Rights Reserved. License terms.