Class VertexAttributeUtility
Vertex attribute utility functions.
Inheritance
System.Object
VertexAttributeUtility
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ProjectDawn.Geometry3D
Assembly: ProjectDawn.Geometry.dll
Syntax
public static class VertexAttributeUtility
Methods
| Improve this Doc View SourceContainsFlag(VertexAttributes, VertexAttributes)
Returns true if contains flag.
Declaration
public static bool ContainsFlag(this VertexAttributes flags, VertexAttributes flag)
Parameters
| Type | Name | Description |
|---|---|---|
| VertexAttributes | flags | |
| VertexAttributes | flag |
Returns
| Type | Description |
|---|---|
| System.Boolean |
SizeOf(VertexAttributeFormat)
Returns size in bytes of vertex attribute format.
Declaration
public static int SizeOf(this VertexAttributeFormat attribute)
Parameters
| Type | Name | Description |
|---|---|---|
| UnityEngine.Rendering.VertexAttributeFormat | attribute |
Returns
| Type | Description |
|---|---|
| System.Int32 |
ToFlag(VertexAttribute)
Converts vertex attribute to flag.
Declaration
public static VertexAttributes ToFlag(this VertexAttribute attribute)
Parameters
| Type | Name | Description |
|---|---|---|
| UnityEngine.Rendering.VertexAttribute | attribute |
Returns
| Type | Description |
|---|---|
| VertexAttributes |