Record Class VulkanPNextStruct

java.lang.Object
java.lang.Record
com.mojang.renderpearl.backend.vulkan.init.VulkanPNextStruct

public record VulkanPNextStruct(Class<?> pNextStructClass, int sType, int structSize) extends Record
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final int
     
    private static final int
     
    private final Class<?>
    The field for the pNextStructClass record component.
    private final int
    The field for the structSize record component.
    private final int
    The field for the sType record component.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
     
    VulkanPNextStruct(Class<?> pNextStructClass, int sType, int structSize)
    Creates an instance of a VulkanPNextStruct record class.
     <T extends org.lwjgl.system.Struct<?>>
    VulkanPNextStruct(Class<T> pNextStructClass)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    long
     
    long
    findOrCreateStructInPNextChain(long pNextChain, org.lwjgl.system.MemoryStack stack)
     
    long
    findOrCreateStructInPNextChain(org.lwjgl.vulkan.VkPhysicalDeviceFeatures2 features2, org.lwjgl.system.MemoryStack stack)
     
    long
    findOrCreateStructInPNextChain(org.lwjgl.vulkan.VkPhysicalDeviceProperties2 properties2, org.lwjgl.system.MemoryStack stack)
     
    long
    findStructInPNextChain(long pNextChain)
     
    private static long
    findStructInPNextChain(long pNextChain, int sType)
     
    final int
    Returns a hash code value for this object.
    private static long
    pNext(long pointer)
     
    private static void
    pNext(long pointer, long value)
     
    Returns the value of the pNextStructClass record component.
    int
    Returns the value of the structSize record component.
    int
    Returns the value of the sType record component.
    private static int
    sType(long pointer)
     
    private static void
    sType(long pointer, int value)
     
    Returns a string representation of this record class.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • pNextStructClass

      private final Class<?> pNextStructClass
      The field for the pNextStructClass record component.
    • sType

      private final int sType
      The field for the sType record component.
    • structSize

      private final int structSize
      The field for the structSize record component.
    • OFFSET_PNEXT

      private static final int OFFSET_PNEXT
    • OFFSET_STYPE

      private static final int OFFSET_STYPE
  • Constructor Details

    • VulkanPNextStruct

      public <T extends org.lwjgl.system.Struct<?>> VulkanPNextStruct(Class<T> pNextStructClass)
    • VulkanPNextStruct

      public VulkanPNextStruct(Class<?> pNextStructClass, int sType, int structSize)
      Creates an instance of a VulkanPNextStruct record class.
      Parameters:
      pNextStructClass - the value for the pNextStructClass record component
      sType - the value for the sType record component
      structSize - the value for the structSize record component
  • Method Details

    • pNext

      private static long pNext(long pointer)
    • pNext

      private static void pNext(long pointer, long value)
    • sType

      private static int sType(long pointer)
    • sType

      private static void sType(long pointer, int value)
    • fieldOffset

      public long fieldOffset(String name)
    • findOrCreateStructInPNextChain

      public long findOrCreateStructInPNextChain(org.lwjgl.vulkan.VkPhysicalDeviceProperties2 properties2, org.lwjgl.system.MemoryStack stack)
    • findOrCreateStructInPNextChain

      public long findOrCreateStructInPNextChain(org.lwjgl.vulkan.VkPhysicalDeviceFeatures2 features2, org.lwjgl.system.MemoryStack stack)
    • findOrCreateStructInPNextChain

      public long findOrCreateStructInPNextChain(long pNextChain, org.lwjgl.system.MemoryStack stack)
    • findStructInPNextChain

      public long findStructInPNextChain(long pNextChain)
    • findStructInPNextChain

      private static long findStructInPNextChain(long pNextChain, int sType)
    • toString

      public String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • pNextStructClass

      public Class<?> pNextStructClass()
      Returns the value of the pNextStructClass record component.
      Returns:
      the value of the pNextStructClass record component
    • sType

      public int sType()
      Returns the value of the sType record component.
      Returns:
      the value of the sType record component
    • structSize

      public int structSize()
      Returns the value of the structSize record component.
      Returns:
      the value of the structSize record component