Class VkResourceDescriptorDataEXT
- All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer
public class VkResourceDescriptorDataEXT
extends Struct<VkResourceDescriptorDataEXT>
implements NativeResource
union VkResourceDescriptorDataEXT {
VkImageDescriptorInfoEXT const * pImage;
VkTexelBufferDescriptorInfoEXT const * pTexelBuffer;
VkDeviceAddressRangeEXT const * pAddressRange;
VkTensorViewCreateInfoARM const * pTensorARM;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class Struct
Struct.StructValidationNested classes/interfaces inherited from interface 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 size in bytes.Fields inherited from interface Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVkResourceDescriptorDataEXT(ByteBuffer container) Creates aVkResourceDescriptorDataEXTinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkResourceDescriptorDataEXTcalloc()Returns a newVkResourceDescriptorDataEXTinstance allocated withmemCalloc.calloc(int capacity) Returns a newVkResourceDescriptorDataEXT.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newVkResourceDescriptorDataEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkResourceDescriptorDataEXTcalloc(MemoryStack stack) Returns a newVkResourceDescriptorDataEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkResourceDescriptorDataEXTcreate()Returns a newVkResourceDescriptorDataEXTinstance allocated withBufferUtils.create(int capacity) Returns a newVkResourceDescriptorDataEXT.Bufferinstance allocated withBufferUtils.static VkResourceDescriptorDataEXTcreate(long address) Returns a newVkResourceDescriptorDataEXTinstance for the specified memory address.create(long address, int capacity) Create aVkResourceDescriptorDataEXT.Bufferinstance at the specified memory.static @Nullable VkResourceDescriptorDataEXTcreateSafe(long address) static @Nullable VkResourceDescriptorDataEXT.BuffercreateSafe(long address, int capacity) static VkResourceDescriptorDataEXTmalloc()Returns a newVkResourceDescriptorDataEXTinstance allocated withmemAlloc.malloc(int capacity) Returns a newVkResourceDescriptorDataEXT.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newVkResourceDescriptorDataEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkResourceDescriptorDataEXTmalloc(MemoryStack stack) Returns a newVkResourceDescriptorDataEXTinstance allocated on the specifiedMemoryStack.static @Nullable VkDeviceAddressRangeEXTnpAddressRange(long struct) Unsafe version ofpAddressRange().static voidnpAddressRange(long struct, @Nullable VkDeviceAddressRangeEXT value) Unsafe version ofpAddressRange.static @Nullable VkImageDescriptorInfoEXTnpImage(long struct) Unsafe version ofpImage().static voidnpImage(long struct, @Nullable VkImageDescriptorInfoEXT value) Unsafe version ofpImage.static @Nullable VkTensorViewCreateInfoARMnpTensorARM(long struct) Unsafe version ofpTensorARM().static voidnpTensorARM(long struct, @Nullable VkTensorViewCreateInfoARM value) Unsafe version ofpTensorARM.static @Nullable VkTexelBufferDescriptorInfoEXTnpTexelBuffer(long struct) Unsafe version ofpTexelBuffer().static voidnpTexelBuffer(long struct, @Nullable VkTexelBufferDescriptorInfoEXT value) Unsafe version ofpTexelBuffer.@Nullable VkDeviceAddressRangeEXTpAddressRange(@Nullable VkDeviceAddressRangeEXT value) Sets the address of the specifiedVkDeviceAddressRangeEXTto thepAddressRangefield.@Nullable VkImageDescriptorInfoEXTpImage()pImage(@Nullable VkImageDescriptorInfoEXT value) Sets the address of the specifiedVkImageDescriptorInfoEXTto thepImagefield.@Nullable VkTensorViewCreateInfoARMpTensorARM(@Nullable VkTensorViewCreateInfoARM value) Sets the address of the specifiedVkTensorViewCreateInfoARMto thepTensorARMfield.@Nullable VkTexelBufferDescriptorInfoEXTpTexelBuffer(@Nullable VkTexelBufferDescriptorInfoEXT value) Sets the address of the specifiedVkTexelBufferDescriptorInfoEXTto thepTexelBufferfield.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).Methods inherited from class Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface 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. -
PIMAGE
public static final int PIMAGEThe struct member offsets. -
PTEXELBUFFER
public static final int PTEXELBUFFERThe struct member offsets. -
PADDRESSRANGE
public static final int PADDRESSRANGEThe struct member offsets. -
PTENSORARM
public static final int PTENSORARMThe struct member offsets.
-
-
Constructor Details
-
VkResourceDescriptorDataEXT
Creates aVkResourceDescriptorDataEXTinstance 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<VkResourceDescriptorDataEXT>
-
pImage
- Returns:
- a
VkImageDescriptorInfoEXTview of the struct pointed to by thepImagefield.
-
pTexelBuffer
@NativeType("VkTexelBufferDescriptorInfoEXT const *") public @Nullable VkTexelBufferDescriptorInfoEXT pTexelBuffer()- Returns:
- a
VkTexelBufferDescriptorInfoEXTview of the struct pointed to by thepTexelBufferfield.
-
pAddressRange
@NativeType("VkDeviceAddressRangeEXT const *") public @Nullable VkDeviceAddressRangeEXT pAddressRange()- Returns:
- a
VkDeviceAddressRangeEXTview of the struct pointed to by thepAddressRangefield.
-
pTensorARM
@NativeType("VkTensorViewCreateInfoARM const *") public @Nullable VkTensorViewCreateInfoARM pTensorARM()- Returns:
- a
VkTensorViewCreateInfoARMview of the struct pointed to by thepTensorARMfield.
-
pImage
public VkResourceDescriptorDataEXT pImage(@NativeType("VkImageDescriptorInfoEXT const *") @Nullable VkImageDescriptorInfoEXT value) Sets the address of the specifiedVkImageDescriptorInfoEXTto thepImagefield. -
pTexelBuffer
public VkResourceDescriptorDataEXT pTexelBuffer(@NativeType("VkTexelBufferDescriptorInfoEXT const *") @Nullable VkTexelBufferDescriptorInfoEXT value) Sets the address of the specifiedVkTexelBufferDescriptorInfoEXTto thepTexelBufferfield. -
pAddressRange
public VkResourceDescriptorDataEXT pAddressRange(@NativeType("VkDeviceAddressRangeEXT const *") @Nullable VkDeviceAddressRangeEXT value) Sets the address of the specifiedVkDeviceAddressRangeEXTto thepAddressRangefield. -
pTensorARM
public VkResourceDescriptorDataEXT pTensorARM(@NativeType("VkTensorViewCreateInfoARM const *") @Nullable VkTensorViewCreateInfoARM value) Sets the address of the specifiedVkTensorViewCreateInfoARMto thepTensorARMfield. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newVkResourceDescriptorDataEXTinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkResourceDescriptorDataEXTinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkResourceDescriptorDataEXTinstance allocated withBufferUtils. -
create
Returns a newVkResourceDescriptorDataEXTinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkResourceDescriptorDataEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkResourceDescriptorDataEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkResourceDescriptorDataEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkResourceDescriptorDataEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newVkResourceDescriptorDataEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkResourceDescriptorDataEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkResourceDescriptorDataEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkResourceDescriptorDataEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
npImage
Unsafe version ofpImage(). -
npTexelBuffer
Unsafe version ofpTexelBuffer(). -
npAddressRange
Unsafe version ofpAddressRange(). -
npTensorARM
Unsafe version ofpTensorARM(). -
npImage
Unsafe version ofpImage. -
npTexelBuffer
Unsafe version ofpTexelBuffer. -
npAddressRange
Unsafe version ofpAddressRange. -
npTensorARM
Unsafe version ofpTensorARM.
-