Record Class VkVideoPictureResourceInfoKHR

java.lang.Object
java.lang.Record
club.doki7.vulkan.datatype.VkVideoPictureResourceInfoKHR
All Implemented Interfaces:
IPointer, IVkVideoPictureResourceInfoKHR

@ValueBasedCandidate @UnsafeConstructor public record VkVideoPictureResourceInfoKHR(@NotNull MemorySegment segment) extends Record implements IVkVideoPictureResourceInfoKHR

Represents a pointer to a VkVideoPictureResourceInfoKHR structure in native memory.

Structure

typedef struct VkVideoPictureResourceInfoKHR {
    VkStructureType sType;
    void const* pNext; // optional
    VkOffset2D codedOffset;
    VkExtent2D codedExtent;
    uint32_t baseArrayLayer;
    VkImageView imageViewBinding;
} VkVideoPictureResourceInfoKHR;

Auto initialization

This structure has the following members that can be automatically initialized:

  • sType = VK_STRUCTURE_TYPE_VIDEO_PICTURE_RESOURCE_INFO_KHR

The allocate (allocate(Arena), allocate(Arena, long)) functions will automatically initialize these fields. Also, you may call autoInit() to initialize these fields manually for non-allocated instances.

Contracts

The property segment() should always be not-null (segment != NULL && !segment.equals(MemorySegment.NULL)), and properly aligned to LAYOUT.byteAlignment() bytes. To represent null pointer, you may use a Java null instead. See the documentation of IPointer.segment() for more details.

The constructor of this class is marked as UnsafeConstructor, because it does not perform any runtime check. The constructor can be useful for automatic code generators.

See Also:
  • Field Details

    • LAYOUT

      public static final StructLayout LAYOUT
    • BYTES

      public static final long BYTES
    • PATH$sType

      public static final MemoryLayout.PathElement PATH$sType
    • PATH$pNext

      public static final MemoryLayout.PathElement PATH$pNext
    • PATH$codedOffset

      public static final MemoryLayout.PathElement PATH$codedOffset
    • PATH$codedExtent

      public static final MemoryLayout.PathElement PATH$codedExtent
    • PATH$baseArrayLayer

      public static final MemoryLayout.PathElement PATH$baseArrayLayer
    • PATH$imageViewBinding

      public static final MemoryLayout.PathElement PATH$imageViewBinding
    • LAYOUT$sType

      public static final ValueLayout.OfInt LAYOUT$sType
    • LAYOUT$pNext

      public static final AddressLayout LAYOUT$pNext
    • LAYOUT$codedOffset

      public static final StructLayout LAYOUT$codedOffset
    • LAYOUT$codedExtent

      public static final StructLayout LAYOUT$codedExtent
    • LAYOUT$baseArrayLayer

      public static final ValueLayout.OfInt LAYOUT$baseArrayLayer
    • LAYOUT$imageViewBinding

      public static final AddressLayout LAYOUT$imageViewBinding
    • SIZE$sType

      public static final long SIZE$sType
    • SIZE$pNext

      public static final long SIZE$pNext
    • SIZE$codedOffset

      public static final long SIZE$codedOffset
    • SIZE$codedExtent

      public static final long SIZE$codedExtent
    • SIZE$baseArrayLayer

      public static final long SIZE$baseArrayLayer
    • SIZE$imageViewBinding

      public static final long SIZE$imageViewBinding
    • OFFSET$sType

      public static final long OFFSET$sType
    • OFFSET$pNext

      public static final long OFFSET$pNext
    • OFFSET$codedOffset

      public static final long OFFSET$codedOffset
    • OFFSET$codedExtent

      public static final long OFFSET$codedExtent
    • OFFSET$baseArrayLayer

      public static final long OFFSET$baseArrayLayer
    • OFFSET$imageViewBinding

      public static final long OFFSET$imageViewBinding
  • Constructor Details

    • VkVideoPictureResourceInfoKHR

      public VkVideoPictureResourceInfoKHR(@NotNull @NotNull MemorySegment segment)
      Creates an instance of a VkVideoPictureResourceInfoKHR record class.
      Parameters:
      segment - the value for the segment record component
  • Method Details