Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    SimpleExtensions Class

    Namespace: Stride.Extensions
    Assembly: Stride.Rendering.dll
    System.Object → SimpleExtensions
    Derived from SimpleExtensions:

    public static class SimpleExtensions
    Name Description
    Methods
    IsSimple(IndexBufferBinding)

    Determines whether the specified index buffer binding data is simple. A index buffer binding data is simple if:

    • Offset is 0.
    • Is32Bit is true.
    • Buffer.Content.Length is equal to sizeof(int) * Count.
    IsSimple(VertexBufferBinding)

    Determines whether the specified vertex buffer binding data is simple. A vertex buffer binding data is simple if:

    • Offset is 0.
    • Stride is 0 (automatic), or equals to Declaration.VertexStride.
    • Buffer.Content.Length is equal to Declaration.VertexStride * Count
    IsSimple(MeshDraw)

    Determines whether the specified mesh draw data is simple. A is simple if:

    • It contains only one , which must be simple.
    • It contains either no , or a simple one.
    • StartLocation is 0.
    • DrawCount is IndexBuffer.Count if there is an index buffer, otherwise VertexBuffers[0].Count.
    | Improve this Doc View Source

    Methods


    IsSimple(IndexBufferBinding)

    Determines whether the specified index buffer binding data is simple. A index buffer binding data is simple if:

    • Offset is 0.
    • Is32Bit is true.
    • Buffer.Content.Length is equal to sizeof(int) * Count.
    public static bool IsSimple(this IndexBufferBinding indexBufferBindingData)
    Parameters
    Type Name Description
    IndexBufferBinding indexBufferBindingData

    The index buffer binding data.

    Returns
    Type Description
    System.Boolean

    IsSimple(VertexBufferBinding)

    Determines whether the specified vertex buffer binding data is simple. A vertex buffer binding data is simple if:

    • Offset is 0.
    • Stride is 0 (automatic), or equals to Declaration.VertexStride.
    • Buffer.Content.Length is equal to Declaration.VertexStride * Count
    public static bool IsSimple(this VertexBufferBinding vertexBufferBindingData)
    Parameters
    Type Name Description
    VertexBufferBinding vertexBufferBindingData

    The vertex buffer binding data.

    Returns
    Type Description
    System.Boolean

    IsSimple(MeshDraw)

    Determines whether the specified mesh draw data is simple. A is simple if:

    • It contains only one , which must be simple.
    • It contains either no , or a simple one.
    • StartLocation is 0.
    • DrawCount is IndexBuffer.Count if there is an index buffer, otherwise VertexBuffers[0].Count.
    public static bool IsSimple(this MeshDraw meshDrawData)
    Parameters
    Type Name Description
    MeshDraw meshDrawData

    The mesh draw data.

    Returns
    Type Description
    System.Boolean

    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation