Skip to content

Commit 9c0ebc7

Browse files
author
Linnea May
committed
Merge remote-tracking branch 'origin/master' into user/linneamay/stream-readme
2 parents 551ebba + b7c5836 commit 9c0ebc7

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed

Samples/WinMLSamplesGallery/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ To learn how to implement these features in your application, or unlock addition
4444

4545
- [Adapter Selection](./WinMLSamplesGallery/Samples/AdapterSelection): Learn how to use [Windows ML](https://docs.microsoft.com/en-us/windows/ai/windows-ml/) with different adapters based on your power and performance needs.
4646

47+
- [DX Resource Binding in ORT](./WinMLSamplesGallery/Samples/DXResourceBindingORT): Learn how to bind and evaluate DirectX Resources using [ONNX Runtime](https://onnxruntime.ai/docs/).
48+
4749
- [Stream Effect](./WinMLSamplesGallery/Samples/StreamEffect): Learn how to use [Windows ML](https://docs.microsoft.com/en-us/windows/ai/windows-ml/) with real-time inference on video streams.
4850

4951
## Feedback
996 KB
Loading
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Windows ML Samples Gallery: DX Resource Binding in ORT
2+
Learn how to bind and evaluate DirectX Resources using ONNX Runtime.
3+
4+
The sample showcases how to create and bind OrtValue objects from ID3D12 Resources using the ONNX Runtime C-API.
5+
6+
<img src="Docs/DXResourceBindingScreenshot.png" width="650"/>
7+
8+
- [Getting Started](#getting-started)
9+
- [Feedback](#feedback)
10+
- [External Links](#external-links)
11+
12+
## Getting Started
13+
- Check out the [C# source](https://github.com/microsoft/Windows-Machine-Learning/blob/master/Samples/WinMLSamplesGallery/WinMLSamplesGallery/Samples/DXResourceBindingORT/DXResourceBindingORT.xaml.cs).
14+
- Check out the [C++ source](https://github.com/microsoft/Windows-Machine-Learning/blob/master/Samples/WinMLSamplesGallery/WinMLSamplesGalleryNative/DXResourceBinding.cpp).
15+
- Learn how to [copy a Texture2D into a Resource Dimension Buffer](https://github.com/microsoft/Windows-Machine-Learning/blob/master/Samples/WinMLSamplesGallery/WinMLSamplesGalleryNative/D3D12Quad.cpp#L371)
16+
- Learn how to [create an ORT tensor from a D3D Resource](https://github.com/microsoft/Windows-Machine-Learning/blob/master/Samples/WinMLSamplesGallery/WinMLSamplesGalleryNative/ORTHelpers.cpp#L121)
17+
- Learn how to [preprocess](https://github.com/microsoft/Windows-Machine-Learning/blob/master/Samples/WinMLSamplesGallery/WinMLSamplesGalleryNative/ORTHelpers.cpp#L48) and [evaluate](https://github.com/microsoft/Windows-Machine-Learning/blob/master/Samples/WinMLSamplesGallery/WinMLSamplesGalleryNative/ORTHelpers.cpp#L95) an ORT tensor using ORT with DML
18+
19+
## Feedback
20+
Please file an issue [here](https://github.com/microsoft/Windows-Machine-Learning/issues/new) if you encounter any issues with the Windows ML Samples Gallery or wish to request a new sample.
21+
22+
## External Links
23+
- [Onnx Runtime](https://onnxruntime.ai/docs/)
24+
- [Direct 3D 12](https://learn.microsoft.com/en-us/windows/win32/direct3d12/what-is-directx-12-)
25+
- [DirectML](https://github.com/microsoft/directml)
26+
- [Windows ML Library (WinML)](https://docs.microsoft.com/en-us/windows/ai/windows-ml/)

0 commit comments

Comments
 (0)