Skip to content
This repository has been archived by the owner on Nov 20, 2024. It is now read-only.

Commit

Permalink
latest updates DXUT/FX11
Browse files Browse the repository at this point in the history
  • Loading branch information
walbourn authored and walbourn committed Feb 13, 2023
1 parent 4750594 commit 2adf23c
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 6 deletions.
2 changes: 1 addition & 1 deletion DXUT/Core/DXUT.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@
((DWORD)((((a)&0xff)<<24)|(((r)&0xff)<<16)|(((g)&0xff)<<8)|((b)&0xff)))
#endif

#define DXUT_VERSION 1129
#define DXUT_VERSION 1130

//--------------------------------------------------------------------------------------
// Structs
Expand Down
8 changes: 8 additions & 0 deletions DXUT/Core/dxerr.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,18 @@ HRESULT WINAPI DXTraceW( _In_z_ const WCHAR* strFile, _In_ DWORD dwLine, _In_ HR
//
//--------------------------------------------------------------------------------------
#if defined(DEBUG) || defined(_DEBUG)
#ifdef _MSC_VER
#define DXTRACE_MSG(str) DXTrace( __FILEW__, (DWORD)__LINE__, 0, str, false )
#define DXTRACE_ERR(str,hr) DXTrace( __FILEW__, (DWORD)__LINE__, hr, str, false )
#define DXTRACE_ERR_MSGBOX(str,hr) DXTrace( __FILEW__, (DWORD)__LINE__, hr, str, true )
#else
#define DXUT_PASTE(x, y) x##y
#define DXUT_MAKEWIDE(x) DXUT_PASTE(L,x)
#define DXTRACE_MSG(str) DXTrace( DXUT_MAKEWIDE(__FILE__), (DWORD)__LINE__, 0, str, false )
#define DXTRACE_ERR(str,hr) DXTrace( DXUT_MAKEWIDE(__FILE__), (DWORD)__LINE__, hr, str, false )
#define DXTRACE_ERR_MSGBOX(str,hr) DXTrace( DXUT_MAKEWIDE(__FILE__), (DWORD)__LINE__, hr, str, true )
#endif
#else
#define DXTRACE_MSG(str) (0L)
#define DXTRACE_ERR(str,hr) (hr)
#define DXTRACE_ERR_MSGBOX(str,hr) (hr)
Expand Down
5 changes: 3 additions & 2 deletions DXUT/Optional/DXUTLockFreePipe.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@
#include <windows.h>
#pragma pack (pop)

extern "C"
void _ReadWriteBarrier();
#ifdef _MSC_VER
extern "C" void _ReadWriteBarrier();
#pragma intrinsic(_ReadWriteBarrier)
#endif

// Prevent the compiler from rearranging loads
// and stores, sufficiently for read-acquire
Expand Down
4 changes: 3 additions & 1 deletion DXUT/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ http://go.microsoft.com/fwlink/?LinkId=320437

Copyright (c) Microsoft Corporation.

**October 24, 2022**
**December 10, 2022**

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

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

* 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``.

* 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.

## Support

For questions, consider using [Stack Overflow](https://stackoverflow.com/questions/tagged/dxut) with the *dxut* tag.
Expand Down
6 changes: 5 additions & 1 deletion Effects11/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ http://go.microsoft.com/fwlink/?LinkId=271568

Copyright (c) Microsoft Corporation. All rights reserved.

**August 17, 2022**
**December 10, 2022**

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

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

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).

## Release Notes

* 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.

## Support

For questions, consider using [Stack Overflow](https://stackoverflow.com/questions/tagged/d3dx) with the *d3dx* tag.
Expand Down
2 changes: 1 addition & 1 deletion Effects11/inc/d3dx11effect.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

#pragma once

#define D3DX11_EFFECTS_VERSION 1128
#define D3DX11_EFFECTS_VERSION 1129

#if defined(_XBOX_ONE) && defined(_TITLE)
#include <d3d11_x.h>
Expand Down

0 comments on commit 2adf23c

Please sign in to comment.