public void SetPatchArray(uint patchCount, ElementBufferObject bufferObject, uint offset, uint count) { if (patchCount < 3) { throw new ArgumentException("invalid", "patchCount"); } if (_PatchElement != null) { throw new InvalidOperationException("only one patch element is supported"); } _PatchElement = new PatchAttributeElement(patchCount, bufferObject, offset, count); }
public void SetPatchArray(uint patchCount) { if (patchCount < 3) throw new ArgumentException("invalid", "patchCount"); if (_PatchElement != null) throw new InvalidOperationException("only one patch element is supported"); _PatchElement = new PatchAttributeElement(patchCount); }