public void SetIndexBuffer(Buffer indexBuffer, Format format, int offset) { DiagnosticUtilities.RaiseEvent(this, SettingIndexBuffer, DiagnosticUtilities.GetID(indexBuffer), format, offset); if (format != Format.R16_UInt && format != Format.R32_UInt) throw new ArgumentOutOfRangeException("format"); _indexBufferBinding = new IndexBufferBinding(indexBuffer, format, offset); }
public void SetIndexBuffer(Buffer indexBuffer, Format format, int offset) { DiagnosticUtilities.RaiseEvent(this, SettingIndexBuffer, DiagnosticUtilities.GetID(indexBuffer), format, offset); if (format != Format.R16_UInt && format != Format.R32_UInt) { throw new ArgumentOutOfRangeException("format"); } _indexBufferBinding = new IndexBufferBinding(indexBuffer, format, offset); }
public void GetIndexBuffer(out Buffer indexBuffer, out Format format, out int offset) { indexBuffer = _indexBufferBinding.Buffer; format = _indexBufferBinding.Format; offset = _indexBufferBinding.Offset; }