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);
		}
示例#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);
 }