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.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 member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The 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 aVkTensorDescriptionARM
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkTensorDescriptionARM
calloc()
Returns a newVkTensorDescriptionARM
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newVkTensorDescriptionARM.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newVkTensorDescriptionARM.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkTensorDescriptionARM
calloc
(MemoryStack stack) Returns a newVkTensorDescriptionARM
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkTensorDescriptionARM
create()
Returns a newVkTensorDescriptionARM
instance allocated withBufferUtils
.create
(int capacity) Returns a newVkTensorDescriptionARM.Buffer
instance allocated withBufferUtils
.static VkTensorDescriptionARM
create
(long address) Returns a newVkTensorDescriptionARM
instance for the specified memory address.create
(long address, int capacity) Create aVkTensorDescriptionARM.Buffer
instance at the specified memory.static @Nullable VkTensorDescriptionARM
createSafe
(long address) static @Nullable VkTensorDescriptionARM.Buffer
createSafe
(long address, int capacity) int
dimensionCount
(int value) Sets the specified value to thedimensionCount
field.int
format()
format
(int value) Sets the specified value to theformat
field.static VkTensorDescriptionARM
malloc()
Returns a newVkTensorDescriptionARM
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newVkTensorDescriptionARM.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newVkTensorDescriptionARM.Buffer
instance allocated on the specifiedMemoryStack
.static VkTensorDescriptionARM
malloc
(MemoryStack stack) Returns a newVkTensorDescriptionARM
instance allocated on the specifiedMemoryStack
.static int
ndimensionCount
(long struct) Unsafe version ofdimensionCount()
.static void
ndimensionCount
(long struct, int value) Sets the specified value to thedimensionCount
field of the specifiedstruct
.static int
nformat
(long struct) Unsafe version offormat()
.static void
nformat
(long struct, int value) Unsafe version offormat
.static LongBuffer
npDimensions
(long struct) Unsafe version ofpDimensions
.static void
npDimensions
(long struct, LongBuffer value) Unsafe version ofpDimensions
.static long
npNext
(long struct) Unsafe version ofpNext()
.static void
npNext
(long struct, long value) Unsafe version ofpNext
.static @Nullable LongBuffer
npStrides
(long struct) Unsafe version ofpStrides
.static void
npStrides
(long struct, @Nullable LongBuffer value) Unsafe version ofpStrides
.static int
nsType
(long struct) Unsafe version ofsType()
.static void
nsType
(long struct, int value) Unsafe version ofsType
.static int
ntiling
(long struct) Unsafe version oftiling()
.static void
ntiling
(long struct, int value) Unsafe version oftiling
.static long
nusage
(long struct) Unsafe version ofusage()
.static void
nusage
(long struct, long value) Unsafe version ofusage
.pDimensions
(LongBuffer value) Sets the address of the specifiedLongBuffer
to thepDimensions
field.long
pNext()
pNext
(long value) Sets the specified value to thepNext
field.@Nullable LongBuffer
pStrides()
pStrides
(@Nullable LongBuffer value) Sets the address of the specifiedLongBuffer
to thepStrides
field.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.int
sizeof()
Returnssizeof(struct)
.int
sType()
sType
(int value) Sets the specified value to thesType
field.Sets theSTRUCTURE_TYPE_TENSOR_DESCRIPTION_ARM
value to thesType
field.int
tiling()
tiling
(int value) Sets the specified value to thetiling
field.long
usage()
usage
(long value) Sets the specified value to theusage
field.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. -
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 aVkTensorDescriptionARM
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<VkTensorDescriptionARM>
-
sType
public int sType()- Returns:
- the value of the
sType
field.
-
pNext
public long pNext()- Returns:
- the value of the
pNext
field.
-
tiling
public int tiling()- Returns:
- the value of the
tiling
field.
-
format
public int format()- Returns:
- the value of the
format
field.
-
dimensionCount
public int dimensionCount()- Returns:
- the value of the
dimensionCount
field.
-
pDimensions
- Returns:
- a
LongBuffer
view of the data pointed to by thepDimensions
field.
-
pStrides
- Returns:
- a
LongBuffer
view of the data pointed to by thepStrides
field.
-
usage
public long usage()- Returns:
- the value of the
usage
field.
-
sType
Sets the specified value to thesType
field. -
sType$Default
Sets theSTRUCTURE_TYPE_TENSOR_DESCRIPTION_ARM
value to thesType
field. -
pNext
Sets the specified value to thepNext
field. -
tiling
Sets the specified value to thetiling
field. -
format
Sets the specified value to theformat
field. -
dimensionCount
Sets the specified value to thedimensionCount
field. -
pDimensions
Sets the address of the specifiedLongBuffer
to thepDimensions
field. -
pStrides
Sets the address of the specifiedLongBuffer
to thepStrides
field. -
usage
Sets the specified value to theusage
field. -
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 newVkTensorDescriptionARM
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newVkTensorDescriptionARM
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newVkTensorDescriptionARM
instance allocated withBufferUtils
. -
create
Returns a newVkTensorDescriptionARM
instance for the specified memory address. -
createSafe
-
malloc
Returns a newVkTensorDescriptionARM.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newVkTensorDescriptionARM.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newVkTensorDescriptionARM.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aVkTensorDescriptionARM.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newVkTensorDescriptionARM
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newVkTensorDescriptionARM
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newVkTensorDescriptionARM.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newVkTensorDescriptionARM.Buffer
instance allocated on the specifiedMemoryStack
and 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 thedimensionCount
field 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
-