Class VkExternalMemoryPropertiesKHR

java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.khr.struct.VkExternalMemoryPropertiesKHR
All Implemented Interfaces:
Addressable

public final class VkExternalMemoryPropertiesKHR extends GroupType

Layout

struct VkExternalMemoryPropertiesKHR {
    ((uint32_t) VkFlags) VkExternalMemoryFeatureFlags externalMemoryFeatures;
    ((uint32_t) VkFlags) VkExternalMemoryHandleTypeFlags exportFromImportedHandleTypes;
    ((uint32_t) VkFlags) VkExternalMemoryHandleTypeFlags compatibleHandleTypes;
};
  • Field Details

    • LAYOUT

      public static final GroupLayout LAYOUT
      The struct layout of VkExternalMemoryPropertiesKHR.
    • OFFSET_externalMemoryFeatures

      public static final long OFFSET_externalMemoryFeatures
      The byte offset of externalMemoryFeatures.
    • LAYOUT_externalMemoryFeatures

      public static final MemoryLayout LAYOUT_externalMemoryFeatures
      The memory layout of externalMemoryFeatures.
    • VH_externalMemoryFeatures

      public static final VarHandle VH_externalMemoryFeatures
      The VarHandle of externalMemoryFeatures of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_exportFromImportedHandleTypes

      public static final long OFFSET_exportFromImportedHandleTypes
      The byte offset of exportFromImportedHandleTypes.
    • LAYOUT_exportFromImportedHandleTypes

      public static final MemoryLayout LAYOUT_exportFromImportedHandleTypes
      The memory layout of exportFromImportedHandleTypes.
    • VH_exportFromImportedHandleTypes

      public static final VarHandle VH_exportFromImportedHandleTypes
      The VarHandle of exportFromImportedHandleTypes of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_compatibleHandleTypes

      public static final long OFFSET_compatibleHandleTypes
      The byte offset of compatibleHandleTypes.
    • LAYOUT_compatibleHandleTypes

      public static final MemoryLayout LAYOUT_compatibleHandleTypes
      The memory layout of compatibleHandleTypes.
    • VH_compatibleHandleTypes

      public static final VarHandle VH_compatibleHandleTypes
      The VarHandle of compatibleHandleTypes of type (MemorySegment base, long baseOffset, long index)MemorySegment.
  • Constructor Details

    • VkExternalMemoryPropertiesKHR

      public VkExternalMemoryPropertiesKHR(MemorySegment segment, long elementCount)
      Creates VkExternalMemoryPropertiesKHR with the given segment.
      Parameters:
      segment - the memory segment
      elementCount - the element count of this struct buffer
  • Method Details

    • of

      public static VkExternalMemoryPropertiesKHR of(MemorySegment segment)
      Creates VkExternalMemoryPropertiesKHR with the given segment.
      Parameters:
      segment - the memory segment
      Returns:
      the created instance or null if the segment is NULL
    • ofNative

      public static VkExternalMemoryPropertiesKHR ofNative(MemorySegment segment)

      Creates VkExternalMemoryPropertiesKHR with the given segment.

      Reinterprets the segment if zero-length.

      Parameters:
      segment - the memory segment
      Returns:
      the created instance or null if the segment is NULL
    • ofNative

      public static VkExternalMemoryPropertiesKHR ofNative(MemorySegment segment, long count)

      Creates VkExternalMemoryPropertiesKHR with the given segment.

      Reinterprets the segment if zero-length.

      Parameters:
      segment - the memory segment
      count - the count of the buffer
      Returns:
      the created instance or null if the segment is NULL
    • alloc

      public static VkExternalMemoryPropertiesKHR alloc(SegmentAllocator allocator)
      Allocates a VkExternalMemoryPropertiesKHR with the given segment allocator.
      Parameters:
      allocator - the segment allocator
      Returns:
      the allocated VkExternalMemoryPropertiesKHR
    • alloc

      public static VkExternalMemoryPropertiesKHR alloc(SegmentAllocator allocator, long count)
      Allocates a VkExternalMemoryPropertiesKHR with the given segment allocator and count.
      Parameters:
      allocator - the segment allocator
      count - the count
      Returns:
      the allocated VkExternalMemoryPropertiesKHR
    • copyFrom

      Copies from the given source.
      Parameters:
      src - the source
      Returns:
      this
    • reinterpret

      public VkExternalMemoryPropertiesKHR reinterpret(long count)
      Reinterprets this buffer with the given count.
      Parameters:
      count - the new count
      Returns:
      the reinterpreted buffer
    • externalMemoryFeatures

      public static int externalMemoryFeatures(MemorySegment segment, long index)
      Returns externalMemoryFeatures at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index of the struct buffer
      Returns:
      externalMemoryFeatures at the given index
    • externalMemoryFeatures

      public int externalMemoryFeatures()
      Returns externalMemoryFeatures.
      Returns:
      externalMemoryFeatures
    • externalMemoryFeatures

      public static void externalMemoryFeatures(MemorySegment segment, long index, int value)
      Sets externalMemoryFeatures with the given value at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index of the struct buffer
      value - the value
    • externalMemoryFeatures

      public VkExternalMemoryPropertiesKHR externalMemoryFeatures(int value)
      Sets externalMemoryFeatures with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • exportFromImportedHandleTypes

      public static int exportFromImportedHandleTypes(MemorySegment segment, long index)
      Returns exportFromImportedHandleTypes at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index of the struct buffer
      Returns:
      exportFromImportedHandleTypes at the given index
    • exportFromImportedHandleTypes

      public int exportFromImportedHandleTypes()
      Returns exportFromImportedHandleTypes.
      Returns:
      exportFromImportedHandleTypes
    • exportFromImportedHandleTypes

      public static void exportFromImportedHandleTypes(MemorySegment segment, long index, int value)
      Sets exportFromImportedHandleTypes with the given value at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index of the struct buffer
      value - the value
    • exportFromImportedHandleTypes

      public VkExternalMemoryPropertiesKHR exportFromImportedHandleTypes(int value)
      Sets exportFromImportedHandleTypes with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • compatibleHandleTypes

      public static int compatibleHandleTypes(MemorySegment segment, long index)
      Returns compatibleHandleTypes at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index of the struct buffer
      Returns:
      compatibleHandleTypes at the given index
    • compatibleHandleTypes

      public int compatibleHandleTypes()
      Returns compatibleHandleTypes.
      Returns:
      compatibleHandleTypes
    • compatibleHandleTypes

      public static void compatibleHandleTypes(MemorySegment segment, long index, int value)
      Sets compatibleHandleTypes with the given value at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index of the struct buffer
      value - the value
    • compatibleHandleTypes

      public VkExternalMemoryPropertiesKHR compatibleHandleTypes(int value)
      Sets compatibleHandleTypes with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • asSlice

      public VkExternalMemoryPropertiesKHR asSlice(long index)
      Creates a slice of VkExternalMemoryPropertiesKHR.
      Parameters:
      index - the index of the struct buffer
      Returns:
      the slice of VkExternalMemoryPropertiesKHR
    • asSlice

      public VkExternalMemoryPropertiesKHR asSlice(long index, long count)
      Creates a slice of VkExternalMemoryPropertiesKHR.
      Parameters:
      index - the index of the struct buffer
      count - the count
      Returns:
      the slice of VkExternalMemoryPropertiesKHR
    • at

      Visits VkExternalMemoryPropertiesKHR buffer at the given index.
      Parameters:
      index - the index of this buffer
      func - the function to run with the slice of this buffer
      Returns:
      this
    • externalMemoryFeaturesAt

      public int externalMemoryFeaturesAt(long index)
      Returns externalMemoryFeatures at the given index.
      Parameters:
      index - the index of the struct buffer
      Returns:
      externalMemoryFeatures at the given index
    • externalMemoryFeaturesAt

      public VkExternalMemoryPropertiesKHR externalMemoryFeaturesAt(long index, int value)
      Sets externalMemoryFeatures with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • exportFromImportedHandleTypesAt

      public int exportFromImportedHandleTypesAt(long index)
      Returns exportFromImportedHandleTypes at the given index.
      Parameters:
      index - the index of the struct buffer
      Returns:
      exportFromImportedHandleTypes at the given index
    • exportFromImportedHandleTypesAt

      public VkExternalMemoryPropertiesKHR exportFromImportedHandleTypesAt(long index, int value)
      Sets exportFromImportedHandleTypes with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • compatibleHandleTypesAt

      public int compatibleHandleTypesAt(long index)
      Returns compatibleHandleTypes at the given index.
      Parameters:
      index - the index of the struct buffer
      Returns:
      compatibleHandleTypes at the given index
    • compatibleHandleTypesAt

      public VkExternalMemoryPropertiesKHR compatibleHandleTypesAt(long index, int value)
      Sets compatibleHandleTypes with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this