direct3d

How can I compile asm shader to fxo file?

旧城冷巷雨未停 提交于 2019-12-01 17:52:49
问题 I have a compiled fxo shader which I'm trying to edit slightly (just adjusting some constants). Using fxdis (https://code.google.com/archive/p/fxdis-d3d1x/) I can disassemble this shader, this is the output: # DXBC chunk 0: RDEF offset 52 size 972 # DXBC chunk 1: ISGN offset 1032 size 80 # DXBC chunk 2: OSGN offset 1120 size 44 # DXBC chunk 3: SHEX offset 1172 size 1592 # DXBC chunk 4: STAT offset 2772 size 148 ps_5_0 dcl_global_flags refactoringAllowed dcl_constant_buffer cb0[30].xyzw,

Performance of different CG/GLSL/HLSL functions

北慕城南 提交于 2019-12-01 16:47:01
There are standard libraries of shader functions, such as for Cg . But are there resources which tell you how long each takes... I'm thinking similar to how you used to be able to look up how many cycles each ASM op would take. There are no reliable resources that will tell you how long various standard shader functions take. Not even for a particular piece of hardware. The reason for this has to do with instruction scheduling and the way modern shader architectures work. Take a simple sin function. Let's say that the hardware has a special hardware to compute the sine of a value, so it's not

How triangle patch tessellation is done using edge and inner tessellation factors?

时光怂恿深爱的人放手 提交于 2019-12-01 12:44:00
问题 I am just learning tessellation and i came across with below example for triangle patch tessellation but i am not sure how below geometry is getting generated. can anybody please hep me out with this? I am basically unsure how edge tessellation and inner tessellation is making this figure. 回答1: The tessellation levels specify the number of edges that will be generated. Therefore, a tessellation level of 1 means one edge. AKA: no tessellation. So this explains the outer levels. Each edge is

C# Capturing Direct 3D Screen

别来无恙 提交于 2019-12-01 03:50:13
I have been fooling around with screen capture for awhile now and I managed to capture the entire screen, certain areas on the screen etc... But when I go into a game and try to capture the screen, it completely ignores the game and instead, captures the desktop (or whatever is behind the game window). Another interesting fact is that the same thing happens with the PrtScn button. Any ideas on how to capture a game's screen? vcsjones The screen capturing technique you are using works well for capturing things that aren't hardware accelerated. I suspect you'd have the same problem trying to

Nvidia 3d Video using DirectX11 and SlimDX in C#

亡梦爱人 提交于 2019-12-01 03:15:26
Good day, I am trying to display a real-time stereo video using nvidia 3DVision and two IP cameras. I am totally new to DirectX, but have tried to work through some tutorials and other questions on this and other sites. For now, I am displaying two static bitmaps for left and right eyes. These will be replaced by bitmaps from my cameras once I have got this part of my program working. This question NV_STEREO_IMAGE_SIGNATURE and DirectX 10/11 (nVidia 3D Vision) has helped me quite a bit, but I am still struggling to get my program working as it should. What I am finding is that my shutter

C# Capturing Direct 3D Screen

戏子无情 提交于 2019-12-01 00:27:07
问题 I have been fooling around with screen capture for awhile now and I managed to capture the entire screen, certain areas on the screen etc... But when I go into a game and try to capture the screen, it completely ignores the game and instead, captures the desktop (or whatever is behind the game window). Another interesting fact is that the same thing happens with the PrtScn button. Any ideas on how to capture a game's screen? 回答1: The screen capturing technique you are using works well for

Managed Direct3D or XNA for non-game related 3D graphics programming?

南楼画角 提交于 2019-11-30 22:48:35
Which is the preferred approach for doing .NET 3D graphics programming: Direct3D or XNA seem to be the current technologies, but which is best for non-game related programming? Also, has Managed Direct 3D been discontinued? XNA doesn't really seem to be appropriate for non-game development. If it's not game related what is it about? If you answer this we might give you a good answer, anyway depending on the application WPF might be a good answer. Yap, too bad MS discontinued MDX. I'm currently using SlimDX for our non-game development. It's not a drop-in replacement for MDX, but at least the

Nvidia 3d Video using DirectX11 and SlimDX in C#

可紊 提交于 2019-11-30 22:32:02
问题 Good day, I am trying to display a real-time stereo video using nvidia 3DVision and two IP cameras. I am totally new to DirectX, but have tried to work through some tutorials and other questions on this and other sites. For now, I am displaying two static bitmaps for left and right eyes. These will be replaced by bitmaps from my cameras once I have got this part of my program working. This question NV_STEREO_IMAGE_SIGNATURE and DirectX 10/11 (nVidia 3D Vision) has helped me quite a bit, but I

How to query GPU Usage in DirectX?

拥有回忆 提交于 2019-11-30 21:25:48
How to query GPU Usage in DirectX? Specifically DirectX 11. If someone ever did it, could you provide me the code snippet? Vertexwahn Process Hakcer is able to do this. See here: http://processhacker.svn.sourceforge.net/viewvc/processhacker/2.x/trunk/plugins/ExtendedTools/gpumon.c?revision=4927&view=markup A similar question has been asked here: How do you calculate the load on a nvidia (cuda capable), gpu card? 来源: https://stackoverflow.com/questions/16376218/how-to-query-gpu-usage-in-directx

Managed Direct3D or XNA for non-game related 3D graphics programming?

妖精的绣舞 提交于 2019-11-30 17:53:02
问题 Which is the preferred approach for doing .NET 3D graphics programming: Direct3D or XNA seem to be the current technologies, but which is best for non-game related programming? Also, has Managed Direct 3D been discontinued? XNA doesn't really seem to be appropriate for non-game development. 回答1: If it's not game related what is it about? If you answer this we might give you a good answer, anyway depending on the application WPF might be a good answer. 回答2: Yap, too bad MS discontinued MDX. I