SimpleExtensions Class
Namespace: Stride.ExtensionsAssembly: 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:
|
|
IsSimple(VertexBufferBinding) | Determines whether the specified vertex buffer binding data is simple. A vertex buffer binding data is simple if:
|
|
IsSimple(MeshDraw) | Determines whether the specified mesh draw data is simple.
A
|
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
- 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 |