mirror of
https://github.com/microsoft/DirectXTex.git
synced 2026-02-08 13:56:13 +01:00
CMake support added for building with MinGW (#275)
This commit is contained in:
@@ -20,9 +20,22 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <d3d12.h>
|
||||
#ifndef _WIN32
|
||||
#error This module only supports Windows
|
||||
#endif
|
||||
|
||||
#ifdef __MINGW32__
|
||||
#include <unknwn.h>
|
||||
#endif
|
||||
|
||||
#ifdef USING_DIRECTX_HEADERS
|
||||
#include <directx/d3d12.h>
|
||||
#include <dxguids/dxguids.h>
|
||||
#else
|
||||
#include <d3d12.h>
|
||||
#pragma comment(lib,"dxguid.lib")
|
||||
#endif
|
||||
|
||||
#pragma comment(lib,"windowscodecs.lib")
|
||||
|
||||
#include <cstddef>
|
||||
|
||||
Reference in New Issue
Block a user