Package org.lwjgl.vulkan
Class VkSpecializationInfo
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct VkSpecializationInfo {
uint32_t mapEntryCount;
{@link VkSpecializationMapEntry VkSpecializationMapEntry} const * pMapEntries;
size_t dataSize;
void const * pData;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionVkSpecializationInfo
(ByteBuffer container) Creates aVkSpecializationInfo
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkSpecializationInfo
calloc()
Returns a newVkSpecializationInfo
instance allocated withmemCalloc
.static VkSpecializationInfo.Buffer
calloc
(int capacity) Returns a newVkSpecializationInfo.Buffer
instance allocated withmemCalloc
.static VkSpecializationInfo.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newVkSpecializationInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkSpecializationInfo
calloc
(MemoryStack stack) Returns a newVkSpecializationInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkSpecializationInfo
Deprecated.static VkSpecializationInfo.Buffer
callocStack
(int capacity) Deprecated.static VkSpecializationInfo.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static VkSpecializationInfo
callocStack
(MemoryStack stack) Deprecated.static VkSpecializationInfo
create()
Returns a newVkSpecializationInfo
instance allocated withBufferUtils
.static VkSpecializationInfo.Buffer
create
(int capacity) Returns a newVkSpecializationInfo.Buffer
instance allocated withBufferUtils
.static VkSpecializationInfo
create
(long address) Returns a newVkSpecializationInfo
instance for the specified memory address.static VkSpecializationInfo.Buffer
create
(long address, int capacity) Create aVkSpecializationInfo.Buffer
instance at the specified memory.static @Nullable VkSpecializationInfo
createSafe
(long address) static @Nullable VkSpecializationInfo.Buffer
createSafe
(long address, int capacity) long
dataSize()
static VkSpecializationInfo
malloc()
Returns a newVkSpecializationInfo
instance allocated withmemAlloc
.static VkSpecializationInfo.Buffer
malloc
(int capacity) Returns a newVkSpecializationInfo.Buffer
instance allocated withmemAlloc
.static VkSpecializationInfo.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newVkSpecializationInfo.Buffer
instance allocated on the specifiedMemoryStack
.static VkSpecializationInfo
malloc
(MemoryStack stack) Returns a newVkSpecializationInfo
instance allocated on the specifiedMemoryStack
.static VkSpecializationInfo
Deprecated.static VkSpecializationInfo.Buffer
mallocStack
(int capacity) Deprecated.static VkSpecializationInfo.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static VkSpecializationInfo
mallocStack
(MemoryStack stack) Deprecated.int
static long
ndataSize
(long struct) Unsafe version ofdataSize()
.static void
ndataSize
(long struct, long value) Sets the specified value to thedataSize
field of the specifiedstruct
.static int
nmapEntryCount
(long struct) Unsafe version ofmapEntryCount()
.static void
nmapEntryCount
(long struct, int value) Sets the specified value to themapEntryCount
field of the specifiedstruct
.static @Nullable ByteBuffer
npData
(long struct) Unsafe version ofpData
.static void
npData
(long struct, @Nullable ByteBuffer value) Unsafe version ofpData
.static @Nullable VkSpecializationMapEntry.Buffer
npMapEntries
(long struct) Unsafe version ofpMapEntries()
.static void
npMapEntries
(long struct, @Nullable VkSpecializationMapEntry.Buffer value) Unsafe version ofpMapEntries
.@Nullable ByteBuffer
pData()
pData
(@Nullable ByteBuffer value) Sets the address of the specifiedByteBuffer
to thepData
field.@Nullable VkSpecializationMapEntry.Buffer
pMapEntries
(@Nullable VkSpecializationMapEntry.Buffer value) Sets the address of the specifiedVkSpecializationMapEntry.Buffer
to thepMapEntries
field.set
(VkSpecializationInfo src) Copies the specified struct data to this struct.set
(@Nullable VkSpecializationMapEntry.Buffer pMapEntries, @Nullable ByteBuffer pData) Initializes this struct with the specified values.int
sizeof()
Returnssizeof(struct)
.static void
validate
(long struct) Validates pointer members that should not beNULL
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
MAPENTRYCOUNT
public static final int MAPENTRYCOUNTThe struct member offsets. -
PMAPENTRIES
public static final int PMAPENTRIESThe struct member offsets. -
DATASIZE
public static final int DATASIZEThe struct member offsets. -
PDATA
public static final int PDATAThe struct member offsets.
-
-
Constructor Details
-
VkSpecializationInfo
Creates aVkSpecializationInfo
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<VkSpecializationInfo>
-
mapEntryCount
public int mapEntryCount()- Returns:
- the value of the
mapEntryCount
field.
-
pMapEntries
- Returns:
- a
VkSpecializationMapEntry.Buffer
view of the struct array pointed to by thepMapEntries
field.
-
dataSize
public long dataSize()- Returns:
- the value of the
dataSize
field.
-
pData
- Returns:
- a
ByteBuffer
view of the data pointed to by thepData
field.
-
pMapEntries
Sets the address of the specifiedVkSpecializationMapEntry.Buffer
to thepMapEntries
field. -
pData
Sets the address of the specifiedByteBuffer
to thepData
field. -
set
public VkSpecializationInfo set(@Nullable VkSpecializationMapEntry.Buffer pMapEntries, @Nullable ByteBuffer pData) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newVkSpecializationInfo
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newVkSpecializationInfo
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newVkSpecializationInfo
instance allocated withBufferUtils
. -
create
Returns a newVkSpecializationInfo
instance for the specified memory address. -
createSafe
-
malloc
Returns a newVkSpecializationInfo.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newVkSpecializationInfo.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newVkSpecializationInfo.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aVkSpecializationInfo.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newVkSpecializationInfo
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newVkSpecializationInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newVkSpecializationInfo.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newVkSpecializationInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nmapEntryCount
public static int nmapEntryCount(long struct) Unsafe version ofmapEntryCount()
. -
npMapEntries
Unsafe version ofpMapEntries()
. -
ndataSize
public static long ndataSize(long struct) Unsafe version ofdataSize()
. -
npData
Unsafe version ofpData
. -
nmapEntryCount
public static void nmapEntryCount(long struct, int value) Sets the specified value to themapEntryCount
field of the specifiedstruct
. -
npMapEntries
Unsafe version ofpMapEntries
. -
ndataSize
public static void ndataSize(long struct, long value) Sets the specified value to thedataSize
field of the specifiedstruct
. -
npData
Unsafe version ofpData
. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL
.- Parameters:
struct
- the struct to validate
-