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
2 answers

How to draw text using SharpDX?

I was looking around the internet to try to find code that allows me to draw text from a regular font (not a sprite font) and only found snippets which didn't help me at all. Does someone have a full source file that allows me to easily draw text…
SPACoD
  • 21
  • 1
  • 4
2
votes
0 answers

DX 11 Compute Shader\SharpDX Deferrerd Tiled lighting, Point light problems

I have just finished porting my engine from XNA to SharpDX(DX11). Everything is going really well and I have conquered most of my issues without having to ask for help until now and I'm really stuck, maybe I just need another set of eye to look over…
2
votes
1 answer

Using SharpDX 2.6.3 under Windows 10

I recently updated my machine from Windows 8 to Windows 10. Since then, I get a NullReferenceException in SharpDX.Toolkit.Game.dll when I call this.game.Run(context) Where game inherits from SharpDX.Toolkit.Game and context is a…
Michael Hilus
  • 1,647
  • 2
  • 21
  • 42
2
votes
1 answer

SharpDX memory fragmentation

I am working on a .NET 3.5 application which uses SharpDX to render tiled 2D images. Textures (Texture2D) are loaded into a cache on-demand, and are created in the managed pool. Textures are disposed of when no longer required, and I have verified…
Ben Owen
  • 102
  • 9
2
votes
2 answers

How much improvement can I expect with SharpDX over heavily optimized GDI code in C#/WinForms?

I've been working on a C#/GDI graphical app for a couple years. I've spent a lot of time optimizing the drawing code. I am drawing to the screen by invalidating a PictureBox control about 10 times a second, and by leveraging subsequent OnPaint event…
BullsFan23
  • 23
  • 4
2
votes
1 answer

Setting SharpDX.Windows.RenderForm.IsFullscreen before RenderLoop.Run corrupts window

I observed a weird and buggy behavior in SharpDX when implementing fullscreen and resolution switching code. Whenever I set RenderForm.IsFullscreen to true before I call RenderLoop.Run(), and return to windowed mode later on, the window is…
Ray
  • 7,940
  • 7
  • 58
  • 90
2
votes
2 answers

Direct2D plot approach / performance

How is the approach to plot complex drawings with Direct2D (Sharpdx)? Actually I am using a WindowsRenderTarget, connecting it with a Direct2D1.Factory and drawing to a RenderControl. Factory2D = new…
zaimen
  • 157
  • 1
  • 12
2
votes
1 answer

Sharpdx - Depthstencil not working when using MRT (Multiple Render Targets)

been trying to change a renderer I wrote from SlimDX to SharpDX and ran into a problem. I want to render to multiple render targets (in this case color and object ID for picking) This is the initialization of the rendertargets (all with same…
janfo
  • 31
  • 4
2
votes
0 answers

How to plot 3D colored points with Helix toolkit

I create a simple 3D viewer with Helix toolkit. I want to plot 3D points which is colored. I referred to the sample project "SimpleDemo" which is contained in the Example folder (HelixToolkit.Wpf.SharpDX). This is my XAML:
kazuoni
  • 21
  • 1
  • 4
2
votes
2 answers

Managed DirectX / SharpDX / SlimDX working without installer?

I'm trying to write a C# application that should: run on .NET Framework (4.0 ideally) run on DirectX 9 on as much computers as possible (everyone that have DirectX 9 installed) be a single EXE file (without DLLs) do not force the end user to…
P.W.
  • 657
  • 8
  • 15
2
votes
1 answer

how do you use Direct2D to render ClearType text on a transparent background?

can anyone tell me why ClearType is picking up the transparency of the background in the simple SharpDX sample below? And how to stop it from doing that. it renders two lines of solid black text into a semi-transparent bitmap. the first line is…
Spongman
  • 9,665
  • 8
  • 39
  • 58
2
votes
1 answer

Memory leak in my SharpDX application

This code runs every 100 ms. The memory usage just keeps increasing until it hits 1.5 GB and then it crashes. void takeScreenShot() { Surface s; s = CaptureScreen(); pictureBox1.Image = new Bitmap(Surface.ToStream(s,…
2
votes
1 answer

Moving from SlimDX to SharpDX - Effects

We have a project that currently uses DirectX11 SlimDX and would like to move it to SharpDX. However, this project uses the Effect framework from SlimDX which I understand is no longer properly supported in DirectX11. However I can't find definitive…
Grokys
  • 16,228
  • 14
  • 69
  • 101
2
votes
1 answer

Getting SharpDX.Direct2D1.Bitmap from Texture2D

I'm trying to create an off-screen bitmap to draw on it and to draw it with Direct2D1.RenderTarget.DrawBitmap then. So I create Texture2D and get the Bitmap from it. But I receive the error [D2DERR_UNSUPPORTED_PIXEL_FORMAT/UnsupportedPixelFormat]…
KPECTuK
  • 23
  • 3
2
votes
1 answer

Including a .targets file in the universal app shared project to include a custom build action

In separate Windows 8.1/Windows Phone 8.1 projects, including the SharpDX.targets file from the SharpDX repo includes all of its content build actions in each project. Doing the same in the shared project in a universal app doesn't work (project…