Package org.lwjgl.vulkan
Class VkTensorDescriptionARM
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
public class VkTensorDescriptionARM
extends Struct<VkTensorDescriptionARM>
implements NativeResource
struct VkTensorDescriptionARM {
VkStructureType sType;
void const * pNext;
VkTensorTilingARM tiling;
VkFormat format;
uint32_t dimensionCount;
int64_t const * pDimensions;
int64_t const * pStrides;
VkTensorUsageFlagsARM usage;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVkTensorDescriptionARM(ByteBuffer container) Creates aVkTensorDescriptionARMinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkTensorDescriptionARMcalloc()Returns a newVkTensorDescriptionARMinstance allocated withmemCalloc.calloc(int capacity) Returns a newVkTensorDescriptionARM.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newVkTensorDescriptionARM.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkTensorDescriptionARMcalloc(MemoryStack stack) Returns a newVkTensorDescriptionARMinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkTensorDescriptionARMcreate()Returns a newVkTensorDescriptionARMinstance allocated withBufferUtils.create(int capacity) Returns a newVkTensorDescriptionARM.Bufferinstance allocated withBufferUtils.static VkTensorDescriptionARMcreate(long address) Returns a newVkTensorDescriptionARMinstance for the specified memory address.create(long address, int capacity) Create aVkTensorDescriptionARM.Bufferinstance at the specified memory.static @Nullable VkTensorDescriptionARMcreateSafe(long address) static @Nullable VkTensorDescriptionARM.BuffercreateSafe(long address, int capacity) intdimensionCount(int value) Sets the specified value to thedimensionCountfield.intformat()format(int value) Sets the specified value to theformatfield.static VkTensorDescriptionARMmalloc()Returns a newVkTensorDescriptionARMinstance allocated withmemAlloc.malloc(int capacity) Returns a newVkTensorDescriptionARM.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newVkTensorDescriptionARM.Bufferinstance allocated on the specifiedMemoryStack.static VkTensorDescriptionARMmalloc(MemoryStack stack) Returns a newVkTensorDescriptionARMinstance allocated on the specifiedMemoryStack.static intndimensionCount(long struct) Unsafe version ofdimensionCount().static voidndimensionCount(long struct, int value) Sets the specified value to thedimensionCountfield of the specifiedstruct.static intnformat(long struct) Unsafe version offormat().static voidnformat(long struct, int value) Unsafe version offormat.static LongBuffernpDimensions(long struct) Unsafe version ofpDimensions.static voidnpDimensions(long struct, LongBuffer value) Unsafe version ofpDimensions.static longnpNext(long struct) Unsafe version ofpNext().static voidnpNext(long struct, long value) Unsafe version ofpNext.static @Nullable LongBuffernpStrides(long struct) Unsafe version ofpStrides.static voidnpStrides(long struct, @Nullable LongBuffer value) Unsafe version ofpStrides.static intnsType(long struct) Unsafe version ofsType().static voidnsType(long struct, int value) Unsafe version ofsType.static intntiling(long struct) Unsafe version oftiling().static voidntiling(long struct, int value) Unsafe version oftiling.static longnusage(long struct) Unsafe version ofusage().static voidnusage(long struct, long value) Unsafe version ofusage.pDimensions(LongBuffer value) Sets the address of the specifiedLongBufferto thepDimensionsfield.longpNext()pNext(long value) Sets the specified value to thepNextfield.@Nullable LongBufferpStrides()pStrides(@Nullable LongBuffer value) Sets the address of the specifiedLongBufferto thepStridesfield.set(int sType, long pNext, int tiling, int format, int dimensionCount, LongBuffer pDimensions, @Nullable LongBuffer pStrides, long usage) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).intsType()sType(int value) Sets the specified value to thesTypefield.Sets theSTRUCTURE_TYPE_TENSOR_DESCRIPTION_ARMvalue to thesTypefield.inttiling()tiling(int value) Sets the specified value to thetilingfield.longusage()usage(long value) Sets the specified value to theusagefield.static voidvalidate(long struct) Validates pointer members that should not beNULL.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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. -
STYPE
public static final int STYPEThe struct member offsets. -
PNEXT
public static final int PNEXTThe struct member offsets. -
TILING
public static final int TILINGThe struct member offsets. -
FORMAT
public static final int FORMATThe struct member offsets. -
DIMENSIONCOUNT
public static final int DIMENSIONCOUNTThe struct member offsets. -
PDIMENSIONS
public static final int PDIMENSIONSThe struct member offsets. -
PSTRIDES
public static final int PSTRIDESThe struct member offsets. -
USAGE
public static final int USAGEThe struct member offsets.
-
-
Constructor Details
-
VkTensorDescriptionARM
Creates aVkTensorDescriptionARMinstance at the current position of the specifiedByteBuffercontainer. 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:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<VkTensorDescriptionARM>
-
sType
public int sType()- Returns:
- the value of the
sTypefield.
-
pNext
public long pNext()- Returns:
- the value of the
pNextfield.
-
tiling
public int tiling()- Returns:
- the value of the
tilingfield.
-
format
public int format()- Returns:
- the value of the
formatfield.
-
dimensionCount
public int dimensionCount()- Returns:
- the value of the
dimensionCountfield.
-
pDimensions
- Returns:
- a
LongBufferview of the data pointed to by thepDimensionsfield.
-
pStrides
- Returns:
- a
LongBufferview of the data pointed to by thepStridesfield.
-
usage
public long usage()- Returns:
- the value of the
usagefield.
-
sType
Sets the specified value to thesTypefield. -
sType$Default
Sets theSTRUCTURE_TYPE_TENSOR_DESCRIPTION_ARMvalue to thesTypefield. -
pNext
Sets the specified value to thepNextfield. -
tiling
Sets the specified value to thetilingfield. -
format
Sets the specified value to theformatfield. -
dimensionCount
Sets the specified value to thedimensionCountfield. -
pDimensions
Sets the address of the specifiedLongBufferto thepDimensionsfield. -
pStrides
Sets the address of the specifiedLongBufferto thepStridesfield. -
usage
Sets the specified value to theusagefield. -
set
public VkTensorDescriptionARM set(int sType, long pNext, int tiling, int format, int dimensionCount, LongBuffer pDimensions, @Nullable LongBuffer pStrides, long usage) 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 newVkTensorDescriptionARMinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkTensorDescriptionARMinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkTensorDescriptionARMinstance allocated withBufferUtils. -
create
Returns a newVkTensorDescriptionARMinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkTensorDescriptionARM.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkTensorDescriptionARM.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkTensorDescriptionARM.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkTensorDescriptionARM.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newVkTensorDescriptionARMinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkTensorDescriptionARMinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkTensorDescriptionARM.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkTensorDescriptionARM.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nsType
public static int nsType(long struct) Unsafe version ofsType(). -
npNext
public static long npNext(long struct) Unsafe version ofpNext(). -
ntiling
public static int ntiling(long struct) Unsafe version oftiling(). -
nformat
public static int nformat(long struct) Unsafe version offormat(). -
ndimensionCount
public static int ndimensionCount(long struct) Unsafe version ofdimensionCount(). -
npDimensions
Unsafe version ofpDimensions. -
npStrides
Unsafe version ofpStrides. -
nusage
public static long nusage(long struct) Unsafe version ofusage(). -
nsType
public static void nsType(long struct, int value) Unsafe version ofsType. -
npNext
public static void npNext(long struct, long value) Unsafe version ofpNext. -
ntiling
public static void ntiling(long struct, int value) Unsafe version oftiling. -
nformat
public static void nformat(long struct, int value) Unsafe version offormat. -
ndimensionCount
public static void ndimensionCount(long struct, int value) Sets the specified value to thedimensionCountfield of the specifiedstruct. -
npDimensions
Unsafe version ofpDimensions. -
npStrides
Unsafe version ofpStrides. -
nusage
public static void nusage(long struct, long value) Unsafe version ofusage. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-