Questions tagged [directx]
The directx tag has no summary.
37 questions
1
vote
0
answers
76
views
Why does my PBR IBL lighting look incorrect?
I followed learnopengl.com IBL tutorial but implemented in on DirectX11, so every shader was converted from GLSL to HLSL. As a result, I have artifacts with some HDRI images and also as I use bloom ...
0
votes
1
answer
129
views
I am rendering the scene four times for four pointlights. Is there any more efficient technique?
I used to render only when changing the positions of the lights and FPS was acceptable, but it turned out that I needed dynamic shadows for animated characters. FPS now does not rise above 58 frames ...
0
votes
1
answer
95
views
What API is exposed by the graphics card's driver to the OS or the apps?
When graphics card vendors like Nvidia / AMD write drivers for their cards, what API is exposed for the OS. Is it APIs like OpenGL / Vulkan / DirectX? If so does the apps that can consume such APIs, ...
0
votes
1
answer
203
views
How to orbit rotate a camera from a C++ program?
I made C++ rendering application that use one camera. The camera has 3 important members: A position(m_position), an horizontal angle(m_hAngle) and a vertical angle(m_vAngle)
The application currently ...
0
votes
1
answer
626
views
Preferred GPU API to use for Steam Deck, Windows, Linux and MacOS support
Good people of the graphics SO community, I am new to Graphics programming or GPU programming in general but I have been a game dev enthusiast for over 4-5 years. I started learning about Graphics ...
0
votes
2
answers
404
views
Storing array of floats within shader
I am about to implement a framerate histogramm chart for a DirectX Renderer.
Ideally I would do this in pure shader code, but for a a histogramm I need to store the timestamps of the last ...
1
vote
0
answers
604
views
DDS BC7 Thumbnails on Windows 10
Is it possible to enable accurate thumbnail previews for DDS files that use the newer DX10 headers (DirectX 10 headers)? It seems there is very limited information about this.
I did find a couple ...
1
vote
0
answers
805
views
Compute shader in DirextX: difference between four kinds of memory barriers
There are four kinds of memory barriers in DirectX. Their names and definitions are:
DeviceMemoryBarrier: Blocks execution of all threads in a group until all ...
2
votes
1
answer
360
views
Is it possible to make a projection matrix to not project in the center?
I have the following projection matrix:
and I need to make a hole in the center of my matrix, something like that: (I don't want to project a custom W and H)
Is that possible ? Thanks.
0
votes
1
answer
1k
views
Billboarding in Vertex Shader
I'm trying to create a vertex shader that billboards a quad. Most resources online show the code to be some variation of the following
...
0
votes
0
answers
120
views
16 bit SNORM format not correctly storing Z component?
I generate a normal GBuffer in my engine, and I store it using a R16G16B16A16_SNORM format like this:
...
0
votes
1
answer
2k
views
Calculating UV coordinates for sampling texture atlas
I have an 8192x8192 texture atlas that contains 1024x1024 shadow maps aligned side by side. I'm trying to calculate the uv coordinates so that I can sample each shadow map appropriately based on the '...
0
votes
1
answer
133
views
DirectX FVF(Flexible Vertex Format ) equivalent in OpenGL/Vulkan?
Is there any directX FVF(Flexible Vertex Format ) equivalent in OpenGL/Vulkan.
2
votes
2
answers
619
views
Why do Nvidia and AMD have to update their drivers for game releases?
I like to know the technical aspects of it. Game developers use APIs like OpenGL or DirectX. The functions provided by these APIs, I would assume, work flawlessly with all graphic cards because they ...
1
vote
0
answers
193
views
Conditionals and branching in shaders
This is a quite wide subject which implies a lot of topics such as the platform or the compiler, but I think that it could be useful for everyone to know more about this.
A common mistake is to think ...