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
13
votes
1 answer

SharpDX vs SlimDX for game development?

Which one of these offers the best API for game development? Which library is easier to use, faster, has more documentation?
Levi H
  • 3,426
  • 7
  • 30
  • 43
12
votes
2 answers

SharpDX 2.5 in DirectX11 in WPF

I'm trying to implement DirectX 11 using SharpDX 2.5 into WPF. Sadly http://directx4wpf.codeplex.com/ and http://sharpdxwpf.codeplex.com/ don't work properly with SharpDX 2.5. I was also not able to port the WPFHost DX10 sample to DX11 and the full…
martinyyyy
  • 1,652
  • 3
  • 21
  • 44
12
votes
1 answer

Interpreting GPU information from Process Explorer

I am trying to hunt down a possible memory leak in my Sharpdx / DirectX application. I am getting the following information from process explorer which I do not know how to interpret. What is Dedicated GPU Memory? What is System GPU Memory? What…
clamp
  • 33,000
  • 75
  • 203
  • 299
11
votes
1 answer

Capture screenshot of fullscreen DX11 program using SharpDX and EasyHook

Before anybody mentions it, I refered to this link to find out how I needed to copy the backbuffer to a bitmap. Current situation I am injected to the target process Target process' FeatureLevel = Level_11_0 Target SwapChain is being made with…
Neijwiert
  • 985
  • 6
  • 19
11
votes
1 answer

program has exited with code -1073610751 (0xc0020001)

I'm getting a strange error on a SharpDX program I made. The program contains one form MainForm, which inherits from SharpDX.Windows.RenderForm (I'm doing Direct3D 9). I have some logic that kills the program by calling MainForm.Close(), and it…
Panda Pajama
  • 1,283
  • 2
  • 13
  • 31
10
votes
2 answers

Windows form with a transparent background that can be clicked through

INTRODUCTION Using C# or VB.NET. I'm trying to make a form's background transparent; this form will be overlaped to other window, it will be a top-most window, so the transparent form (and its controls) must have the ability that they must not…
ElektroStudios
  • 19,105
  • 33
  • 200
  • 417
10
votes
1 answer

How to draw a transparent surface using SharpDX?

( This question is based on further investigations of this other question, but isn't the same question, this is very specific question about painting issues. ) I'm trying to draw a transparent surface overlapped on a target window, the problem is…
ElektroStudios
  • 19,105
  • 33
  • 200
  • 417
10
votes
1 answer

Now that Xna is unsupported, what is a better choice?

Xna is unsupported, and unfortunately I started game programming recently(~9 months). What is a better choice, DirectX or OpenGl. Now, I don't think DirectX or OpenGl have official libraries for C#, so which one would be better for a newcomer? I…
user2066764
  • 185
  • 1
  • 7
9
votes
3 answers

SharpDX render in WPF

I want to draw lines as fast as possible. For that reason I implemented a method using InteropBitmap. This works quite good. Next step was to compare with ShardDX. Basically what I want to do is: Running the following code in a BackgroundWorker.…
user2799180
  • 719
  • 1
  • 11
  • 29
8
votes
3 answers

Resizing a DXGI Resource or Texture2D in SharpDX

I want to resize a screen captured using the Desktop Duplication API in SharpDX. I am using the Screen Capture sample code from the SharpDX Samples repository, relevant portion follows:. SharpDX.DXGI.Resource…
Jon Galloway
  • 52,327
  • 25
  • 125
  • 193
7
votes
1 answer

Invalid Call on ReleaseFrame() in DesktopDuplication API

An user of my app is having some problem capturing the screen with the DesktopDuplication API. Upon starting the capture, the app crashes because the app is unable to release the frame of the OutputDuplication. User's PC details: Windows…
Nicke Manarin
  • 3,026
  • 4
  • 37
  • 79
7
votes
2 answers

How to compile hlsl shader file in Visual Studio C# project

I would like to compile a hlsl shader file in my C# project in Visual Studio 2015. With a C++ project I immediately get the correct properties if I add an hlsl file like the picture below: However when I want to do this in my C# project (with…
N Jacobs
  • 341
  • 2
  • 16
7
votes
1 answer

Draw and fill polygon with 4 vertices (positions in 2D) via sharpdx API

I have 4 float points (positions in 2D) and I want to draw and fill a polygon (with vertices at those 4 positions) in 2D. How can I do that with sharpdx?
smoothumut
  • 3,423
  • 1
  • 25
  • 35
7
votes
1 answer

Can I code Windows 8 RT Games in C#

Is it possible to code a Windows 8 RT and/or Windows 8 Phone game using C#?
Vaccano
  • 78,325
  • 149
  • 468
  • 850
7
votes
1 answer

Difficult Marshalling DirectX array of structs from C++ to C#

Goal: Marshal C++ (pointer to an?) array of structs to C#. C++: CreateVertexDeclaration() HRESULT CreateVertexDeclaration( [in] const D3DVERTEXELEMENT9 *pVertexElements, [out, retval] IDirect3DVertexDeclaration9 **ppDecl …
Jason
  • 6,878
  • 5
  • 41
  • 55
1
2 3
43 44