• Advertisement
Sign in to follow this  

[SlimDX] VertexBuffer,IndexBuffer GetData,SetData

This topic is 2624 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I was trying to implement GetData,SetData for VertexBuffer and IndexBuffer like XNA does with them,but with no success.

Anyone knows how would those methods look with SlimDX Locking and DataStream

public void GetData<T>(int offsetInBytes, T[] data, int startIndex, int elementCount, int vertexStride)

public void SetData<T>(int offsetInBytes, T[] data, int startIndex, int elementCount, int vertexStride)

For index buffer may i be right, but if anyone knows this too would gladly share it with me.

public void GetData<T>(int offsetInBytes, T[] data, int startIndex, int elementCount) where T: struct
public void SetData<T>(int offsetInBytes, T[] data, int startIndex, int elementCount) where T: struct

Thanks.



Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement