Skip to content

Commit a57b9b7

Browse files
authored
March 20, 2025 (#542)
1 parent aa92583 commit a57b9b7

File tree

8 files changed

+44
-18
lines changed

8 files changed

+44
-18
lines changed

.nuget/directxtk_desktop_2019.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ SpriteBatch - simple & efficient 2D sprite rendering
3030
SpriteFont - bitmap based text rendering
3131
VertexTypes - structures for commonly used vertex data formats
3232
WICTextureLoader - WIC-based image file texture loader</description>
33-
<releaseNotes>Matches the October 28, 2024 release on GitHub.
33+
<releaseNotes>Matches the March 20, 2025 release on GitHub.
3434

3535
DirectX Tool Kit for Audio in this package uses XAudio 2.8 to support Windows 8.1.</releaseNotes>
3636
<projectUrl>http://go.microsoft.com/fwlink/?LinkId=248929</projectUrl>

.nuget/directxtk_desktop_win10.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ SpriteBatch - simple &amp; efficient 2D sprite rendering
3030
SpriteFont - bitmap based text rendering
3131
VertexTypes - structures for commonly used vertex data formats
3232
WICTextureLoader - WIC-based image file texture loader</description>
33-
<releaseNotes>Matches the October 28, 2024 release on GitHub.
33+
<releaseNotes>Matches the March 20, 2025 release on GitHub.
3434

3535
DirectX Tool Kit for Audio in this package uses XAudio 2.9 which requires Windows 10 or later.</releaseNotes>
3636
<projectUrl>http://go.microsoft.com/fwlink/?LinkId=248929</projectUrl>

.nuget/directxtk_uwp.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ SpriteBatch - simple &amp; efficient 2D sprite rendering
3030
SpriteFont - bitmap based text rendering
3131
VertexTypes - structures for commonly used vertex data formats
3232
WICTextureLoader - WIC-based image file texture loader</description>
33-
<releaseNotes>Matches the October 28, 2024 release on GitHub.</releaseNotes>
33+
<releaseNotes>Matches the March 20, 2025 release on GitHub.</releaseNotes>
3434
<projectUrl>http://go.microsoft.com/fwlink/?LinkId=248929</projectUrl>
3535
<repository type="git" url="https://github.com/microsoft/DirectXTK.git" />
3636
<icon>images\icon.jpg</icon>

Audio/AudioEngine.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -603,14 +603,14 @@ HRESULT AudioEngine::Impl::Reset(const WAVEFORMATEX* wfx, const wchar_t* deviceI
603603
mX3DCalcFlags |= X3DAUDIO_CALCULATE_REDIRECT_TO_LFE;
604604
}
605605

606-
if (mEngineFlags & AudioEngine_ZeroCenter3D)
606+
if (!(mEngineFlags & AudioEngine_DisableDopplerEffect))
607607
{
608-
mX3DCalcFlags |= X3DAUDIO_CALCULATE_ZEROCENTER;
608+
mX3DCalcFlags |= X3DAUDIO_CALCULATE_DOPPLER;
609609
}
610610

611-
if (!(mEngineFlags & AudioEngine_DisableDopplerEffect))
611+
if (mEngineFlags & AudioEngine_ZeroCenter3D)
612612
{
613-
mX3DCalcFlags |= X3DAUDIO_CALCULATE_DOPPLER;
613+
mX3DCalcFlags |= X3DAUDIO_CALCULATE_ZEROCENTER;
614614
}
615615

616616
//

CHANGELOG.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,19 @@ Release available for download on [GitHub](https://github.com/microsoft/DirectXT
66

77
## Release History
88

9+
### March 20, 2025
10+
* C++17 `std::byte` support for `FromMemory` functions
11+
* GamePad, Keyboard, and Mouse _GameInput_ implementation now supports both v0 and v1 of the API
12+
* SimpleMath changes for Vector2/Vector3 operators to speed up performance particularly in debug builds
13+
* *DirectX Tool Kit for Audio* changes:
14+
* Added more audio engine flags to control X3DAudio usage: `AudioEngine_DisableLFERedirect`, `AudioEngine_DisableDopplerEffect`, `AudioEngine_ZeroCenter3D`
15+
* Repurposed `SoundEffectInstance_UseRedirectLFE` from an internal flag to a per voice override
16+
* Added `SoundEffectInstance_ZeroCenter3D` as a per voice override
17+
* Bug fixes for recent ``IsValid`` methods
18+
* Retired support for Windows 7 and Windows 8.0
19+
* Minor code review
20+
* CMake project updates including support for BUILD_SHARED_LIBS (i.e. DLL vs. static library)
21+
922
### October 28, 2024
1023
* All enums now use ``uint32_t`` as the underlying type rather than ``unsigned long`` or ``int``.
1124
* Added `DDS_LOADER_INGNORE_MIPS` flag to DDSTextureLoader
@@ -119,8 +132,8 @@ Release available for download on [GitHub](https://github.com/microsoft/DirectXT
119132
* Dropped support for legacy Xbox One XDK prior to April 2018
120133

121134
### February 28, 2022
122-
* SimpleMath Matrix updated with ToEuler and Vector3 version of CreateFromYawPitchRoll methods
123-
* SimpleMath Quaternion updated with ToEuler, RotateTowards, FromToRotation, LookRotation, and Angle methods
135+
* SimpleMath Matrix updated with **ToEuler** and Vector3 version of **CreateFromYawPitchRoll** methods
136+
* SimpleMath Quaternion updated with **ToEuler**, **RotateTowards**, **FromToRotation**, **LookRotation**, and **Angle** methods
124137
* Keyboard updated with new IME On/Off v-keys
125138
* Win32 Mouse now uses ``WM_ACTIVATE`` for more robust behavior
126139
* *DirectX Tool Kit for Audio* updated for Advanced Format (4Kn) wavebank streaming
@@ -395,7 +408,7 @@ Release available for download on [GitHub](https://github.com/microsoft/DirectXT
395408
* Added ``forceSRGB`` optional parameter to SpriteFont ctor
396409
* EffectFactory method **EnableForceSRGB** added
397410
* DGSLEffect now defaults to diffuse/alpha of 1
398-
* Removed problematic ABI::Windows::Foundation::Rect interop for SimpleMath
411+
* Removed problematic `ABI::Windows::Foundation::Rect` interop for SimpleMath
399412
* Minor code cleanup
400413

401414
### August 4, 2016

CMakeLists.txt

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33

44
cmake_minimum_required (VERSION 3.20)
55

6-
set(DIRECTXTK_VERSION 1.9.0)
6+
set(DIRECTXTK_VERSION 1.9.1)
7+
8+
if(XBOX_CONSOLE_TARGET STREQUAL "durango")
9+
set(CMAKE_TRY_COMPILE_TARGET_TYPE "STATIC_LIBRARY")
10+
endif()
711

812
project (DirectXTK
913
VERSION ${DIRECTXTK_VERSION}
@@ -139,6 +143,15 @@ set(SHADER_SOURCES
139143
Src/Shaders/SpriteEffect.fx
140144
Src/Shaders/ToneMap.fx)
141145

146+
# Xbox-specific extensions
147+
if(DEFINED XBOX_CONSOLE_TARGET)
148+
set(LIBRARY_HEADERS ${LIBRARY_HEADERS}
149+
Inc/XboxDDSTextureLoader.h)
150+
151+
set(LIBRARY_SOURCES ${LIBRARY_SOURCES}
152+
Src/XboxDDSTextureLoader.cpp)
153+
endif()
154+
142155
# These source files are identical in both DX11 and DX12 version.
143156
set(LIBRARY_HEADERS ${LIBRARY_HEADERS}
144157
Inc/GamePad.h

Inc/XboxDDSTextureLoader.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ namespace Xbox
6969

7070
DIRECTX_TOOLKIT_API
7171
HRESULT __cdecl CreateDDSTextureFromFile(
72-
_In_ ID3D11DeviceX* d3dDevice,
72+
_In_ ID3D11DeviceX* d3dDevice,
7373
_In_z_ const wchar_t* szFileName,
7474
_Outptr_opt_ ID3D11Resource** texture,
7575
_Outptr_opt_ ID3D11ShaderResourceView** textureView,
@@ -84,7 +84,7 @@ namespace Xbox
8484
DIRECTX_TOOLKIT_API
8585
inline HRESULT __cdecl CreateDDSTextureFromMemory(
8686
_In_ ID3D11DeviceX* d3dDevice,
87-
_In_reads_bytes_(ddsDataSize) const uint8_t* ddsData,
87+
_In_reads_bytes_(ddsDataSize) const std::byte* ddsData,
8888
_In_ size_t ddsDataSize,
8989
_Outptr_opt_ ID3D11Resource** texture,
9090
_Outptr_opt_ ID3D11ShaderResourceView** textureView,

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ http://go.microsoft.com/fwlink/?LinkId=248929
66

77
Copyright (c) Microsoft Corporation.
88

9-
**October 28, 2024**
9+
**March 20, 2025**
1010

11-
This package contains the "DirectX Tool Kit", a collection of helper classes for writing Direct3D 11 C++ code for Universal Windows Platform (UWP) apps for Windows 11, Windows 10, Xbox One, and Win32 desktop applications for Windows 7 Service Pack 1 or later.
11+
This package contains the "DirectX Tool Kit", a collection of helper classes for writing Direct3D 11 C++ code for Universal Windows Platform (UWP) apps for Windows 11, Windows 10, Xbox One, and Win32 desktop applications for Windows 8.1 or later.
1212

1313
This code is designed to build with Visual Studio 2019 (16.11), Visual Studio 2022, clang for Windows v12 or later, or MinGW 12.2. Use of the Windows 10 May 2020 Update SDK ([19041](https://walbourn.github.io/windows-10-may-2020-update-sdk/)) or later is required for Visual Studio.
1414

@@ -78,7 +78,7 @@ FOR SECURITY ADVISORIES, see [GitHub](https://github.com/microsoft/DirectXTK/sec
7878

7979
For a full change history, see [CHANGELOG.md](https://github.com/microsoft/DirectXTK/blob/main/CHANGELOG.md).
8080

81-
* Starting with the December 2024 release, Windows 7 and Windows 8.0 support has been retired. For *DirectX ToolKit for Audio* this means that `DirectXTKAudio_Desktop_*_Win7` has been removed, and `DirectXTKAudio_Desktop_*_Win8` has been integrated into the `DirectXTK_Desktop_*` vcxproj which uses XAudio 2.8 for Windows 8.1 compatibility.
81+
* Starting with the March 2025 release, Windows 7 and Windows 8.0 support has been retired. For *DirectX ToolKit for Audio* this means that `DirectXTKAudio_Desktop_*_Win7` has been removed, and `DirectXTKAudio_Desktop_*_Win8` has been integrated into the `DirectXTK_Desktop_*` vcxproj which uses XAudio 2.8 for Windows 8.1 compatibility.
8282

8383
* Remove any References to or use of `DirectXTKAudio_Desktop_*_Win8.vcxproj` or `DirectXTKAudio_Desktop_*_Win7`. If using `DirectXTK_Desktop_*.vcxproj` you will be using XAudio 2.8 as before. Client code will need to build with `_WIN32_WINNT=0x0603`.
8484

@@ -108,10 +108,10 @@ For a full change history, see [CHANGELOG.md](https://github.com/microsoft/Direc
108108

109109
* The ``CompileShaders.cmd`` script must have Windows-style (CRLF) line-endings. If it is changed to Linux-style (LF) line-endings, it can fail to build all the required shaders.
110110

111-
* Xbox One support for DirectX 11 requires the legacy Xbox One XDK. See February 2023 or earlier releases of *DirectX Tool Kit* for the required project files.
112-
113111
* As of the October 2024 release, the xwbtool command-line tool also supports GNU-style long options using ``--``. All existing switches continue to function. MakeSpriteFont supports only `--version` and ``--help`` for POSIX-style parameters.
114112

113+
* Xbox One support for DirectX 11 requires the legacy Xbox One XDK. See February 2023 or earlier releases of *DirectX Tool Kit* for the required MSBuild project files. It can also be built using the current CMake project from an *Xbox One XDK Developer Command Prompt* with the addition of CMake 3.20 or later to the path via the `x64-Debug-Durango` or `x64-Release-Durango` CMake preset.
114+
115115
## Support
116116

117117
For questions, consider using [Stack Overflow](https://stackoverflow.com/questions/tagged/directxtk) with the *directxtk* tag, or the [DirectX Discord Server](https://discord.gg/directx) in the *dx9-dx11-developers* channel.

0 commit comments

Comments
 (0)