Get the Bing + MSN extension Breaking news from around the world Get the Bing + MSN extension

Add it now
This site uses cookies for analytics, personalized content and ads. By continuing to browse this site, you agree to this use. Learn more
Skip to main content
Microsoft
PIX
PIX
  • Home
  • DevBlogs
    • App Center
    • Azure DevOps
    • Visual Studio
    • Visual Studio Code
    • Visual Studio for Mac
    • Azure Artifacts
    • Azure Boards
    • Azure Pipelines
    • Azure Repos
    • Azure Test Plans
    • DevOps
    • C++
    • Java
    • JavaScript
    • PowerShell
    • Python
    • Q#
    • Scripting
    • TypeScript
    • Visual Basic
    • Visual C#
    • Visual F#
    • .NET
    • ASP.NET
    • NuGet
    • Xamarin
    • Apps for Windows
    • Azure Government
    • Bing Dev Center
    • Command Line
    • DirectX Developer Blog
    • IoT Developer
    • Microsoft Edge Dev
    • Microsoft Azure
    • Office 365 Development
    • Old New Thing
    • PIX on Windows
    • Premier Developer
    • Azure Cosmos DB
    • OData
    • Revolutions R
    • SQL Server Data Tools

    DirectX Raytracing

    PIX on Windows includes support for the final DirectX Raytracing (DXR) that’s part of the Windows 10 October 2018 Update (a.k.a. “RS5”). This allows you to debug your raytracing code by capturing and analyzing your DXR applications with the same tools that you would use to capture and analyze your other D3D12 applications.

     

    Getting Started

    • Follow the instructions for setting up your DXR development environment.
    • Download and install the latest version of PIX from our blog.

     

    Features

    Once you are set up, you can launch and take a GPU Capture of your DXR application. You can begin analyzing your capture by opening it and examining your DXR API calls in your event list:

     

     

    After starting analysis, you can select your DispatchRays calls and see the resources it used by looking at the “Pipeline” view in the “Pipeline” tab:

     

    Clicking on an entry in the ‘Shader Tables’ group on the left-hand side will show how the GPU will interpret the selected shader table:

    Each remaining ‘group’ within this list (e.g. ‘RayGenMain’) lists the resources used by a particular shader record within one of the shader tables. Its bolded title, such as “MyHitGroup (Record 0)”, shows the shader record’s export name within your state object together with the shader record’s index within its shader table (if applicable). Any shader record that uses resources, including your Ray Generation shader record and/or entries in your Hit Group, Miss Shader, or Callable Shader shader tables, will be displayed in this list. For each shader record, PIX lists the resources bound to its shader, including all resources bound via global and/or local root arguments.

    For each resource bound to a shader, you can click on the resource to view it in the same way that you would view resources for rasterization or compute shaders. You can also visualize the raytracing acceleration structures bound to your raytracing shaders:

     

    (screenshot courtesy of Nir Benty and NVIDIA’s Falcor)

    Note that PIX visualizes acceleration structures after they are built by reading data back from the GPU. This means that the visualization will include any optimizations added by the driver during the build process, such as combined geometry.

    The “API Object Table” can be used to view your DXR API objects, such as your state objects, together with any other D3D12 API objects that were used in your capture. In particular, you can view the subobjects that make up your state objects in an easy-to-understand format:

     

     

    Known Issues and Restrictions

    There are some additional restrictions on DXR API usage that your application must follow before you can take a GPU Capture of it. The restrictions are:

    • Your acceleration structures must be stored in committed or placed resources

    Furthermore, some features in PIX show incomplete or incorrect data for GPU Captures that use DXR. These features will support DXR in a future release of PIX on Windows. These features include:

    • Dr. PIX
    • Shader Debugging

    For applications using the DXR Fallback Layer, both GPU Captures and Timing Captures will capture the compute work generated by the Fallback Layer as seen by the D3D12 runtime.

    Relevant Links
  • Download
  • Documentation
  • Known Issues
  • Videos
  • Support
  • WinPixEventRuntime
  • Roadmap
  • Top Bloggers
    Avatar

    Damyan Pepper
    Dev Lead

    Steven Pratschner

    Steven Pratschner
    Program Manager

    Avatar

    Austin Kinross
    Developer

    Cooper Partin

    Cooper Partin
    Developer

    Avatar

    Stephen Hitchcock
    Developer

    Archive
  • December 2019
  • September 2019
  • August 2019
  • July 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
  • February 2019
  • December 2018
  • October 2018
  • July 2018
  • June 2018
  • March 2018
  • November 2017
  • October 2017
  • September 2017
  • July 2017
  • June 2017
  • May 2017
  • April 2017
  • March 2017
  • February 2017
  • January 2017
  • Stay informed

    Login
    What's new
    • Surface Pro X
    • Surface Laptop 3
    • Surface Pro 7
    • Windows 10 apps
    • Office apps
    Microsoft Store
    • Account profile
    • Download Center
    • Microsoft Store support
    • Returns
    • Order tracking
    • Store locations
    • Buy online, pick up in store
    • In-store events
    Education
    • Microsoft in education
    • Office for students
    • Office 365 for schools
    • Deals for students & parents
    • Microsoft Azure in education
    Enterprise
    • Azure
    • AppSource
    • Automotive
    • Government
    • Healthcare
    • Manufacturing
    • Financial services
    • Retail
    Developer
    • Microsoft Visual Studio
    • Windows Dev Center
    • Developer Network
    • TechNet
    • Microsoft developer program
    • Channel 9
    • Office Dev Center
    • Microsoft Garage
    Company
    • Careers
    • About Microsoft
    • Company news
    • Privacy at Microsoft
    • Investors
    • Diversity and inclusion
    • Accessibility
    • Security
    English (United States)
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2019