コード例 #1
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);
		}
コード例 #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);
 }
コード例 #3
0
		public void GetIndexBuffer(out Buffer indexBuffer, out Format format, out int offset)
		{
			indexBuffer = _indexBufferBinding.Buffer;
			format = _indexBufferBinding.Format;
			offset = _indexBufferBinding.Offset;
		}
コード例 #4
0
 public void GetIndexBuffer(out Buffer indexBuffer, out Format format, out int offset)
 {
     indexBuffer = _indexBufferBinding.Buffer;
     format      = _indexBufferBinding.Format;
     offset      = _indexBufferBinding.Offset;
 }