🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
Latest directx12 Activity
I want to copy a small two-dimensional output from a compute shader into a one-dimensional readback buffer. However, when I run it, the program crashes.
D3D12_COMMAND_QUEUE_DESC cqDesc = {};
cqDesc.Flags = D3D12_COMMAND_QUEUE_FLAG_NONE;
cqDesc.Type = D3D12_COMMAND_LIST_TYPE_COMPUTE;
devi…
@Juliean Thank you this is useful. It has changed my way of thinking and approaching my engine.
Room 8 Group’s Game Development team for PC & Console (Dragons Lake), has made its innovative Render Engine Infrastructure (REI) tool available as an open-source solution. Initially developed to transform game porting, development, and preservation, REI is the result of tireless work carried ou…
Maybe this is part of the problem:
float3 va = normalize(float3(size.xy, s21 - s01));
float3 vb = normalize(float3(size.yx, s12 - s10));
float3 localNormal = float3(cross(va, vb) / 2 + 0.5f);
You forgot to normalize the final normal, while normalizing the two tangents isn't needed. So it should be:
f…
RE: The best way to render text in D3D12 of https://www.gamedev.net/forums/forum/5-graphics-and-gpu-programming/
Now you can display plain text by calling two C++ functions.
Refactored text rendering code from DirectXTK12. Everything unnecessary has been removed, only for Windows, headers only.…
hello JoeJ,
thank you very much for your very informative post.
I was so busy with other problems, that i did not spend on this topy and forgot to give you a positive feedback. ( please forgive me )
It helped me a lot to understand and how to keep the size of the “reserved vram small”, because m…
I have so follow up question:
- Did you notice significant spikes when creating a new root signature that is not yet in you pool ? I've yet come around profiling anything so that I didn't know whether it could be an option.
I haven't seen any spikes for the root signature creation. But keep in mi…
FIXED
Hi! Guys! Recently,I am trying to write a PBR pipeline in my DirectX12 app.And I use compute shader to generate irradiance IBL , specular IBL and BRDF Lut before app running. Although the app spent much time to initialize,the app can run well. But after I run the app several times, when I run my ap…
@frob Yes.I am trying to use PIX to find where the problem is. But,you know,I am a freshman in DirectX. So the process is a bit difficult for me.Could you please tell me some good tutorials about DirectX12 or PIX?Thank you again for this!
pbivens67 said:
I am trying to install dx12 using vs 2019, is there any good tutorials available?
For DX12 itself you shouldn't need to install anything, at least not on Windows 10 and up. When you install Visual Studio you might have to click the appropriate option. I think there's one like “Game De…
Thanks a lot!!!
I have completely overlooked this hint in documentation. I'm fully aware of performance implications. The above example was just MRS to show the problem not real usage. I agree that for CSM the TextureArray makes more sense (unless different resolution for each cascade map is u…
iGrfx said:
It seems that this problem is not a calculation problem but caused by the storage precision?
I'd call that precision related numerical drift, but not sure if that's a valid description.
However, even if the math is right, precision is always limited. And accumulation causes small errors su…
(This Image is What I want to implement)
I am attempting Post Processing using Compute Shader to implement Light Shaft for multiple Spot Lights in the DX12 framework.
The first thing I tried was the method at the following link:https://gitlab.com/tomasoh/100_procent_more_volume/-/blob/master/shaders/…
One fence is totally fine. You just need to increase the value of the fence for each frame. When you call SetEventOnCompletion it's saying “signal this event when the value of the fence is greater than or equal to the Value parameter”, so as long as the you keep increasing the fence value you can k…
ah thank you
Thanks, this made it a lot clearer for me
Yeah but the LDS is 32kb if am not mistaken this is too small for my problem, I may do that in the future but for now I need a bigger size array until i get the hang of compute shader.
Earlier this year, Collabora announced a new project with Microsoft: the implementation of OpenCL & OpenGL to DirectX translation layers. Here's the latest on this work, including the steps taken to improve the performance of the OpenGL-On-D3D12 driver.