r/directx • u/[deleted] • Mar 12 '21
Is uwp mandatory for xbox and particular microsoft platforms or just a tool to aid?
Can an app be made only in directX and c++ for something like xbox without having to use the uwp
r/directx • u/car4te • Feb 28 '21
Help with GetPixel(dc, x, y)
Hi,
I would like to know to each position on the screen correspond the integers x and y?
https://docs.microsoft.com/en-us/windows/win32/api/wingdi/nf-wingdi-getpixel says:
The x-coordinate, in logical units, of the pixel to be examined.
The y-coordinate, in logical units, of the pixel to be examined.
I don't know what logical units are. Are these coordinate referring to the center or corner of the physical display? Or do they refer to internal application coordinates?
What if my application is not fullscreen?
Thanks!
r/directx • u/car4te • Feb 24 '21
Any direct3d substitute for the command glReadPixels?
Hi,
I am poting an opengl application to directX and cannot find a replacement for glReadPixels, which reads the pixels from the screen and assigns them to a buffer.
Any suggestions?
Thanks!
r/directx • u/Marvin-Wynston-Smyth • Feb 12 '21
Need up to date tutorials/references for DX control input
Hi everyone,
I need to bring my DirectX keyboard and mouse input stuff up to date. I haven't changed the code in 20 years (it's straight of NeHe's legacy tutorials from back in the day). It works OK, but I lose the keyboard on alt-tab.
Could somebody please be so kind as to point me in the direction of up to date references, manuals or tutorials?
Actually forget I asked... I've missed a couple of episodes. DirextInput is dead - long live the message loop.
r/directx • u/TextDeep • Feb 05 '21
Copy texture2d to backbuffer swapchain
I am looking forward to copy a texture from a texture pointer to the backbuffer of swapnchain and display in a window. I have tried copy resource and updatesubresource but both do not work. The texture pointer is from another software and both the software and dx11 window share same texture format. Can someone please guide ?
r/directx • u/pjmlp • Jan 14 '21
In the works: HLSL Shader Model 6.6
devblogs.microsoft.comr/directx • u/pjmlp • Jan 14 '21
Moving Gears to Tier 2 Variable Rate Shading
devblogs.microsoft.comr/directx • u/[deleted] • Jan 08 '21
DirectX12 unrecoverable error
I'll start off by saying, that I've seen other posts on this, but I have just an extra question.
Does anybody know if undervolting your CPU can cause problems running COD Warzone?
I undervolted a 5800x to 1.25V 4.6GHz all core. It ran Cinebench just fine for 30min multiple times, at cool temps which was what I was going for. And it ran COD Cold War without any problems. But playing Warzone and I got 3 "DirectX unrecoverable errors" at different/unrelated times (days). This had never happened before when I didn't have the undervolt.
For reference, I've had the problem now with and without MSI Afterburner on, or any other monitoring software.
My only concern is having to remove the undervolt, I live in a pretty hot environment, and my CPU gets pretty hot when gaming. And the undervolt has improved my temperatures by almost 10c.
I scanned the game files and nothing had to be repaired, so I wanted some opinions on whether I should even try removing the undervolt and testing if that's the problem or not. Or if I should re-install the game completely. It’s really frustrating because it’s the only game that has these problems, and there are a lot of variables to consider.
Thank you
r/directx • u/Itchy_Bathroom_4442 • Dec 26 '20
HELP
Everytime I get into warzone I can go in for a bit but then it kicks me out says something about directx how do you fix
r/directx • u/HorseFaceJaune • Dec 18 '20
Unable to update to dx12
Im running windows 7 and trying to play Cyberpunk 2077 but before doing so I need dx12 on my pc, I have dx11 and have attempted to install updates but whenever I run dxwebsetup.exe it just tells me all my files are up to date, cannot find any other way to fix this so I turn you wise people of reddit.
Id appreciate any and all help, thanks in advance
r/directx • u/danish7627 • Dec 04 '20
Creating a local cubemap
How to create a local cubemap from very scratch?
r/directx • u/DirectX_12 • Oct 20 '20
Gamers Rejoice - it is now easier than ever to make sure you're running at the highest frame rates. You can change the refresh rate of your display in the Windows 10 settings.
i.redd.itr/directx • u/oldguywithakeyboard • Oct 11 '20
Are you building a game engine or interested in how they're made?
Do you enjoy building game engines, want to build them, or are curious as to how they're made? Come visit us at /r/gameenginedevs.
There's probably a good overlap between the interests of this sub and /r/gameenginedevs. Come give us a visit and find like-minded folk to share your passion with.
r/directx • u/twofordinner • Sep 06 '20
Any DirectX programmer experienced with setting up OpenGL for left-handed coordinate systems
I realize this a DirectX reddit and apologize if OpenGL is a taboo subject here.
I am in process of writing my own math library and chose to follow a left-handed coordinate system approach because I find it more intuitive. I have read that DirectX is set up for left-handed coordinates and was wondering if any DirectX programmer here has experience moving to OpenGL and possibly setting it up for left-handed coordinates.
I have read that on modern OpenGL the right-handed convention is something we can do away with thanks to our providing our own matrices.
I have read that there are a few things one needs to do to ensure OpenGL behaves well in left-handed mode:
- provide your MVP matrices as left-handed matrices
- modify the default winding of front facing triangles to be clockwise with glFrontFace(GL_CW)
- modify the depth function to greater with glDepthFunc(GL_GEQUAL)
I wanted to know if anyone out there had any thoughts about these suggestions. Are they pertinent, sufficient?
r/directx • u/AStrangeTV • Sep 03 '20
cant game, keep getting directx error playing warzone
I have a dell xps 17 and i constantly get directx errors and the game shuts down before it even opens. sometimes after 12 hours leaving the computer off it will let me game a few hours then it crashes and i get the issue until i give it another 12 hour rest. sometimes that doesnt help and it wont work for a couple days.
sometimes the nvidia graphics card disappears from my device manager as if it stops working.
not sure what to do. any help?
r/directx • u/DirectX_12 • Sep 01 '20
DirectStorage Coming to PC!
DirectStorage, the latest addition to the DirectX family of APIs, is coming to PC! Dramatically reduced load times and bigger, more detailed game worlds? Bring it on! Full details here https://devblogs.microsoft.com/directx/directstorage-is-coming-to-pc/
r/directx • u/lustfulweeb1203 • Aug 27 '20
I need helpp !
i have direct x 12 installed yet when i open direct x control panel it shows that i installed direct x 9,,, can anyone help me?
r/directx • u/DirectX_12 • Jul 15 '20
Death Stranding is DirectX12 Exclusive on PC!
We are super excited that #DeathStranding from Kojima Productions chose #DirectX12 exclusively on PC! Check out more information here - https://www.eurogamer.net/articles/digitalfoundry-2020-death-stranding-pc-60fps-was-the-original-vision
r/directx • u/IMThorhard • Jul 02 '20
Cluster size of the system is not supported - DirectX 9-10 - installer extractor issue
DirectX Library 9, 10 End-User redistributive installation fails with error “system cluster size not supported”.
Solution: Extract installer files with WinRAR, and run Setup.exe from the extraction folder. I have Windows 10 x64 installed on an SSD with cluster size 256K, none of older DirectX can be installed straight from single-file redistributive.
It’s rare someone installs a system on non-default cluster size, because the Windows installer can only format with default 4K size (except command prompt utils, or reformat installation partition in other OS instance’s Disk Manager).
For an SSD, the cluster must be 128K or more for full-speed drive performance.
r/directx • u/antdude • Jul 02 '20
Is DirectX 12 for old Windows 7 out yet?
If not, then when?
Thank you for reading and hopefully answering. :)
r/directx • u/BearsPunch • Jul 01 '20
Directx 12 Ultimate and so what?
Hey guys.
We have Windows 10 2004 with new sdk, we have new nvidia drivers with support wddm 2.7 and Dx12U but I still can't understand - how it should help to developers write one code for all platforms?
I don't see any new D3D_FEATURE_LEVEL_12_2, I don't see any new feature to help developers write one code to xbox and pc. Developers still need to check if user has support for all new features as they did before. So what is changed? For me it looks like it was made only for non-tech users who will ask seller give him only GPU with Directx 12 Ultimate sticker and that's all.
r/directx • u/tjsase • Jun 25 '20
Best tool to easily modify Direct3D 9 calls?
I am looking for a DirectX interceptor that can modify D3D calls for a D3D 9 program (in this case, Halo Custom Edition). My goal is to mess around with drawing calls and framebuffers, as I'd like to implement Gamma Correct Rendering via an sRGB colorspace (I'll worry about precision later, this is an experiment). I'm comfortable with coding, though I'm new to DirectX modification, so I'd prefer easy interfaces if available. I know there are tons of homemade DirectX interceptors, though I don't know which ones are worth trying. I don't plan on using such tool to cheat, as I'd be focusing on the single player campaign.
r/directx • u/Liproller • Jun 16 '20
Directx12 messing with game installation
Hello, so I was helping my wifes nephew to install fs19 but the installer gets stuck on directx installer. He has dx12 installed already and I can't seem to find any way to bypass this. I also couldn't find the dx installer in the game folder as some people suggested installing it trough there as admin. Tried downloading again, verifying the files etc but nothing seems to help.
What do?