Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit b34c4a0

Browse files
author
walbourn
committed
latest updates DXUT/FX11
1 parent 4007ac6 commit b34c4a0

File tree

6 files changed

+21
-6
lines changed

6 files changed

+21
-6
lines changed

DXUT/Core/DXUT.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@
137137
((DWORD)((((a)&0xff)<<24)|(((r)&0xff)<<16)|(((g)&0xff)<<8)|((b)&0xff)))
138138
#endif
139139

140-
#define DXUT_VERSION 1129
140+
#define DXUT_VERSION 1130
141141

142142
//--------------------------------------------------------------------------------------
143143
// Structs

DXUT/Core/dxerr.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,18 @@ HRESULT WINAPI DXTraceW( _In_z_ const WCHAR* strFile, _In_ DWORD dwLine, _In_ HR
5858
//
5959
//--------------------------------------------------------------------------------------
6060
#if defined(DEBUG) || defined(_DEBUG)
61+
#ifdef _MSC_VER
6162
#define DXTRACE_MSG(str) DXTrace( __FILEW__, (DWORD)__LINE__, 0, str, false )
6263
#define DXTRACE_ERR(str,hr) DXTrace( __FILEW__, (DWORD)__LINE__, hr, str, false )
6364
#define DXTRACE_ERR_MSGBOX(str,hr) DXTrace( __FILEW__, (DWORD)__LINE__, hr, str, true )
6465
#else
66+
#define DXUT_PASTE(x, y) x##y
67+
#define DXUT_MAKEWIDE(x) DXUT_PASTE(L,x)
68+
#define DXTRACE_MSG(str) DXTrace( DXUT_MAKEWIDE(__FILE__), (DWORD)__LINE__, 0, str, false )
69+
#define DXTRACE_ERR(str,hr) DXTrace( DXUT_MAKEWIDE(__FILE__), (DWORD)__LINE__, hr, str, false )
70+
#define DXTRACE_ERR_MSGBOX(str,hr) DXTrace( DXUT_MAKEWIDE(__FILE__), (DWORD)__LINE__, hr, str, true )
71+
#endif
72+
#else
6573
#define DXTRACE_MSG(str) (0L)
6674
#define DXTRACE_ERR(str,hr) (hr)
6775
#define DXTRACE_ERR_MSGBOX(str,hr) (hr)

DXUT/Optional/DXUTLockFreePipe.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@
2121
#include <windows.h>
2222
#pragma pack (pop)
2323

24-
extern "C"
25-
void _ReadWriteBarrier();
24+
#ifdef _MSC_VER
25+
extern "C" void _ReadWriteBarrier();
2626
#pragma intrinsic(_ReadWriteBarrier)
27+
#endif
2728

2829
// Prevent the compiler from rearranging loads
2930
// and stores, sufficiently for read-acquire

DXUT/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ http://go.microsoft.com/fwlink/?LinkId=320437
66

77
Copyright (c) Microsoft Corporation.
88

9-
**October 24, 2022**
9+
**December 10, 2022**
1010

1111
DXUT is a "GLUT"-like framework for Direct3D 11.x Win32 desktop applications; primarily samples, demos, and prototypes.
1212

@@ -41,6 +41,8 @@ For the latest version of DXUT for Direct3D 11, please visit the project site on
4141

4242
* Starting with the July 2022 release, the ``bool forceSRGB`` parameter for DDSTextureLoader ``Ex`` functions is now a ``DDS_LOADER_FLAGS`` typed enum bitmask flag parameter. This may have a *breaking change* impact to client code. Replace ``true`` with ``DDS_LOADER_FORCE_SRGB`` and ``false`` with ``DDS_LOADER_DEFAULT``.
4343

44+
* There are known codegen issues when mixing the library built with Visual C++ and the sample built with recent builds of clang/LLVM for Windows. Building both the library and the sample using the same complier avoids the issue.
45+
4446
## Support
4547

4648
For questions, consider using [Stack Overflow](https://stackoverflow.com/questions/tagged/dxut) with the *dxut* tag.

Effects11/README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ http://go.microsoft.com/fwlink/?LinkId=271568
66

77
Copyright (c) Microsoft Corporation. All rights reserved.
88

9-
**August 17, 2022**
9+
**December 10, 2022**
1010

1111
Effects for Direct3D 11 (FX11) is a management runtime for authoring HLSL shaders, render state, and runtime variables together.
1212

@@ -38,6 +38,10 @@ Documentation is available on the [GitHub wiki](https://github.com/Microsoft/FX1
3838

3939
All content and source code for this package are subject to the terms of the [MIT License](https://github.com/microsoft/FX11/blob/main/LICENSE).
4040

41+
## Release Notes
42+
43+
* The library can be built with Visual C++ or with clang/LLVM for Windows. The code is not conformant enough to support the GNUC (MinGW) compiler.
44+
4145
## Support
4246

4347
For questions, consider using [Stack Overflow](https://stackoverflow.com/questions/tagged/d3dx) with the *d3dx* tag.

Effects11/inc/d3dx11effect.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
#pragma once
1313

14-
#define D3DX11_EFFECTS_VERSION 1128
14+
#define D3DX11_EFFECTS_VERSION 1129
1515

1616
#if defined(_XBOX_ONE) && defined(_TITLE)
1717
#include <d3d11_x.h>

0 commit comments

Comments
 (0)