This project is read-only.

SwapTextureSet problem

Jul 15, 2015 at 11:35 AM
Hello, im testing your OculusWrap, when im applying the Demo, i have to find SwapTextureSet.cs which i don't have. after canceling that, Visual says that:

result = hmd.CreateSwapTextureSetD3D11(device.NativePointer, ref swapTextureDescriptionD3D11, out eyeTexture.SwapTextureSet);
            WriteErrorDetails(oculus, result, "Failed to create swap texture set.");
has null value and i cannot fix it, can you help me?
Jul 15, 2015 at 3:23 PM
Hi Kaelis,

Can you tell me if the device variable has a non-null value, and if the device.NativePointer has a non zero value, when the hmd.CreateSwapTextureSetD3D11 is being called?
Jul 17, 2015 at 8:05 AM

Well, i dont know what i've done, but after restarting computer when i start debugging the demo it works, but after a few seconds the game stops, and there is a problem in this code:
swapChain.Present(0, PresentFlags.None);
and i cant move in the game
Jul 20, 2015 at 12:36 PM

this is what happend when this demo start to work, but after a second it crashes...
Jul 21, 2015 at 9:32 AM
It looks to me like a DirectX problem, but unfortunately I can't tell you how to solve it.
The Oculus SDK injects itself into DirectX, so it might be caused by the Oculus runtime.

I would recommend that you try to look for help on the Oculus SDK forums (, someone there might have experienced a similar problem with DirectX, using the Oculus SDK.
Marked as answer by MortInfinite on 8/19/2015 at 8:57 AM