Record Class BackendRenderPipeline.CreateInfo

java.lang.Object
java.lang.Record
com.mojang.renderpearl.backend.api.BackendRenderPipeline.CreateInfo
Enclosing interface:
BackendRenderPipeline

public static record BackendRenderPipeline.CreateInfo(String name, List<BackendRenderPipeline.CreateInfo.Shader> shaders, List<BackendRenderPipeline.CreateInfo.VertexBuffer> vertexBuffers, List<BackendRenderPipeline.CreateInfo.AttribBinding> attribBindings, List<BindGroupLayout.UniformDescription> uniforms, int pushConstantsSize, @Nullable DepthStencilState depthStencilState, PolygonMode polygonMode, boolean cull, List<@Nullable ColorTargetState> colorTargetStates, PrimitiveTopology primitiveTopology) extends Record
  • Field Details

  • Constructor Details

  • Method Details

    • 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
    • shaders

      Returns the value of the shaders record component.
      Returns:
      the value of the shaders record component
    • vertexBuffers

      Returns the value of the vertexBuffers record component.
      Returns:
      the value of the vertexBuffers record component
    • attribBindings

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

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

      public int pushConstantsSize()
      Returns the value of the pushConstantsSize record component.
      Returns:
      the value of the pushConstantsSize record component
    • depthStencilState

      public @Nullable DepthStencilState depthStencilState()
      Returns the value of the depthStencilState record component.
      Returns:
      the value of the depthStencilState record component
    • polygonMode

      public PolygonMode polygonMode()
      Returns the value of the polygonMode record component.
      Returns:
      the value of the polygonMode record component
    • cull

      public boolean cull()
      Returns the value of the cull record component.
      Returns:
      the value of the cull record component
    • colorTargetStates

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

      public PrimitiveTopology primitiveTopology()
      Returns the value of the primitiveTopology record component.
      Returns:
      the value of the primitiveTopology record component