Sample code for the book "Introduction to 3D Game Programming with DirectX 12"
Switch branches/tags
Nothing to show
Clone or download
d3dcoder
d3dcoder Fixed crashes in SSAO and CharacterAnimation sample
A d3d12 update made visible some errors that did not cause crashes
before (at least on some NVIDIA hardware).  SSAO requires an SRV to the
application depth buffer.  However, the depth buffer resource format was
specified as DXGI_FORMAT_D24_UNORM_S8_UINT.  Therefore, it was an error
to create an SRV to this resource with format
DXGI_FORMAT_R24_UNORM_X8_TYPELESS.  The fix is to create the depth
buffer resource with the typless format DXGI_FORMAT_R24G8_TYPELESS so
that we can create a DSV with format DXGI_FORMAT_D24_UNORM_S8_UINT and
an SRV with format DXGI_FORMAT_R24_UNORM_X8_TYPELESS.

Also fixed a small error with the SSAO normal map resource not being in
the expected initial state.
Latest commit 4cfd00a Nov 13, 2016
Permalink
Failed to load latest commit information.
Chapter 1 Vector Algebra/XMVECTOR Initial Commit Mar 25, 2016
Chapter 10 Blending/BlendDemo Initial Commit Mar 25, 2016
Chapter 11 Stenciling/StencilDemo Initial Commit Mar 25, 2016
Chapter 12 The Geometry Shader/TreeBillboards Initial Commit Mar 25, 2016
Chapter 13 The Compute Shader Initial Commit Mar 25, 2016
Chapter 14 The Tessellation Stages Initial Commit Mar 25, 2016
Chapter 15 First Person Camera and Dynamic Indexing/CameraAndDynamicIndexing Initial Commit Mar 25, 2016
Chapter 16 Instancing and Frustum Culling/InstancingAndCulling Fixed instance count bug. Sep 25, 2016
Chapter 17 Picking/Picking Initial Commit Mar 25, 2016
Chapter 18 Cube Mapping Initial Commit Mar 25, 2016
Chapter 19 Normal Mapping/NormalMap Initial Commit Mar 25, 2016
Chapter 2 Matrix Algebra/XMMATRIX Initial Commit Mar 25, 2016
Chapter 20 Shadow Mapping/Shadows Initial Commit Mar 25, 2016
Chapter 21 Ambient Occlusion/Ssao Fixed crashes in SSAO and CharacterAnimation sample Nov 12, 2016
Chapter 22 Quaternions/QuatDemo Initial Commit Mar 25, 2016
Chapter 23 Character Animation/SkinnedMesh Fixed crashes in SSAO and CharacterAnimation sample Nov 12, 2016
Chapter 4 Direct3D Initialization/Init Direct3D Initial Commit Mar 25, 2016
Chapter 6 Drawing in Direct3D/Box Initial Commit Mar 25, 2016
Chapter 7 Drawing in Direct3D Part II Initial Commit Mar 25, 2016
Chapter 8 Lighting Initial Commit Mar 25, 2016
Chapter 9 Texturing Initial Commit Mar 25, 2016
Common Fixed crashes in SSAO and CharacterAnimation sample Nov 12, 2016
Textures Initial Commit Mar 25, 2016
.gitattributes 🎉 Added .gitattributes & .gitignore files Mar 25, 2016
.gitignore 🎉 Added .gitattributes & .gitignore files Mar 25, 2016