DirectX Graphics 示例

这个软件源包含了DirectX图形样本,展示了如何在Windows上构建图形密集型应用程序。「This repo contains the DirectX Graphics samples that demonstrate how to build graphics intensive applications on Windows.」

  • Owner: microsoft/DirectX-Graphics-Samples
  • Platform: Windows
  • License:: MIT License
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

DirectX-Graphics-Samples

This repo contains the DirectX 12 Graphics samples that demonstrate how to build graphics intensive applications for Windows 10. We invite you to join us at our discord server. See our YouTube channel for tutorials, our spec repo for engineering specs of our features and devblogs for blog posts. Follow us on Twitter @DirectX12 for the latest! See the Related Links section for our full list of DX12-related links.

API Samples

In the Samples directory, you will find samples that attempt to break off specific features and specific usage scenarios into bite-sized chunks. For example, the ExecuteIndirect sample will show you just enough about execute indirect to get started with that feature without diving too deep into multiengine whereas the nBodyGravity sample will delve into multiengine without touching on the execute indirect feature etc. By doing this, we hope to make it easier to get started with DirectX 12.

Recent API Sample Updates:

  1. Real-Time Denoised Raytraced Ambient Occlusion: This sample implements a real-time denoiser for 1spp Ambient Occlusion raytraced via DirectX Raytracing.

D3D12 Raytracing Real-Time Denoised Ambient Occlusion GUI

MiniEngine: A DirectX 12 Engine Starter Kit

In addition to the samples, we are announcing the first DirectX 12 preview release of the MiniEngine.

It came from a desire to quickly dive into graphics and performance experiments. We knew we would need some basic building blocks whenever starting a new 3D app, and we had already written these things at countless previous gigs. We got tired of reinventing the wheel, so we established our own core library of helper classes and platform abstractions. We wanted to be able to create a new app by writing just the Init(), Update(), and Render() functions and leveraging as much reusable code as possible. Today our core library has been redesigned for DirectX 12 and aims to serve as an example of efficient API usage. It is obviously not exhaustive of what a game engine needs, but it can serve as the cornerstone of something new. You can also borrow whatever useful code you find.

Some features of MiniEngine

  • High-quality anti-aliased text rendering
  • Real-time CPU and GPU profiling
  • User-controlled variables
  • Game controller, mouse, and keyboard input
  • A friendly DirectXMath wrapper
  • Perspective camera supporting traditional and reversed Z matrices
  • Asynchronous DDS texture loading and ZLib decompression
  • Large library of shaders
  • Easy shader embedding via a compile-to-header system
  • Easy render target, depth target, and unordered access view creation
  • A thread-safe GPU command context system (WIP)
  • Easy-to-use dynamic constant buffers and descriptor tables

Requirements

Contributing

We're always looking for your help to fix bugs and improve the samples. File those pull requests and we'll be happy to take a look.

Find more information on DirectX 12 on our blog: http://blogs.msdn.com/b/directx/

Troubleshooting information for this repository can be found in the site Wiki.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Overview

Name With Ownermicrosoft/DirectX-Graphics-Samples
Primary LanguageC++
Program languageC++ (Language Count: 5)
PlatformWindows
License:MIT License
Release Count145
Last Release NameMicrosoftDocs-Samples (Posted on )
First Release Namev1.0.150729 (Posted on )
Created At2015-06-03 21:34:47
Pushed At2024-03-25 17:34:23
Last Commit At2024-03-25 10:34:22
Stargazers Count5.7k
Watchers Count412
Fork Count2k
Commits Count733
Has Issues Enabled
Issues Count452
Issue Open Count73
Pull Requests Count316
Pull Requests Open Count9
Pull Requests Close Count57
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private
To the top