I am just learning "introduction to 3D game programming with DirectX 12".Running the example code in initialize d3d(chapter 4),when I wanna use 4xmsaa,something wrong was happened,like the follow figure,please help me. wrong figure
1
There are 1 best solutions below
Related Questions in DIRECTX-12
- DXGI flip model locked to vsync
- How should I allocate/populate/update memory on GPU for different type of scene objects?
- How to detect if developer mode is active on windows 10?
- NAudio and DirectX 12
- Direct3D 12 / PIX - Pixel Shader not getting invoked
- Typed SRV always fetches zero
- Shared local memory in PIX debugger
- What is the memory footprint of a descriptor heap?
- How to handle material textures when deferred shading?
- Understanding the Execution Duration under PIX 2303.30
- How should I bind various types of material data to the ray tracing rendering pipeline in DirectX12?
- What do these terms "L0+", "L0" and "L+" stand for with respect to memory pool?
- Understanding the Occupancy under PIX 2303.30
- Can texture arrays be a root descriptor in an hlsl root signature
- Create DXGIFactory
Related Questions in MSAA
- Can linear filtering be used for an FBO blit of an MSAA texture to non-MSAA texture?
- CheckMultisampleQualityLevels(...) says the card does not support MSAA (which is not true for e.g. my GeForce GTX 780)?
- OpenGL 3.3 MSAA deferred shading
- Different results with multisampling in DirectX 9 vs OpenGL
- I receive INVALID OPERATION when I use glBlitFramebuffer to implement MSAA
- Why does SetWinEventHook sometimes stop/pause monitoring events?
- How can I lock memory when creating a device in Directx9?
- Which flag should I use when enabling MSAA in Directx9?
- A tool for browsing accessibility tree of an application
- Multisampled rendering to texture
- How Do I Enable MSAA for a Render to Texture iOS App
- Framebuffer is incomplete and throws error, but MSAA is still working
- MSAA and vertex interpolation cause out-of-range values
- Is texture filtering an anti-aliasing technique?
- dx12 open 4x msaa failed
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
In keeping with the DirectX 12 design philosophy of "no magic runtime behavior", you aren't allowed to create a backbuffer as MSAA. This is because the video output hardware can't actually present MSAA backbuffers, so they have to be resolved to a single pixel each at some point in the pipeline. In DirectX 11, this was done 'behind the scenes' when you created an MSAA backbuffer. In DirectX 12, you are responsible for creating the MSAA render target texture yourself, and then perform the resolve to the backbuffer -or- run some other postprocess that does the resolve. The set up is exactly the same, just more verbose and explicit and under application control instead of being 'magic'.
See the SimpleMSAA12 sample.
BTW, if you had enabled DXGI debugging, you'd have gotten some specific debug diagnostic output when you tried to create the 4x MSAA backbuffer:
Take a look at this blog post for details on enabling DXGI debugging in your project, or take a look at the implementation of DeviceResources.