1
0
mirror of https://github.com/microsoft/DirectXTex synced 2024-11-21 12:00:06 +00:00

Code review for standard library header usage for standalone mods

This commit is contained in:
Chuck Walbourn 2020-12-31 13:53:09 -08:00
parent e14c36125c
commit 18c2d9a5ca
15 changed files with 46 additions and 9 deletions

View File

@ -16,8 +16,8 @@
#include "DDSTextureLoader11.h"
#include <assert.h>
#include <algorithm>
#include <cassert>
#include <memory>
#ifdef __clang__

View File

@ -18,6 +18,7 @@
#include <d3d11_1.h>
#include <cstddef>
#include <cstdint>

View File

@ -16,8 +16,8 @@
#include "DDSTextureLoader12.h"
#include <assert.h>
#include <algorithm>
#include <cassert>
#include <memory>
#ifdef __clang__

View File

@ -18,6 +18,7 @@
#include <d3d12.h>
#include <cstddef>
#include <cstdint>
#include <memory>
#include <vector>

View File

@ -18,8 +18,9 @@
#include <d3d9types.h>
#include <assert.h>
#include <algorithm>
#include <cassert>
#include <cstring>
#include <memory>
#include <wrl/client.h>

View File

@ -21,6 +21,7 @@
#include <d3d9.h>
#include <cstddef>
#include <cstdint>

View File

@ -23,8 +23,10 @@
#include "ScreenGrab11.h"
#include <assert.h>
#include <algorithm>
#include <cassert>
#include <cstddef>
#include <cstring>
#include <memory>
#include <wincodec.h>

View File

@ -23,8 +23,10 @@
#include "ScreenGrab12.h"
#include <assert.h>
#include <algorithm>
#include <cassert>
#include <cstddef>
#include <cstring>
#include <memory>
#include <wincodec.h>

View File

@ -17,8 +17,10 @@
#include "ScreenGrab9.h"
#include <assert.h>
#include <algorithm>
#include <cassert>
#include <cstddef>
#include <cstring>
#include <memory>
#include <wincodec.h>

View File

@ -27,13 +27,14 @@
#include "WICTextureLoader11.h"
#include <dxgiformat.h>
#include <assert.h>
#include <wincodec.h>
#include <wrl\client.h>
#include <algorithm>
#include <cassert>
#include <cstring>
#include <memory>
#ifdef __clang__
@ -41,6 +42,13 @@
#pragma clang diagnostic ignored "-Wswitch-enum"
#endif
// Off by default warnings
#pragma warning(disable : 4619 4616 4623 4626 5027)
// C4619/4616 #pragma warning warnings
// C4623 default constructor was implicitly defined as deleted
// C4626 assignment operator was implicitly defined as deleted
// C5027 move assignment operator was implicitly defined as deleted
using namespace DirectX;
using Microsoft::WRL::ComPtr;

View File

@ -25,6 +25,7 @@
#include <d3d11_1.h>
#include <cstddef>
#include <cstdint>
namespace DirectX

View File

@ -23,8 +23,9 @@
#include "WICTextureLoader12.h"
#include <assert.h>
#include <algorithm>
#include <cassert>
#include <cstring>
#include <wincodec.h>
@ -37,6 +38,13 @@
#pragma clang diagnostic ignored "-Wswitch-enum"
#endif
// Off by default warnings
#pragma warning(disable : 4619 4616 4623 4626 5027)
// C4619/4616 #pragma warning warnings
// C4623 default constructor was implicitly defined as deleted
// C4626 assignment operator was implicitly defined as deleted
// C5027 move assignment operator was implicitly defined as deleted
#define D3DX12_NO_STATE_OBJECT_HELPERS
#include "d3dx12.h"

View File

@ -22,6 +22,7 @@
#include <d3d12.h>
#include <cstddef>
#include <cstdint>
#include <memory>

View File

@ -24,8 +24,9 @@
#include <d3d9types.h>
#include <assert.h>
#include <algorithm>
#include <cassert>
#include <cstring>
#include <memory>
#include <wincodec.h>
@ -37,6 +38,13 @@
#pragma clang diagnostic ignored "-Wswitch-enum"
#endif
// Off by default warnings
#pragma warning(disable : 4619 4616 4623 4626 5027)
// C4619/4616 #pragma warning warnings
// C4623 default constructor was implicitly defined as deleted
// C4626 assignment operator was implicitly defined as deleted
// C5027 move assignment operator was implicitly defined as deleted
using namespace DirectX;
using Microsoft::WRL::ComPtr;

View File

@ -24,6 +24,7 @@
#endif
#include <d3d9.h>
#include <cstddef>
#include <cstdint>
namespace DirectX