Jump to content
  • Advertisement
Valdiralita

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 this post


Link to post
Share on other sites
Advertisement
Posted (edited)
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 this post


Link to post
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.

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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!