Sign in to follow this  
amerkoleci

[SlimDX] VertexBuffer,IndexBuffer GetData,SetData

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this