direct3d Questions
1
Solved
Shaders have invocations, which each are (usually) given a unique set of input data, and each (usually) write to their own separate output data. When you issue a rendering command, how many times d...
2
Solved
I got the following error when I was debugging my D3D application in VS2015.
D3D11CreateDevice: Flags (0x2) were specified which require the D3D11 SDK Layers for Windows 10, but they are not prese...
Ire asked 16/12, 2015 at 17:35
2
Solved
How do I create a cube map in D3D11 from 6 images? All the examples I've found use only one .dds. Specifically, how do I upload individual faces of the cube texture?
Spears asked 14/10, 2013 at 15:43
17
Solved
There is something I have never understood. How can a great big PC game like GTA IV use 50% of my CPU and run at 60fps while a DX demo of a rotating Teapot @ 60fps uses a whopping 30% ?
Volvulus asked 7/2, 2010 at 17:19
5
So, Im using D3D in a windowed application.
I inited D3D with the following parameters:
windowed: true;
backbufferformat: D3DFMT_X8R8G8B8;
presentinterval: D3DPRESENT_INTERVAL_ONE;
swapeffect: DI...
6
I'm trying to do vertical synced renders so that exactly one render is done per vertical sync, without skipping or repeating any frames. I would need this to work under Windows 7 and (in the future...
1
Solved
In my D3D 11 projects, I always add
#if (defined(DEBUG) || defined(_DEBUG))
deviceFlags |= D3D11_CREATE_DEVICE_DEBUG;
#endif /* (defined(DEBUG) || defined(_DEBUG)) */
to the device creation fla...
Joule asked 27/9, 2015 at 14:50
1
In both the OpenGL and Direct3D rendering pipelines, the geometry shader is processed after the vertex shader and before the fragment/pixel shader. Now obviously processing the geometry shader afte...
Armil asked 29/8, 2015 at 22:10
7
Solved
I'm working on a C++ DirectX 2D game and I need keyboard and mouse input.
Wikipedia says:
Microsoft recommends that new applications make use of the Windows message loop for keyboard and mouse i...
Quartic asked 29/1, 2010 at 21:18
1
Solved
Currently going through microsofts examples, it is noticable, that only one cbv_srv_uav heap is used per commandlist (+ maybe on additional sampler heap).
Is it possible to use multiple heaps per ...
Malina asked 20/8, 2015 at 9:12
1
Solved
i understand what the QueryInterface method actually does- it only returns a pointer to a specific interface. But my question is, why would i want to use this method?
I mean, what is the differenc...
2
Solved
The MSDN page on DXGI gives instructions on how to handle fullscreen resolutions different from the desktop resolution. It says to call IDXGISwapChain::ResizeTargets() before calling IDXGISwapChain...
2
Solved
I'm making progress developing a '3d desktop' directx app that needs to display the current contents of a desktop window (e.g. "Calculator") as a 2D texture on a rectangular surface in directx (11)...
Martensite asked 26/11, 2014 at 13:49
1
I have a Direct2D render target created with ID2D1Factory::CreateDxgiSurfaceRenderTarget. When I receive a WM_SIZE message, I try to resize the corresponding swap chain by calling IDXGISwapChain::R...
3
I am creating a multi-monitor full screen DXGI/D3D application. I am enumerating through the available outputs and adapters in preparation of creating their swap chains.
When creating my swap chai...
Crushing asked 23/3, 2013 at 4:19
2
Solved
I'm a relatively ok-ish programmer, but my main focus has been in application development with C# so far. I have almost zero experience with game development and 3d engines - I've begun readi...
Ceremony asked 18/4, 2015 at 16:24
4
Solved
I want to draw DirectX content so that it appears to be floating over top of the desktop and any other applications that are running. I also need to be able to make the directx content semi-transpa...
Kyoko asked 29/9, 2008 at 11:5
2
I'm going through the DirectX Math/XNA Math library, and I got curious when I read about the alignment requirements for XMVECTOR (Now DirectX::XMVECTOR), and how it is expected of you to use XMFLOA...
Aspersion asked 2/5, 2014 at 1:11
1
Solved
I'm working on an application that uses SharpDX and the SharpDX Toolkit to draw simple 3D shapes, and the Geometrics.Desktop sample was very helpful in getting started. Now I'm trying to make some ...
Haswell asked 30/10, 2014 at 6:49
1
Solved
Hello Direct3D experts,
I am currently developing an application with Direct3D in order to capture my two monitors desktop (used as extended desktop of course).
The following code works well but I...
Maganmagana asked 5/9, 2014 at 8:46
5
Solved
I've been playing around with Direct3D 11 a little bit lately and have been frustrated by the lack of documentation on the basics of the API (such as simple geometry rendering). One of the points o...
Liquor asked 28/2, 2010 at 20:21
1
Solved
I have not yet used more complicated CBs like this here but, from what I understand, my C++ alignment and packing has to match what HLSL expects. So I'm trying to figure out the rules so I can pred...
2
Solved
Using the new XMVECTOR and XMFLOAT3 classes what is the best way to get the distance between 2 points? I couldn't find a function that does it in XMVector* family of functions so I came up with the...
Disabuse asked 24/4, 2012 at 4:46
1
I have been playing with Direct3D 11 and was surprised to discover that an HLSL StructuredBuffer<T> must be bound to a Shader Resource View (SRV) whereas a RWStructuredBuffer<T> must be...
Perigee asked 28/3, 2014 at 18:59
1
Solved
Summary (TL:DR version)
Ultimately our goal is to be able to utilize OpenGL ES code in a WPF application natively (i.e. not SharpGL, etc.) and without Airspace or driver issues, possible using Goo...
© 2022 - 2024 — McMap. All rights reserved.