/// <summary> /// Constructs a new MaterialVertexInputElement /// </summary> public VertexInputElement( string name, VertexSemanticType semanticType, VertexElementFormat format, VertexElementInputClass inputClass, int stepRate) { Name = name; SemanticType = semanticType; ElementFormat = format; SizeInBytes = GetSizeInBytes(format); StorageClassifier = inputClass; InstanceStepRate = stepRate; }
public static InputClassification VeldridToD3DVertexElementInputClass(VertexElementInputClass inputClass) { switch (inputClass) { case VertexElementInputClass.PerVertex: return(InputClassification.PerVertexData); case VertexElementInputClass.PerInstance: return(InputClassification.PerInstanceData); default: throw Illegal.Value <VertexElementInputClass>(); } }