Skip to content

Commit

Permalink
Adds Nsight Graphics project file, and updates the README.
Browse files Browse the repository at this point in the history
  • Loading branch information
acmarrs-nvidia committed Jan 27, 2020
1 parent 8877c9e commit 6759e2a
Show file tree
Hide file tree
Showing 2 changed files with 108 additions and 1 deletion.
106 changes: 106 additions & 0 deletions IntroToDXR.nsight-gfxproj
@@ -0,0 +1,106 @@
{
"extension": "nsight-gfxproj",
"files": [
],
"launcher": {
"activity/cpp/d3d/d3d12replayfencebehavior": "Default",
"activity/cpp/d3d/preferdxillinetables": false,
"activity/cpp/d3d/reportforcefailedqueryinterfaces": true,
"activity/cpp/d3d/reportunknownobjects": true,
"activity/cpp/d3d/syncinterval": "0",
"activity/cpp/d3d/syncshadercollection": false,
"activity/cpp/forcerepaint": false,
"activity/cpp/opengl/delimiter": "SwapBuffers",
"activity/cpp/opengl/noerror": "Application Controlled",
"activity/cpp/raytracing/acceleration_structure_allow_shallow_geometry_copy": false,
"activity/cpp/raytracing/acceleration_structure_collect_to_vidmem": false,
"activity/cpp/raytracing/acceleration_structure_copy_geometry_mode": "Collect Full Builds And Refits",
"activity/cpp/troubleshooting/blockonfirstincompatibility": false,
"activity/cpp/troubleshooting/crashreporting": true,
"activity/cpp/troubleshooting/ignoreincompatibilities": false,
"activity/cpp/troubleshooting/replaythreadpausestrategy": "Auto",
"activity/cpp/troubleshooting/threading": false,
"activity/cpp/vulkan/coherentbuffercollection": true,
"activity/cpp/vulkan/forcedvalidationlayers": "VK_LAYER_LUNARG_parameter_validation; VK_LAYER_LUNARG_object_tracker; VK_LAYER_LUNARG_core_validation",
"activity/cpp/vulkan/forcevalidation": false,
"activity/cpp/vulkan/reserveheap": "0",
"activity/cpp/vulkan/revisionzerodatacollection": true,
"activity/cpp/vulkan/safeobjectlookup": "Auto",
"activity/cpp/vulkan/serializationobjectset": "Only Active",
"activity/cpp/vulkan/unsafepnext": false,
"activity/cpp/vulkan/unweavethreads": false,
"activity/fd/d3d/d3d12replayfencebehavior": "Default",
"activity/fd/d3d/preferdxillinetables": false,
"activity/fd/d3d/reportforcefailedqueryinterfaces": true,
"activity/fd/d3d/reportunknownobjects": true,
"activity/fd/d3d/syncinterval": "0",
"activity/fd/d3d/syncshadercollection": false,
"activity/fd/forcerepaint": false,
"activity/fd/opengl/delimiter": "SwapBuffers",
"activity/fd/opengl/noerror": "Application Controlled",
"activity/fd/raytracing/acceleration_structure_allow_shallow_geometry_copy": false,
"activity/fd/raytracing/acceleration_structure_collect_to_vidmem": false,
"activity/fd/raytracing/acceleration_structure_copy_geometry_mode": "Collect Full Builds And Refits",
"activity/fd/targethud": true,
"activity/fd/troubleshooting/blockonfirstincompatibility": false,
"activity/fd/troubleshooting/collectlinetables": true,
"activity/fd/troubleshooting/collectsassassembly": true,
"activity/fd/troubleshooting/crashreporting": true,
"activity/fd/troubleshooting/driverinstrumentation": true,
"activity/fd/troubleshooting/hardwarepmmetrics": true,
"activity/fd/troubleshooting/ignoreincompatibilities": false,
"activity/fd/troubleshooting/replaythreadpausestrategy": "Auto",
"activity/fd/troubleshooting/serialization": true,
"activity/fd/troubleshooting/shaderdisassembly": true,
"activity/fd/troubleshooting/shaderreflection": true,
"activity/fd/troubleshooting/shadersource": true,
"activity/fd/troubleshooting/threading": false,
"activity/fd/vulkan/coherentbuffercollection": true,
"activity/fd/vulkan/forcedvalidationlayers": "VK_LAYER_LUNARG_parameter_validation; VK_LAYER_LUNARG_object_tracker; VK_LAYER_LUNARG_core_validation",
"activity/fd/vulkan/forcevalidation": false,
"activity/fd/vulkan/reserveheap": "0",
"activity/fd/vulkan/revisionzerodatacollection": true,
"activity/fd/vulkan/safeobjectlookup": "Auto",
"activity/fd/vulkan/serializationobjectset": "Only Active",
"activity/fd/vulkan/unsafepnext": false,
"activity/fd/vulkan/unweavethreads": false,
"activity/fp/d3d/d3d12replayfencebehavior": "Default",
"activity/fp/d3d/preferdxillinetables": false,
"activity/fp/d3d/reportforcefailedqueryinterfaces": true,
"activity/fp/d3d/reportunknownobjects": true,
"activity/fp/d3d/syncinterval": "0",
"activity/fp/d3d/syncshadercollection": false,
"activity/fp/forcerepaint": false,
"activity/fp/opengl/delimiter": "SwapBuffers",
"activity/fp/opengl/noerror": "Application Controlled",
"activity/fp/raytracing/acceleration_structure_allow_shallow_geometry_copy": false,
"activity/fp/raytracing/acceleration_structure_collect_to_vidmem": false,
"activity/fp/raytracing/acceleration_structure_copy_geometry_mode": "Collect No Geometry",
"activity/fp/targethud": true,
"activity/fp/troubleshooting/blockonfirstincompatibility": false,
"activity/fp/troubleshooting/collectlinetables": true,
"activity/fp/troubleshooting/collectsassassembly": true,
"activity/fp/troubleshooting/crashreporting": true,
"activity/fp/troubleshooting/driverinstrumentation": true,
"activity/fp/troubleshooting/hardwarepmmetrics": true,
"activity/fp/troubleshooting/ignoreincompatibilities": false,
"activity/fp/troubleshooting/replaythreadpausestrategy": "Auto",
"activity/fp/troubleshooting/serialization": true,
"activity/fp/troubleshooting/shaderdisassembly": true,
"activity/fp/troubleshooting/shaderreflection": true,
"activity/fp/troubleshooting/shadersource": true,
"activity/fp/troubleshooting/threading": false,
"activity/warpviz/d3d/syncinterval": "0",
"activity/warpviz/framecount": "1",
"activity/warpviz/general/lockclockstobase": true,
"activity/warpviz/general/metricset": "Throughput Metrics",
"platform/win32/arguments": "-width 1920 -height 1080 -vsync 1 -model models\\cinema.obj",
"platform/win32/autoconnect": true,
"platform/win32/environment": "",
"platform/win32/executable": "bin/IntroToDXR.exe",
"platform/win32/workingdir": "../",
"platform/windows/device": "localhost"
},
"uuid": "{b8dea2e6-fd5d-4795-b8fe-705b52e9a40d}",
"version": "1.1"
}
3 changes: 2 additions & 1 deletion README.md
Expand Up @@ -12,7 +12,6 @@ The code sample traces primary rays and includes a simple hit shader that sample
* Windows 10 SDK v1809 (10.0.17763.0) or later. [Download it here.](https://developer.microsoft.com/en-us/windows/downloads/sdk-archive)
* Visual Studio 2017, 2019, or VS Code


## Code Organization

Data is passed through the application using structs. These structs are defined in `Structures.h` and are organized into three categories:
Expand Down Expand Up @@ -84,6 +83,8 @@ Contains new functionality specific to DirectX Raytracing. This includes acceler
* `-model [path]` specifies the file path to a OBJ model

## Suggested Exercises
After building and running the code, first thing I recommend you do is load up the Nsight Graphics project file (IntroToDXR.nsight-gfxproj), and capture a frame of the application running. This will provide a clear view of exactly what is happening as the application is running. [You can download Nsight Graphics here](https://developer.nvidia.com/nsight-graphics).

Once you have a good understanding of how the application works, I encourage you to dig deeper into DXR by removing limitations of the current code and adding new rendering features. I suggest:

* Add antialiasing by casting multiple rays per pixel.
Expand Down

0 comments on commit 6759e2a

Please sign in to comment.