Record Class VulkanPNextStruct

java.lang.Object
java.lang.Record
com.mojang.blaze3d.vulkan.init.VulkanPNextStruct

public record VulkanPNextStruct(int sType, int structSize) extends Record
  • Field Details

    • sType

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

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

    • VulkanPNextStruct

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

    • findOrCreateStructInPNextChain

      public long findOrCreateStructInPNextChain(VkPhysicalDeviceProperties2 properties2, MemoryStack stack)
    • findOrCreateStructInPNextChain

      public long findOrCreateStructInPNextChain(VkPhysicalDeviceFeatures2 features2, MemoryStack stack)
    • findOrCreateStructInPNextChain

      public long findOrCreateStructInPNextChain(long pNextChain, MemoryStack stack)
    • findStructInPNextChain

      public long findStructInPNextChain(long pNextChain)
    • findStructInPNextChain

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

      public final 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. All components in this record class 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.
    • 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