17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-23 22:56:12 +02: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:
maj00r
2026-09-10 00:40:32 +02:00
parent 2695c8e525
commit 1455583ab6
36 changed files with 122 additions and 129 deletions

View File

@@ -4,7 +4,12 @@
#include <fmt/format.h>
#include <nvrhi/utils.h>
import eu07.utilities.logs;
#include <array>
#include <cstddef>
#include <memory>
#include <string>
#include <unordered_map>
#include <vector>
#include "csm.h"
#include "environment.h"
#include "gbuffer.h"
@@ -12,13 +17,8 @@ import eu07.utilities.logs;
#include "nvrendererbackend.h"
#include "nvtexture.h"
#include "sky.h"
#include <array>
#include <cstddef>
#include <memory>
#include <string>
#include <unordered_map>
#include <vector>
import eu07.utilities.logs;
bool NvRenderer::MaterialTemplate::CreateBindingSet(size_t pipeline_index,
MaterialCache &cache) {
// for (size_t i = 0; i < cache.m_pipelines.size(); ++i) {