Sitelet https://github.com/microsoft/DirectX-Graphics-Samples/pull/932
Skip to content

Converted all samples to use AgilitySDK 1.618.3 - #932

Merged
alecardoso-tech merged 33 commits into
microsoft:masterfrom
alecardoso-tech:user/alecardoso/AgilitySDK
Nov 11, 2025
Merged

alecardoso-tech merged 33 commits into
microsoft:masterfrom
alecardoso-tech:user/alecardoso/AgilitySDK

Conversation

@alecardoso-tech

@alecardoso-tech alecardoso-tech commented Nov 11, 2025 •

Copy link
Copy Markdown
Contributor

Converted all samples to use AgilitySDK 1.618.3

List of samples converted:

  • D3D1211On12 (previously merged in PR)
  • D3D12Bundles
  • D3D12DepthBoundsTest
  • D3D12DynamicIndexing
  • D3D12ExecuteIndirect
  • D3D12Fullscreen
  • D3D12HDR
  • D3D12HelloWorld\src\HelloBundles
  • D3D12HelloWorld\src\HelloConstBuffers
  • D3D12HelloWorld\src\HelloFrameBuffering
  • D3D12HelloWorld\src\HelloGenericPrograms
  • D3D12HelloWorld\src\HelloMeshNodes
  • D3D12HelloWorld\src\HelloTexture
  • D3D12HelloWorld\src\HelloTightAlignment
  • D3D12HelloWorld\src\HelloTriangle
  • D3D12HelloWorld\src\HelloVADecode
  • D3D12HelloWorld\src\HelloVAEncode
  • D3D12HelloWorld\src\HelloVAResourceInterop
  • D3D12HelloWorld\src\HelloWindow
  • D3D12HelloWorld\src\HelloWorkGraphs
  • D3D12HelloWorld\src\WorkGraphsSandbox
  • D3D12HeterogeneousMultiadapter
  • D3D12LinkedGpus\src\D3DX12AffinityLayer
  • D3D12LinkedGpus\src\LinkedGpus
  • D3D12LinkedGpus\src\LinkedGpusAffinity
  • D3D12LinkedGpus\src\SingleGpu
  • D3D12MeshShaders\src\DynamicLOD
  • D3D12MeshShaders\src\MeshletCull
  • D3D12MeshShaders\src\MeshletGenerator
  • D3D12MeshShaders\src\MeshletInstancing
  • D3D12MeshShaders\src\MeshletRender
  • D3D12MeshShaders\src\WavefrontConverter
  • D3D12Multithreading
  • D3D12nBodyGravity
  • D3D12On7
  • D3D12PipelineStateCache
  • D3D12PredicationQueries
  • D3D12Raytracing\src\D3D12OMMOfflineBaker
  • D3D12Raytracing\src\D3D12RaytracingHelloShaderExecutionReordering
  • D3D12Raytracing\src\D3D12RaytracingHelloWorld
  • D3D12Raytracing\src\D3D12RaytracingLibrarySubobjects
  • D3D12Raytracing\src\D3D12RaytracingMiniEngineSample
  • D3D12Raytracing\src\D3D12RaytracingOpacityMicromaps
  • D3D12Raytracing\src\D3D12RaytracingProceduralGeometry
  • D3D12Raytracing\src\D3D12RaytracingRealTimeDenoisedAmbientOcclusion
  • D3D12Raytracing\src\D3D12RaytracingSakuraForestSER
  • D3D12Raytracing\src\D3D12RaytracingSimpleLighting
  • D3D12ReservedResources
  • D3D12Residency
  • D3D12SM6WaveIntrinsics
  • D3D12SmallResources
  • D3D12VariableRateShading
  • D3D12xGPU

@alecardoso-tech
alecardoso-tech requested review from amarpMSFT and Copilot and removed request for Copilot November 11, 2025 00:58

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR converts multiple D3D12 samples to use AgilitySDK version 1.618.3, replacing the previous approach of including d3dx12.h locally. The changes add NuGet package references for Microsoft.Direct3D.D3D12 (version 1.618.3), export SDK version symbols, and include various code quality fixes.

Key Changes:

  • Addition of Microsoft.Direct3D.D3D12 NuGet package (version 1.618.3) to all samples
  • Removal of local d3dx12.h header file references
  • Export of D3D12SDKVersion (618) and D3D12SDKPath symbols for Agility SDK
  • Update of WinPixEventRuntime package version
  • Code quality improvements (type conversions, function calls)

Reviewed Changes

Copilot reviewed 177 out of 203 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
packages.config files Added Microsoft.Direct3D.D3D12 v1.618.3 package reference
.vcxproj files Added NuGet import statements and validation targets
.vcxproj.filters files Removed d3dx12.h from project filters
Source .cpp files Added SDK version exports and code fixes
D3D12RaytracingSakuraForestSER Updated DirectXTK/DirectXTex dependencies, fixed type conversions
D3D12RaytracingOpacityMicromaps Updated package versions, fixed XMVectorSet calls
D3D12Multithreading Fixed pow/powf function call
D3D12nBodyGravity Fixed sqrt/sqrtf function call

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread Samples/Desktop/D3D12Multithreading/src/D3D12Multithreading.cpp
</PropertyGroup>
<Error Condition="!Exists('..\packages\Microsoft.Direct3D.D3D12.1.715.0-preview\build\native\Microsoft.Direct3D.D3D12.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.Direct3D.D3D12.1.715.0-preview\build\native\Microsoft.Direct3D.D3D12.props'))" />
<Error Condition="!Exists('..\packages\Microsoft.Direct3D.D3D12.1.715.0-preview\build\native\Microsoft.Direct3D.D3D12.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.Direct3D.D3D12.1.715.0-preview\build\native\Microsoft.Direct3D.D3D12.targets'))" />
<Error Condition="!Exists('..\packages\Microsoft.Direct3D.DXC.1.8.2404.55-mesh-nodes-preview\build\native\Microsoft.Direct3D.DXC.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.Direct3D.DXC.1.8.2404.55-mesh-nodes-preview\build\native\Microsoft.Direct3D.DXC.props'))" />

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

samples that use preview sdks should not be changed.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there are probably other examples, this is just one that I noticed.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reverted changes from all the samples that use preview nuget packages

@alecardoso-tech
alecardoso-tech merged commit 1e800dc into microsoft:master Nov 11, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants