Function createRenderPassDescriptor

  • This function creates the render pass descriptor that will be used to create a render pass with various options. The returned desciptor will include a depth-stencil attachment if the depth texture view is provided via the input interface IRenderPassInput. Otherwise, the depth stencil attachment will not be defined. The argument withColorAttachment indicates whether the descriptor should contain color attachments or not. In addition, you can specify the MSAA count parameter.

    Parameters

    • input: IRenderPassInput

      The type of interface IRenderPassInput

    • withColorAttachment: boolean = true

      Indicates whether the descriptor should contain color attachments or not

    Returns GPURenderPassDescriptor

Generated using TypeDoc