MCPcopy Create free account
hub / github.com/crosire/reshade / emit_pragma

Method emit_pragma

source/effect_codegen_dxil.cpp:106–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104 }
105
106 void emit_pragma(const std::string &pragma) override
107 {
108 if (pragma == "reshade skipoptimization" || pragma == "reshade nooptimization")
109 _optimization_level = -1;
110
111 codegen_hlsl::emit_pragma(pragma);
112 }
113
114private:
115 int _optimization_level;

Callers 1

parse_topMethod · 0.45

Calls 1

emit_pragmaFunction · 0.70

Tested by

no test coverage detected