Questions tagged [sharpdx]

SharpDX is an open-source project delivering the full DirectX API under the .Net platform, allowing the development of applications with high performance 2D and 3D graphics rendering as well as real-time sound.

SharpDX is an open-source project delivering the full DirectX API under the .Net platform, allowing the development of applications with high performance 2D and 3D graphics rendering as well as real-time sound.

For more information, see http://sharpdx.org/

656 questions
2
votes
0 answers

SharpDX Does Texture.FromMemory require that that the memory location not be changed after the texture is created?

So I was having memory address space issues using bitmaps (or so I think based on my reading), and so I wanted to use one memorystream for the largest size image and just reuse it when creating all the textures I need. However, upon completing the…
James Joshua Street
  • 3,259
  • 10
  • 42
  • 80
2
votes
1 answer

getting "The requested resource is in use" when using sharpDX

Here my code sample directInput = new DirectInput();// Initialize DirectInput deviceGuid = Guid.Empty;// Find a Joystick Guid foreach (DeviceInstance deviceInstance in directInput.GetDevices(DeviceType.Gamepad,…
user2144480
  • 1,083
  • 7
  • 11
2
votes
2 answers

How do I call Trim with SharpDX?

My windows 8 app is failing the Certification test: The app should call the Trim API on its IDXGIDevice3 interface anytime it is about to be suspended. The link takes me to a C++ page, but I'm using SharpDX. I can only find one example of this…
Stephen Price
  • 1,629
  • 1
  • 24
  • 42
2
votes
1 answer

Saving a Texture2D using SharpDX when targeting Win8.1 + Metro?

I'm trying to save a user-generated Texture2D to disk, but it looks like the standard ways of accomplishing this aren't available when targeting DirectX11.1 / Win8.1 / Metro. ToStream/FromStream are absent, and the DX11 methods for writing a texture…
Gabriel Isenberg
  • 25,869
  • 4
  • 37
  • 58
2
votes
1 answer

SurfaceImageSource and IDXGISurface BackBuffer size mismatch

I’m running into an odd problem where the IDXGISurface BackBuffer description doesn’t match the size of the SurfaceImageSource that created it. I can’t find any documentation on why this would be the case, but I’m seeing subtle variances (eg:…
Gabriel Isenberg
  • 25,869
  • 4
  • 37
  • 58
2
votes
1 answer

Could not load file or assembly SharpDX

I use easyhook and SharpDX to get fps data from a DirectX game. Sometimes it works. However, when I start it next time (maybe just some minutes later), it throws the exception System.IO.FileNotFoundException: Could not load file or assembly SharpDX.…
2
votes
2 answers

Loading a texture from file post DX11.1?

In 11.1 and later Microsoft removed a lot of helpers for loading textures (fromfile, fromstream etc). I'm trying to port my code over to 11.2 and everything works fine except for this line : var texture = Texture2D.FromFile(device,…
Ronan Thibaudau
  • 3,413
  • 3
  • 29
  • 78
2
votes
1 answer

Displaying camera preview using DirectX Texture2D causes oscillation on Windows Phone 8

I am currently writing a small app which shows the preview from the phone camera using a SharpDX sprite batch. For those who have an nokia developer account, the code is mainly from this article. Problem Occasionally, it seems like previous frames…
Emiswelt
  • 3,909
  • 1
  • 38
  • 56
2
votes
2 answers

SharpDX fixed time step issue

I'm using SharpDX 2.5.0 and I have a game class, and I try to disable the fixed time step, however it doesn't seem to work, I still get 59-60 FPS. I'm only drawing a utah teapot, so I'm pretty sure it must work with a lot more (like 1000) FPS. Here…
Muad'Dib
  • 47
  • 7
2
votes
1 answer

SharpDx windowResize

I'm trying to implement an update to the backbuffer as soon as my window size has been changed. So my Objects wont get streched. So I tried this _renderForm.Resize += OnRenderFormOnResize; private void OnRenderFormOnResize(object sender, EventArgs…
Rey
  • 85
  • 1
  • 9
2
votes
0 answers

sharpdx tkfxc.exe generates .tkb file when .tkfxo expected

I'm facing a problem and I couldn't find any documentation at all. Also I downloaded the github sharpdx solution but I didn't found an answer. When I'm executing tkfxc.exe in net40 directory, the .fx effect compiles successfully but as I read on…
Ivan
  • 21
  • 4
2
votes
1 answer

Encode from WAV to AAC and to decode from AAC to WAV using SharpDX

I want to encode an audio stream, which is in the WAV format, to the AAC format and also decode an AAC audio stream to WAV. Can I implement this with SharpDX's MediaFoundation DLL? Then how can I use that?
Tinoy Jameson
  • 403
  • 2
  • 7
  • 17
2
votes
1 answer

Direct3D 10 Hardware Instancing using Structured Buffers

I am trying to implement hardware instancing with Direct3D 10+ using Structured Buffers for the per instance data but I've not used them before. I understand how to implement instancing when combining the per vertex and per instance data into a…
gareththegeek
  • 2,362
  • 22
  • 34
2
votes
2 answers

Difference between XNA, DirectX and Monogame, SharpDX

I have been learning C# for a time now. I basically come from a non-developing background (means I dont know the actual working of different programming tools). I just started learning Monogame but few things confused me. Firstly it says that…
Temp Id
  • 387
  • 3
  • 9
  • 15
2
votes
1 answer

SharpDx get Shader variable Names of Texture2D,SamplerState

I'm wondering if it's possible to get the Variable names of Texture2D and SamplerState. I know that I'm able to get those through the effects Framework. But I'm looking for a way without this Framework. Like the way with Constantbuffers…
Rey
  • 85
  • 1
  • 9