Advertisement

WARP Device fails to create Buffer

Started by May 14, 2019 11:47 AM
3 comments, last by Valdiralita 5 years, 8 months ago

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?

 

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

Advertisement
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.

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.

This topic is closed to new replies.

Advertisement