Hello
I just read a Dx11 Book to understand the API, i would translate it to C#/SharpDX.
But the Book describes the way to create a VertexBuffer like:
first the Description:
desc.ByteWidth = size;
desc.MiscFlags = 0;
desc.StructureByteStride = 0;
So in SharpDX i don't have MiscFlags and ByteWidth ....
next, create the Buffer:
HRESULT hr = g_pDevice->CreateBuffer( &desc, pData, &pBuffer );
in SharpDX MiniCube Demo the way to create a Buffer:
var vertices = Buffer.Create(device, BindFlags.VertexBuffer, new[]{......});
Here is a difference with C++D3D and Sharpdx..
Or to create DeviceContext/SwapChain.
C++:
D3DllCreateDeviceAndSwapChain
and SharpDX:
Device.CreateWithSwapChain
I thought SharpDX and C++ D3D are similar, why are the difference?
So now my question is: When i reading this book how i find die right SharpDX Commands to recreate in SharpDX?
Sorry for my english i hope you understand what i mean and can give me a answer..
alex