DX11 WARP Device fails to create Buffer

Recommended Posts

Hey everyone!

When I change my driver type to WARP I'm seeing D3D11: Removing Device. when creating the following buffers:

var bufDesc = new BufferDescription
{
Usage = ResourceUsage.Dynamic,
SizeInBytes = Matrix.SizeInBytes * elementSize, // elementSize is 8 in this case
BindFlags = BindFlags.VertexBuffer,
CpuAccessFlags = CpuAccessFlags.Write,
OptionFlags = ResourceOptionFlags.None,
StructureByteStride = Matrix.SizeInBytes
};

new Buffer(device, bufDesc);

D3D11: Removing Device.

HRESULT: [0x887A0005], Module: [SharpDX.DXGI], ApiCode: [DXGI_ERROR_DEVICE_REMOVED/DeviceRemoved],

What restrictions apply when using the WARP driver type? From my researches it should not make any difference. Am I missing something?

Share on other sites

Vertex buffers can't have a StructureByteStride: that field is only used for UAV buffers. Set it to 0.

Share on other sites
18 hours ago, SoldierOfLight said:

Vertex buffers can't have a StructureByteStride: that field is only used for UAV buffers. Set it to 0.

Okay, i changed that and unfortunately it changed nothing and it has no effect on rendering with the hardware device.

Edited by Valdiralita

Share on other sites

Ok, so I tested a bit more and the same happens when switching to the reference device, so apparently only drivers save me. The debug layer doesn't give any helpful informations and Calling GetDeviceRemovedReason just returns 0x887A0005 DXGI_ERROR_DEVICE_REMOVED.

Create an account

Register a new account

• 32
• 12
• 15
• 15
• 25