mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-03 22:22:04 +01:00
put every include before every import
A header first pulled in through an imported module's global module fragment leaves no include guard in the importing unit - macros do not cross a module boundary - so a later textual include parses it again and MSVC rejects the redefinition. Redoes the betterRenderer sweep with placement that stays out of #if blocks, which is where the previous one dropped <fstream> and broke nvrenderer_d3d12.cpp.
This commit is contained in:
@@ -4,6 +4,8 @@
|
||||
|
||||
#include "nvrenderer/nvrenderer.h"
|
||||
#include "nvrendererbackend.h"
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#if LIBMANUL_WITH_D3D12
|
||||
|
||||
@@ -11,8 +13,6 @@
|
||||
#include <dxgi1_6.h>
|
||||
#include <dxgidebug.h>
|
||||
#include <nvrhi/d3d12.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
class NvRendererBackend_D3D12 : public NvRendererBackend {
|
||||
friend class NvRenderer;
|
||||
|
||||
Reference in New Issue
Block a user