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

SharpDX draw Direct2D Bitmap different Direct2D factories

I've create everything needed to draw to a SharpDX.Direct2D1.BitmapRenderTarget. I can access the bitmap itself by using the targets .bitmap attribute. My question is now, how to draw this bitmap using another WicRenderTarget? Something like: var…
user2799180
  • 719
  • 1
  • 11
  • 29
0
votes
0 answers

Obfuscating SharpDX assemblies

I have built my own slightly modified SharpDX assemblies and they work fine when I don't obfuscate them (using Crypto Obfuscator). When I obfuscate them I get this error message: The type or namespace name 'FunctionCallback' does not exist in the…
user2792356
0
votes
1 answer

Rendering Textured Terrain With SharpDX Toolkit

So i recently moved from XNA to SharpDX Toolkit and started with some basics. The 2d part was easy since nearly nothing has changed but im really struggeling with the 3d part. For example i wanted to render a heightmap based on riemers terrain…
HellGate
  • 708
  • 1
  • 5
  • 20
0
votes
2 answers

Shader reflection : variable name?

How (if at all possible) could i get the name of variables / structure members in a shader from reflection? I'm talking about raw hlsl shaders (no effet Framework / no D3DX, just raw directX). I'm using SharpDX and found out how to get most of the…
Ronan Thibaudau
  • 3,413
  • 3
  • 29
  • 78
0
votes
1 answer

Custom Direct2D render batch marshaling between managed and unmanaged code

I recently started playing around with the SharpDX wrapper to get high performance graphics output from a C# application. According to its creators, the performance penalty associated with using SharpDX (their own numbers indicate that going via…
d7samurai
  • 3,086
  • 2
  • 30
  • 43
0
votes
1 answer

SharpDX instancing with D3D11

Could anybody provide a working code which uses SharpDX with D3D11, does instancing and uses SharpDX's content pipeline? I have several problems there. I came to understand, that one should use a SharpDX.Direct3D11.InputLayout to describe the input…
Muad'Dib
  • 47
  • 7
0
votes
1 answer

Render a Projection of specific size and position onto another

I am trying to Render a 3D-View onto another on a specified Position and Size. And because I can not explain it exactly, I made a graphic. Graphic-Description of my Problem If you could help me out, could you please also tell me how to call the case…
Chris
  • 11
  • 5
0
votes
1 answer

SharpDX toolkit SamplerState.PointClamp

I'm trying to create a kinda retro game using the SharpDX tookit. So as it's a retro game, the pixels should be huge, somthing like 8 x 8 screen pixels. I simply achive that by scaling up the drawing rectangle. But the sprites become blurry then. So…
jalgames
  • 781
  • 4
  • 23
0
votes
1 answer

How do I get slot number for texture by name?

Using Direct3D 11 and SharpDX, given the name of a Texture Map as declared in the shader, how do I know what slot to assign my Sampler and TextureView to? Documentation indicates I can use ShaderReflection, however it is not clear how... void…
Jacob Foshee
  • 2,704
  • 2
  • 29
  • 48
0
votes
1 answer

How to write depth to a texture and read it on the next pass on a shader in DirectX11?

I'm programming a two-pass effect in DirectX 11 (SharpDX). It's supposed to write the depth to a texture in the first pass and then use that texture to extract data on the second one in the pixel shader. What I get is a white screen, with nothing…
c4sh
  • 701
  • 1
  • 8
  • 22
0
votes
1 answer

Force a page constructor call on windows phone on back navigation

Regarding this question: Is it possible to force a page constructor call on windows phone? Background: I am writing a Windows Phone application with DirectX using SharpDX.Toolkit. When navigating back from another page, some re-initialization has…
Emiswelt
  • 3,909
  • 1
  • 38
  • 56
0
votes
0 answers

SharpDX crash when rendering h264 video using MediaFoundation

I am looping a h264 video in a SharpDX app and occasionally I am getting a crash which I am unable to find the cause. SharpDX.SharpDXException: HRESULT: [0xC00D36BA], Module: [Unknown], ApiCode: [Unknown/Unknown], Message: Unknown at…
clamp
  • 33,000
  • 75
  • 203
  • 299
0
votes
1 answer

SharpDX Content.Load

I just installed SharpDX 2.5.0 into Visual Studio, and now there is one really curios and unexpected errror: I wanted to start with Atari's 'Pong', so i drew a .bmp file with a ball, convertet it into a .dds file with Easy2Convert BMP to…
SonneXo
  • 177
  • 1
  • 1
  • 10
0
votes
1 answer

DirectX Debug Layer on Windows Phone 8

I am currently developing an XAML with DirectX application for Windows Phone 8, using a DrawingSurfaceBackgroundGrid and SharpDX. Since the application is somewhat unstable, I would like to activate the DirectX Debug Layer to find all errors. How…
0
votes
1 answer

WP8: Debug not attached bugs

I'm writing games using C# and SharpDX (WP8). There are many bugs when debugger is not attached (textures are cut, incorrect colors in pixel shader). But when debugger is attached, everything works fine. what is the difference between attached and…
shnyaps
  • 1
  • 1