Record Class WgpuBindings.RenderPipelineDescriptor

java.lang.Object
java.lang.Record
dev.engine.graphics.webgpu.WgpuBindings.RenderPipelineDescriptor
Enclosing interface:
WgpuBindings

public static record WgpuBindings.RenderPipelineDescriptor(long pipelineLayout, long vertexModule, String vertexEntryPoint, long fragmentModule, String fragmentEntryPoint, WgpuBindings.VertexBufferLayoutDesc vertexBufferLayout, int topology, int frontFace, int cullMode, int depthStencilFormat, int depthWriteEnabled, int depthCompare, int stencilReadMask, int stencilWriteMask, WgpuBindings.StencilFaceState stencilFront, WgpuBindings.StencilFaceState stencilBack, int colorTargetFormat, int blendColorSrcFactor, int blendColorDstFactor, int blendColorOperation, int blendAlphaSrcFactor, int blendAlphaDstFactor, int blendAlphaOperation) extends Record
Describes a render pipeline.
  • Constructor Details

    • RenderPipelineDescriptor

      public RenderPipelineDescriptor(long pipelineLayout, long vertexModule, String vertexEntryPoint, long fragmentModule, String fragmentEntryPoint, WgpuBindings.VertexBufferLayoutDesc vertexBufferLayout, int topology, int frontFace, int cullMode, int depthStencilFormat, int depthWriteEnabled, int depthCompare, int stencilReadMask, int stencilWriteMask, WgpuBindings.StencilFaceState stencilFront, WgpuBindings.StencilFaceState stencilBack, int colorTargetFormat, int blendColorSrcFactor, int blendColorDstFactor, int blendColorOperation, int blendAlphaSrcFactor, int blendAlphaDstFactor, int blendAlphaOperation)
      Creates an instance of a RenderPipelineDescriptor record class.
      Parameters:
      pipelineLayout - the value for the pipelineLayout record component
      vertexModule - the value for the vertexModule record component
      vertexEntryPoint - the value for the vertexEntryPoint record component
      fragmentModule - the value for the fragmentModule record component
      fragmentEntryPoint - the value for the fragmentEntryPoint record component
      vertexBufferLayout - the value for the vertexBufferLayout record component
      topology - the value for the topology record component
      frontFace - the value for the frontFace record component
      cullMode - the value for the cullMode record component
      depthStencilFormat - the value for the depthStencilFormat record component
      depthWriteEnabled - the value for the depthWriteEnabled record component
      depthCompare - the value for the depthCompare record component
      stencilReadMask - the value for the stencilReadMask record component
      stencilWriteMask - the value for the stencilWriteMask record component
      stencilFront - the value for the stencilFront record component
      stencilBack - the value for the stencilBack record component
      colorTargetFormat - the value for the colorTargetFormat record component
      blendColorSrcFactor - the value for the blendColorSrcFactor record component
      blendColorDstFactor - the value for the blendColorDstFactor record component
      blendColorOperation - the value for the blendColorOperation record component
      blendAlphaSrcFactor - the value for the blendAlphaSrcFactor record component
      blendAlphaDstFactor - the value for the blendAlphaDstFactor record component
      blendAlphaOperation - the value for the blendAlphaOperation record component
  • 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.
    • pipelineLayout

      public long pipelineLayout()
      Returns the value of the pipelineLayout record component.
      Returns:
      the value of the pipelineLayout record component
    • vertexModule

      public long vertexModule()
      Returns the value of the vertexModule record component.
      Returns:
      the value of the vertexModule record component
    • vertexEntryPoint

      public String vertexEntryPoint()
      Returns the value of the vertexEntryPoint record component.
      Returns:
      the value of the vertexEntryPoint record component
    • fragmentModule

      public long fragmentModule()
      Returns the value of the fragmentModule record component.
      Returns:
      the value of the fragmentModule record component
    • fragmentEntryPoint

      public String fragmentEntryPoint()
      Returns the value of the fragmentEntryPoint record component.
      Returns:
      the value of the fragmentEntryPoint record component
    • vertexBufferLayout

      public WgpuBindings.VertexBufferLayoutDesc vertexBufferLayout()
      Returns the value of the vertexBufferLayout record component.
      Returns:
      the value of the vertexBufferLayout record component
    • topology

      public int topology()
      Returns the value of the topology record component.
      Returns:
      the value of the topology record component
    • frontFace

      public int frontFace()
      Returns the value of the frontFace record component.
      Returns:
      the value of the frontFace record component
    • cullMode

      public int cullMode()
      Returns the value of the cullMode record component.
      Returns:
      the value of the cullMode record component
    • depthStencilFormat

      public int depthStencilFormat()
      Returns the value of the depthStencilFormat record component.
      Returns:
      the value of the depthStencilFormat record component
    • depthWriteEnabled

      public int depthWriteEnabled()
      Returns the value of the depthWriteEnabled record component.
      Returns:
      the value of the depthWriteEnabled record component
    • depthCompare

      public int depthCompare()
      Returns the value of the depthCompare record component.
      Returns:
      the value of the depthCompare record component
    • stencilReadMask

      public int stencilReadMask()
      Returns the value of the stencilReadMask record component.
      Returns:
      the value of the stencilReadMask record component
    • stencilWriteMask

      public int stencilWriteMask()
      Returns the value of the stencilWriteMask record component.
      Returns:
      the value of the stencilWriteMask record component
    • stencilFront

      public WgpuBindings.StencilFaceState stencilFront()
      Returns the value of the stencilFront record component.
      Returns:
      the value of the stencilFront record component
    • stencilBack

      public WgpuBindings.StencilFaceState stencilBack()
      Returns the value of the stencilBack record component.
      Returns:
      the value of the stencilBack record component
    • colorTargetFormat

      public int colorTargetFormat()
      Returns the value of the colorTargetFormat record component.
      Returns:
      the value of the colorTargetFormat record component
    • blendColorSrcFactor

      public int blendColorSrcFactor()
      Returns the value of the blendColorSrcFactor record component.
      Returns:
      the value of the blendColorSrcFactor record component
    • blendColorDstFactor

      public int blendColorDstFactor()
      Returns the value of the blendColorDstFactor record component.
      Returns:
      the value of the blendColorDstFactor record component
    • blendColorOperation

      public int blendColorOperation()
      Returns the value of the blendColorOperation record component.
      Returns:
      the value of the blendColorOperation record component
    • blendAlphaSrcFactor

      public int blendAlphaSrcFactor()
      Returns the value of the blendAlphaSrcFactor record component.
      Returns:
      the value of the blendAlphaSrcFactor record component
    • blendAlphaDstFactor

      public int blendAlphaDstFactor()
      Returns the value of the blendAlphaDstFactor record component.
      Returns:
      the value of the blendAlphaDstFactor record component
    • blendAlphaOperation

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