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

Quiet screeching sound from speakers when my program runs

Before I explain this I want to say that I know this is a very vague bug, it's just I have absolutely no idea what might be causing this. Okay, the problem is that when my program is running there is a very quiet screeching sound coming from the PCs…
Joseph Little
  • 921
  • 3
  • 13
  • 22
0
votes
2 answers

Where does ReportLiveDeviceObjects report to?

I am unsure about how D3D11Device::ReportLiveDeviceObjects works? i am not seeing anything in my output or in a console when i call this. http://msdn.microsoft.com/en-us/library/windows/desktop/ff476370(v=vs.85).aspx
clamp
  • 33,000
  • 75
  • 203
  • 299
0
votes
1 answer

Joystick acquisition with SharpDX

I'm new about C# and Sharpdx. I have this code problem from a couple of days and I don't understand way doesn't work! This is a simple task about acquiring a value of one axis of a Joystick and show it on a text box in a Form. I did a new project on…
user2713126
  • 1
  • 1
  • 2
0
votes
1 answer

Pixel shader with SharpDX and DirectX toolkit outputting pure red color

I am creating a Windows Phone 8 app and I'm working with camera. When I don't use any shader, my C# code works perfectly: void photoDevice_PreviewFrameAvailable(ICameraCaptureDevice sender, object args) { …
Can Poyrazoğlu
  • 33,241
  • 48
  • 191
  • 389
0
votes
1 answer

Loading texture to GPU for shader processing in SharpDX

I am trying to use a texture from a shader on Windows Phone 8 using SharpDX, but I have trouble uploading the texture to GPU. I've found these: http://msdn.microsoft.com/en-us/library/microsoft.xna.framework.graphics.graphicsdevice.textures.aspx How…
Can Poyrazoğlu
  • 33,241
  • 48
  • 191
  • 389
0
votes
1 answer

DirectWrite.TextLayout transform matrix has no effect

I'm using DirectWrite (through SharpDX) to draw a TextLayout and it works as expected except for a couple things. I'm calling this TextLayout constructor: http://sharpdx.org/documentation/api/m-sharpdx-directwrite-textlayout--ctor-2 My code is…
shoelzer
  • 10,648
  • 2
  • 28
  • 49
0
votes
2 answers

Drawbacks of Hardware Instancing for "single instances"

I am writing a 3D graphics application (using SharpDX) with static and animated (including skeletal animated) meshes. Some meshes will only be rendered once per frame, some will be rendered a large number of times. In order to speed up rendering I…
gareththegeek
  • 2,362
  • 22
  • 34
0
votes
1 answer

Using shaders for long computations without causing lag

I am trying to use the Compute Shader with DirectX 11 to do some simple, but expensive calculations (think Mandelbrot Set). The result of the calculation is placed on a texture and are non-overlapping. It is not realtime, as it is expected to take…
Advecticity
  • 369
  • 3
  • 9
0
votes
1 answer

Right justify text using SharpDX/Direct2D

I have some code to draw some text: var textFormat = new SharpDX.DirectWrite.TextFormat(fontFactory, "Arial", SharpDX.DirectWrite.FontWeight.Bold, SharpDX.DirectWrite.FontStyle.Normal, SharpDX.DirectWrite.FontStretch.Condensed, 16.0f); …
Jason Fry
  • 1,204
  • 12
  • 24
0
votes
1 answer

SharpDX / XAudio2 : Sending a SourceVoice through a SubmixVoice

I can't figure this out, how do I route a SourceVoice through a Submixvoice? The C++ examples on the net suggest I can use effect chains, but there's no EffectChain constructor or functions that accept voices. Here're the basics: private XAudio2 xa…
user417774
0
votes
1 answer

Uniform Parameter handle in SharpDx DirectX11 HLSL

I'm wondering if there is another way to access uniform Parameters in SharpDx besides the constantbuffer cbuffer Variables : register(b0){ float4 cL; } I think the register(b0) tells the Datapointer which one to access. Anyways the Question is…
Rey
  • 85
  • 1
  • 9
0
votes
1 answer

How can I use SharpDX.Toolkit to manage constant buffers for compute shaders?

I'm using SharpDX to run compute shaders and I use constant buffers for some inputs. I create the constant buffers myself and use them in compute shaders like this: // 'device' type is SharpDX.Direct3D11.Device // 'constBuf' type is…
shoelzer
  • 10,648
  • 2
  • 28
  • 49
0
votes
1 answer

SharpDX, can't find a function

I am trying to use the CreateRenderTargetView function since I am transcribing C++ DirectX over to C#. I am using D3D11. It there a substitution for CreateRenderTargetView that I could use?
user2097371
0
votes
1 answer

Resizing and position a SharpDX sprite

I'm trying to resize a DirectX Texture and place it in the top right corner of the window. I am drawing the texture using a sprite, here's is my code (I am using SharpDX): albumArtSprite.Begin(); NativeMethods.RECT…
zemaster
  • 1
  • 3
0
votes
1 answer

DirectX Unproject troubles

I have an orthographic projection and I try to unproject a point from screen space. Following are the view and projection matrices: var w2 = ScreenWidthInPixels/2; var h2 = ScreenHeightInPixels/2; view = Matrix.LookAtLH(new Vector3(0, 0, -1), new…
thumbmunkeys
  • 20,606
  • 8
  • 62
  • 110