directx

What does *.hlsl files do, what the relationship between this file and *.fx file?

余生长醉 提交于 2020-02-24 20:29:18
问题 I am reading an example of DirectX project, I saw *.fx and *.hlsl files. I know fx is effect file which is read by DirectX, but what's purpose of hlsl file? Are this files useful? 回答1: Historically fx contains shaders using the Effects system syntax ( technique , pass , etc.) while hlsl contains pure HLSL shaders without Effects system syntax. This is, however, purely a convention and one that is not actually followed particularly consistently. In the end, all that matters is what profile you

What does *.hlsl files do, what the relationship between this file and *.fx file?

拟墨画扇 提交于 2020-02-24 20:25:14
问题 I am reading an example of DirectX project, I saw *.fx and *.hlsl files. I know fx is effect file which is read by DirectX, but what's purpose of hlsl file? Are this files useful? 回答1: Historically fx contains shaders using the Effects system syntax ( technique , pass , etc.) while hlsl contains pure HLSL shaders without Effects system syntax. This is, however, purely a convention and one that is not actually followed particularly consistently. In the end, all that matters is what profile you

C++ D3D9 Alpha Blending with Creators Update

自古美人都是妖i 提交于 2020-02-16 04:30:46
问题 currently i'm working on an application which creates an overlay using dx9. Now i'm experiencing a problem that it won't make use of the alpha channel since i upgraded my Windows 10 to the latest build (Creators Update) E.g. if i'm trying to render a transparent rect it always stays 100% visible Setup WNDCLASSEX wc = { sizeof(WNDCLASSEX), 0, WndProc, 0, 0, nullptr, LoadIcon(nullptr, IDI_APPLICATION), LoadCursor(nullptr, IDC_ARROW), nullptr, nullptr, OverlayName.c_str(), LoadIcon(nullptr, IDI

华为eNSP无法正常启动(0xc000007b)问题的解决

人盡茶涼 提交于 2020-02-14 21:19:32
最近在安装华为eNSP时,发现安装之后打不开 部分应用0xc000007b问题的主要原因:DirectX 9.0损坏或程序执行所需要的dll文件出现了问题 于是对DirectX进行了了修复以及检查dll文件,发现重新安装eNSP还是一样的问题 对此,我分享另外一种解决方案: 在安装eNSP之前先安装WinPcap 可以到 太平洋网 下载安装 然后重新安装eNSP,问题就解决了 来源: CSDN 作者: wduadua 链接: https://blog.csdn.net/wduadua/article/details/104307926

2015年总结2016展望

别等时光非礼了梦想. 提交于 2020-02-14 06:41:39
2015感觉过的很快,非常充实。一直在忙着不是写这就是写那。反正是没有闲过。 家庭更和睦,孩子也大了一岁,活泼可爱,父母身体也还可以,经济增长和2014差不多。 15年最大的事就是项目T算是成功运转了,14年废了很多项目总算是有一个能运转。 D这个项目任重而道远,到目前为止我依然认为这个项目是比较好的一个,技术含量比较高。 关于技术: 技术方面,学习了点DirectX但还没有深入,还有学习了点Web建站方面的,其它方面几乎没能什么进展。 买了两本书: 《C#入门经典》 《php和mysql web开发 第4版》 这两本书当初是为了做一个网站而买的。走马观花看了下,算是可以简单做做网页了。 身体健康: 2014年的时候体重最高的时候有180斤了,当时除了吃饭睡觉就是趴电脑,导致我体重增加。 我有意加强了锻炼,买了篮球和运动衣,而且经常去打台球。现在体重155。 还有由于鼻炎的原因, 我很少喝酒了。 2016年计划 1.继续学习DirectX 3d方面知识,目标是弄清3d端游基本原理。 2.继续锻炼身体。保持每周至少打一次篮球。 3.继续学习英语 4.学习3d游戏导航 来源: https://www.cnblogs.com/zhangdongsheng/p/5097583.html

DirectX in Windows 8 SDK

浪子不回头ぞ 提交于 2020-02-03 08:53:09
问题 Summary : Should directX include files be removed from applications targeting Windows 8? Details : I'm new to developing in Windows and I'm trying to get the NVIDIA SDK to compile on Windows 8 with Visual Studio 2012 (if possible). When compiling I've gotten an error message: Cannot open include file: 'd3dx9.h': No such file or directory . I've read the Where is the DirectX SDK? article, but I'm confused about what it is saying to do. Assuming that I don't care about Windows 7 and only want

DirectX in Windows 8 SDK

北城余情 提交于 2020-02-03 08:53:07
问题 Summary : Should directX include files be removed from applications targeting Windows 8? Details : I'm new to developing in Windows and I'm trying to get the NVIDIA SDK to compile on Windows 8 with Visual Studio 2012 (if possible). When compiling I've gotten an error message: Cannot open include file: 'd3dx9.h': No such file or directory . I've read the Where is the DirectX SDK? article, but I'm confused about what it is saying to do. Assuming that I don't care about Windows 7 and only want

Color conversion from DXGI_FORMAT_B8G8R8A8_UNORM to NV12 in GPU using DirectX11 pixel shaders

陌路散爱 提交于 2020-01-29 04:51:06
问题 I'm working on a code to capture the desktop using Desktop duplication and encode the same to h264 using Intel hardwareMFT. The encoder only accepts NV12 format as input. I have got a DXGI_FORMAT_B8G8R8A8_UNORM to NV12 converter(https://github.com/NVIDIA/video-sdk-samples/blob/master/nvEncDXGIOutputDuplicationSample/Preproc.cpp) that works fine, and is based on DirectX VideoProcessor. The problem is that the VideoProcessor on certain intel graphics hardware supports conversions only from DXGI

Minimum DirectX 9.0c version and how to check for it

不羁岁月 提交于 2020-01-24 12:10:07
问题 Our Windows C++ Ogre-based game is nearing completion. Before we publicly release it, we have to solve this matter : Ogre crashes on many test-computers if they are not updated to the latest Dx9.0c version. All these computers already had 9.0c installed, but that must have been an older OS-pre-installed sub-version, hence the crash..? The 1st questions is : how can I ensure that a user has the correct 9.0c version so that the game doesn't crash on the user's face, but instead show a message

Make screenshot of DirectX window that is hidden and doesn't have focus

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-23 17:44:06
问题 How to grab a screenshot of a DirectX window that is not in foreground and doesn't have focus. I want to monitor what happens with application in the background, but without switching to it. The standard way with PrintWindow doesn't work. You can test that on Unity apps, for example. 来源: https://stackoverflow.com/questions/30694056/make-screenshot-of-directx-window-that-is-hidden-and-doesnt-have-focus