If a constantID value is not a specialization constant ID used in the shader, that map entry does not affect the behavior of the pipeline.
constantID specialization constant declared in a shader, size must match the byte size of the constantID. If the specialization constant is of type boolean, size must be the byte size of VkBool32
struct VkSpecializationMapEntry {
uint32_t constantID;
uint32_t offset;
size_t size;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | VkSpecializationMapEntry.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | CONSTANTID
The struct member offsets. |
| public static final int | OFFSET
The struct member offsets. |
| public static final int | SIZE
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | VkSpecializationMapEntry(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static VkSpecializationMapEntry | |
| public static VkSpecializationMapEntry. | calloc(int
the buffer capacity capacity)Returns a new |
| public static VkSpecializationMapEntry | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkSpecializationMapEntry. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static VkSpecializationMapEntry | |
| public static VkSpecializationMapEntry | |
| public static VkSpecializationMapEntry. | |
| public static VkSpecializationMapEntry. | |
| public int | |
| public VkSpecializationMapEntry | |
| protected VkSpecializationMapEntry | 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 VkSpecializationMapEntry | |
| public static VkSpecializationMapEntry | create(long address)
Returns a new |
| public static VkSpecializationMapEntry. | create(int
the buffer capacity capacity)Returns a new |
| public static VkSpecializationMapEntry. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static VkSpecializationMapEntry | |
| public static VkSpecializationMapEntry. | |
| public static VkSpecializationMapEntry | |
| public static VkSpecializationMapEntry. | malloc(int
the buffer capacity capacity)Returns a new |
| public static VkSpecializationMapEntry | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkSpecializationMapEntry. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static VkSpecializationMapEntry | |
| public static VkSpecializationMapEntry | |
| public static VkSpecializationMapEntry. | |
| public static VkSpecializationMapEntry. | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static long | |
| public static void | |
| public int | |
| public VkSpecializationMapEntry | |
| public VkSpecializationMapEntry | |
| public VkSpecializationMapEntry | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public long | |
| public VkSpecializationMapEntry | |
| public int |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| CONSTANTID | back to summary |
|---|---|
| public static final int CONSTANTID The struct member offsets. | |
| OFFSET | back to summary |
|---|---|
| public static final int OFFSET The struct member offsets. | |
| SIZE | back to summary |
|---|---|
| public static final int SIZE The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| VkSpecializationMapEntry | back to summary |
|---|---|
| protected VkSpecializationMapEntry(long address, ByteBuffer container) | |
| VkSpecializationMapEntry | back to summary |
|---|---|
| public VkSpecializationMapEntry(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static VkSpecializationMapEntry calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static VkSpecializationMapEntry. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VkSpecializationMapEntry calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VkSpecializationMapEntry. Returns a new
| |
| callocStack | back to summary |
|---|---|
| public static VkSpecializationMapEntry callocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static VkSpecializationMapEntry callocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static VkSpecializationMapEntry. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static VkSpecializationMapEntry. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| constantID | back to summary |
|---|---|
| public int constantID() the ID of the specialization constant in SPIR-V.
| |
| constantID | back to summary |
|---|---|
| public VkSpecializationMapEntry constantID(int value) Sets the specified value to the | |
| create | back to summary |
|---|---|
| protected VkSpecializationMapEntry create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static VkSpecializationMapEntry create() Returns a new | |
| create | back to summary |
|---|---|
| public static VkSpecializationMapEntry create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static VkSpecializationMapEntry. Returns a new
| |
| create | back to summary |
|---|---|
| public static VkSpecializationMapEntry. Create a
| |
| createSafe | back to summary |
|---|---|
| public static VkSpecializationMapEntry createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static VkSpecializationMapEntry. Like
| |
| malloc | back to summary |
|---|---|
| public static VkSpecializationMapEntry malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static VkSpecializationMapEntry. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VkSpecializationMapEntry malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VkSpecializationMapEntry. Returns a new
| |
| mallocStack | back to summary |
|---|---|
| public static VkSpecializationMapEntry mallocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static VkSpecializationMapEntry mallocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static VkSpecializationMapEntry. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static VkSpecializationMapEntry. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| nconstantID | back to summary |
|---|---|
| public static int nconstantID(long struct) Unsafe version of | |
| nconstantID | back to summary |
|---|---|
| public static void nconstantID(long struct, int value) Unsafe version of | |
| noffset | back to summary |
|---|---|
| public static int noffset(long struct) Unsafe version of | |
| noffset | back to summary |
|---|---|
| public static void noffset(long struct, int value) Unsafe version of | |
| nsize | back to summary |
|---|---|
| public static long nsize(long struct) Unsafe version of | |
| nsize | back to summary |
|---|---|
| public static void nsize(long struct, long value) Unsafe version of | |
| offset | back to summary |
|---|---|
| public int offset() the byte offset of the specialization constant value within the supplied data buffer.
| |
| offset | back to summary |
|---|---|
| public VkSpecializationMapEntry offset(int value) Sets the specified value to the | |
| set | back to summary |
|---|---|
| public VkSpecializationMapEntry set(int constantID, int offset, long size) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public VkSpecializationMapEntry set(VkSpecializationMapEntry src) Copies the specified struct data to this struct.
| |
| size | back to summary |
|---|---|
| public long size() the byte size of the specialization constant value within the supplied data buffer.
| |
| size | back to summary |
|---|---|
| public VkSpecializationMapEntry size(long value) Sets the specified value to the | |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
VkSpecializationMapEntry structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final VkSpecializationMapEntry |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public VkSpecializationMapEntry. | |
| protected VkSpecializationMapEntry | |
| public int | |
| public VkSpecializationMapEntry. | |
| protected VkSpecializationMapEntry. | |
| public long | |
| public VkSpecializationMapEntry. |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final VkSpecializationMapEntry 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) | |
| constantID | back to summary |
|---|---|
public int constantID()
| |
| constantID | back to summary |
|---|---|
| public VkSpecializationMapEntry. Sets the specified value to the | |
| getElementFactory | back to summary |
|---|---|
| protected VkSpecializationMapEntry getElementFactory() Implements abstract org.
| |
| offset | back to summary |
|---|---|
public int offset()
| |
| offset | back to summary |
|---|---|
| public VkSpecializationMapEntry. Sets the specified value to the | |
| self | back to summary |
|---|---|
| protected VkSpecializationMapEntry. Implements abstract org.
| |
| size | back to summary |
|---|---|
public long size()
| |
| size | back to summary |
|---|---|
| public VkSpecializationMapEntry. Sets the specified value to the | |