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

Jerky animation when scrolling image in WPF using SharpDX

I am trying to smoothly scroll some images across a window using DirectX11 via SharpDX in a WPF application. A bit of background: The images are signal returns, varying by time, that have been loaded from a file and loaded into D3D as a texture…
Matt
  • 687
  • 5
  • 17
5
votes
1 answer

How to debug this C# crash?

My C# application crashes with this window. It's a DirectX application that uses SharpDX. I don't even know where to start to debug this? Any tips? when i enable debugging of native code, the crash looks like this: and the stack…
clamp
  • 33,000
  • 75
  • 203
  • 299
5
votes
2 answers

WP8 video streaming with Media Foundation

I wish to streaming H264 video to Windows Phone 8 application. So how I can do it with ShardDX? (Or maybe native function from Media Foundation). I found MediaEngine class for playing video, but I need "manually" parsing of frames and getting them…
5
votes
1 answer

How do I choose a pixel format when creating a new Texture2D?

I'm using the SharpDX Toolkit, and I'm trying to create a Texture2D programmatically, so I can manually specify all the pixel values. And I'm not sure what pixel format to create it with. SharpDX doesn't even document the toolkit's PixelFormat type…
Joe White
  • 94,807
  • 60
  • 220
  • 330
5
votes
1 answer

Multisampling (MSAA) for DirectX11/DirectX10 with D3DImage shared resource

I am trying to get MSAA in DX11 using D3DImage, but is seems, it is not possible, since shared multisampling texture are not allowed, as stated here: http://msdn.microsoft.com/en-us/library/windows/desktop/ff476531(v=vs.85).aspx Actually, I use the…
DerPrzem
  • 133
  • 2
  • 6
5
votes
2 answers

Debugging HLSL for Windows 8 application

i'm currently in the process of creating a Windows 8 applicaiton using SharpDX (the managed c# directx wrapper). However I have ran into problems with one of my shaders and I want to know if its possible to debug such applications. PIX doesn't seem…
Shervanator
  • 457
  • 1
  • 4
  • 10
4
votes
0 answers

How Do you apply a vertex shader in C# for D3D9?

I am trying to write a c# program to apply a vertex shader using SharpDx. I am not sure what are the right functions to call. The purpose of the shader is to make the graphics look a little better because it looks pixelated. I have written the…
Frank
  • 215
  • 3
  • 9
4
votes
2 answers

SharpDX numbered classes, where do i find their respective documentation/responsibilities?

I'm having a hard time everytime i look at SharpDX code and try to follow DirectX documentation. Is there a place where what each of the numbered classes map to and why they exist is clearly laid out? I'm talking about things like : …
Ronan Thibaudau
  • 3,413
  • 3
  • 29
  • 78
4
votes
2 answers

SharpDX compile shaders

How to compile vertex and pixel shaders at build time in SharpDX? The way you can read about in "Direct3D Rendering Cookbook" is to use HLSLCompiler.CompileFromFile. This will compile shaders at runtime, which is not always good.
Michal Pokluda
  • 390
  • 4
  • 11
4
votes
1 answer

screen coordinates to sharpdx device context coordinates

I am new to the sharpdx. My current work flow is user can capture a pictures using webcam or any cam devices.now i am working to the new feature for users. user able to draw anything at top the image like (mspaint drawing).. So i desired to take xy…
Jagadeesh Govindaraj
  • 6,977
  • 6
  • 32
  • 52
4
votes
1 answer

HUD basics using SharpDX: How to Draw over the screen surface?

Scenario I'm planning to learn the basics about how to develop a custom HUD for a 3rd party PC-game (free, legal), my intention is to develop an application that will draw/show additional info on the screen (by reading mem addresses). So I've…
ElektroStudios
  • 19,105
  • 33
  • 200
  • 417
4
votes
1 answer

Apply color for each and every point in PointCloud Using HelixToolkit

I have created a point cloud in HelixToolKit. I need to apply color for each and every point . When I am using PointVisual3D there is no options for setting color for each and every point . It set color for the whole point cloud. When I am using…
Sujith
  • 63
  • 1
  • 7
4
votes
3 answers

XAudio2 - Play generated sine, when changing frequency clicking sound

I want to develop an app to match your tinnitus frequency : A frequency is played and the user decrease or increase the freqency by pressing a plus or minus button. (see part of the codes, based on some coding from stackoverflow thx :-)) public…
c0ldsun
  • 55
  • 3
4
votes
3 answers

D3DImage and SharpDX flickering on slow hardware

I am using the SharpDX.WPF project for the WPF abilities, it seems like an easy to understand low-overhead library, compared to the Toolkit that comes with SharpDX (which has the same issue!) First: I fixed the SharpDX.WPF project for the latest…
ManIkWeet
  • 1,298
  • 1
  • 15
  • 36
4
votes
2 answers

IDXGIFactory::EnumAdapters() does not return any adapters

I'm developing an DirectX11 application. During initialization I enumerate the available graphics adapters as described here. Now, for one of our customers the number of available adapters appears to be zero: EnumAdapters(0, &pAdapter) already…
Roman Reiner
  • 1,089
  • 1
  • 10
  • 17
1 2
3
43 44