Record Class FrontendRenderPipeline

java.lang.Object
java.lang.Record
com.mojang.renderpearl.frontend.FrontendRenderPipeline
All Implemented Interfaces:
CompiledRenderPipeline, UncheckedAutoCloseable, AutoCloseable

public record FrontendRenderPipeline(String name, BackendRenderPipeline backendRenderPipeline, List<@Nullable VertexFormat> vertexFormats, it.unimi.dsi.fastutil.objects.Object2IntMap<String> uniformIndices, List<BindGroupLayout.UniformDescription> uniforms, List<@Nullable ColorTargetState> colorTargetStates, boolean wantsDepthTexture, int pushConstantSize) extends Record implements CompiledRenderPipeline
  • Field Details

    • name

      private final String name
      The field for the name record component.
    • backendRenderPipeline

      private final BackendRenderPipeline backendRenderPipeline
      The field for the backendRenderPipeline record component.
    • vertexFormats

      private final List<@Nullable VertexFormat> vertexFormats
      The field for the vertexFormats record component.
    • uniformIndices

      private final it.unimi.dsi.fastutil.objects.Object2IntMap<String> uniformIndices
      The field for the uniformIndices record component.
    • uniforms

      private final List<BindGroupLayout.UniformDescription> uniforms
      The field for the uniforms record component.
    • colorTargetStates

      private final List<@Nullable ColorTargetState> colorTargetStates
      The field for the colorTargetStates record component.
    • wantsDepthTexture

      private final boolean wantsDepthTexture
      The field for the wantsDepthTexture record component.
    • pushConstantSize

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

    • FrontendRenderPipeline

      public FrontendRenderPipeline(String name, BackendRenderPipeline backendRenderPipeline, List<@Nullable VertexFormat> vertexFormats, it.unimi.dsi.fastutil.objects.Object2IntMap<String> uniformIndices, List<BindGroupLayout.UniformDescription> uniforms, List<@Nullable ColorTargetState> colorTargetStates, boolean wantsDepthTexture, int pushConstantSize)
      Creates an instance of a FrontendRenderPipeline record class.
      Parameters:
      name - the value for the name record component
      backendRenderPipeline - the value for the backendRenderPipeline record component
      vertexFormats - the value for the vertexFormats record component
      uniformIndices - the value for the uniformIndices record component
      uniforms - the value for the uniforms record component
      colorTargetStates - the value for the colorTargetStates record component
      wantsDepthTexture - the value for the wantsDepthTexture record component
      pushConstantSize - the value for the pushConstantSize record component
  • Method Details

    • isClosed

      public boolean isClosed()
      Specified by:
      isClosed in interface CompiledRenderPipeline
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface UncheckedAutoCloseable
    • 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. 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.
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • backendRenderPipeline

      public BackendRenderPipeline backendRenderPipeline()
      Returns the value of the backendRenderPipeline record component.
      Returns:
      the value of the backendRenderPipeline record component
    • vertexFormats

      public List<@Nullable VertexFormat> vertexFormats()
      Returns the value of the vertexFormats record component.
      Returns:
      the value of the vertexFormats record component
    • uniformIndices

      public it.unimi.dsi.fastutil.objects.Object2IntMap<String> uniformIndices()
      Returns the value of the uniformIndices record component.
      Returns:
      the value of the uniformIndices record component
    • uniforms

      Returns the value of the uniforms record component.
      Returns:
      the value of the uniforms record component
    • colorTargetStates

      public List<@Nullable ColorTargetState> colorTargetStates()
      Returns the value of the colorTargetStates record component.
      Returns:
      the value of the colorTargetStates record component
    • wantsDepthTexture

      public boolean wantsDepthTexture()
      Returns the value of the wantsDepthTexture record component.
      Returns:
      the value of the wantsDepthTexture record component
    • pushConstantSize

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