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);
		}
Esempio n. 2
0
 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);
 }