video_core: use nested namespaces
This commit is contained in:
@@ -9,8 +9,7 @@
|
||||
#include "common/vector_math.h"
|
||||
#include "video_core/pica_types.h"
|
||||
|
||||
namespace Pica {
|
||||
namespace Shader {
|
||||
namespace Pica::Shader {
|
||||
|
||||
/// Helper structure used to keep track of data useful for inspection of shader emulation
|
||||
template <bool full_debugging>
|
||||
@@ -182,5 +181,4 @@ inline void Record(DebugData<true>& debug_data, u32 offset, ValueType value) {
|
||||
debug_data.records[offset].mask |= type;
|
||||
}
|
||||
|
||||
} // namespace Shader
|
||||
} // namespace Pica
|
||||
} // namespace Pica::Shader
|
||||
|
@@ -17,9 +17,7 @@
|
||||
#endif // ARCHITECTURE_x86_64
|
||||
#include "video_core/video_core.h"
|
||||
|
||||
namespace Pica {
|
||||
|
||||
namespace Shader {
|
||||
namespace Pica::Shader {
|
||||
|
||||
void OutputVertex::ValidateSemantics(const RasterizerRegs& regs) {
|
||||
unsigned int num_attributes = regs.vs_output_total;
|
||||
@@ -161,6 +159,4 @@ void Shutdown() {
|
||||
#endif // ARCHITECTURE_x86_64
|
||||
}
|
||||
|
||||
} // namespace Shader
|
||||
|
||||
} // namespace Pica
|
||||
} // namespace Pica::Shader
|
||||
|
@@ -22,9 +22,7 @@ using nihstro::DestRegister;
|
||||
using nihstro::RegisterType;
|
||||
using nihstro::SourceRegister;
|
||||
|
||||
namespace Pica {
|
||||
|
||||
namespace Shader {
|
||||
namespace Pica::Shader {
|
||||
|
||||
constexpr unsigned MAX_PROGRAM_CODE_LENGTH = 4096;
|
||||
constexpr unsigned MAX_SWIZZLE_DATA_LENGTH = 4096;
|
||||
@@ -262,6 +260,4 @@ public:
|
||||
ShaderEngine* GetEngine();
|
||||
void Shutdown();
|
||||
|
||||
} // namespace Shader
|
||||
|
||||
} // namespace Pica
|
||||
} // namespace Pica::Shader
|
||||
|
@@ -25,9 +25,7 @@ using nihstro::RegisterType;
|
||||
using nihstro::SourceRegister;
|
||||
using nihstro::SwizzlePattern;
|
||||
|
||||
namespace Pica {
|
||||
|
||||
namespace Shader {
|
||||
namespace Pica::Shader {
|
||||
|
||||
struct CallStackElement {
|
||||
u32 final_address; // Address upon which we jump to return_address
|
||||
@@ -696,6 +694,4 @@ DebugData<true> InterpreterEngine::ProduceDebugInfo(const ShaderSetup& setup,
|
||||
return debug_data;
|
||||
}
|
||||
|
||||
} // namespace Shader
|
||||
|
||||
} // namespace Pica
|
||||
} // namespace Pica::Shader
|
||||
|
@@ -7,9 +7,7 @@
|
||||
#include "video_core/shader/debug_data.h"
|
||||
#include "video_core/shader/shader.h"
|
||||
|
||||
namespace Pica {
|
||||
|
||||
namespace Shader {
|
||||
namespace Pica::Shader {
|
||||
|
||||
class InterpreterEngine final : public ShaderEngine {
|
||||
public:
|
||||
@@ -27,6 +25,4 @@ public:
|
||||
const ShaderRegs& config) const;
|
||||
};
|
||||
|
||||
} // namespace Shader
|
||||
|
||||
} // namespace Pica
|
||||
} // namespace Pica::Shader
|
||||
|
@@ -7,8 +7,7 @@
|
||||
#include "video_core/shader/shader_jit_x64.h"
|
||||
#include "video_core/shader/shader_jit_x64_compiler.h"
|
||||
|
||||
namespace Pica {
|
||||
namespace Shader {
|
||||
namespace Pica::Shader {
|
||||
|
||||
JitX64Engine::JitX64Engine() = default;
|
||||
JitX64Engine::~JitX64Engine() = default;
|
||||
@@ -43,5 +42,4 @@ void JitX64Engine::Run(const ShaderSetup& setup, UnitState& state) const {
|
||||
shader->Run(setup, state, setup.engine_data.entry_point);
|
||||
}
|
||||
|
||||
} // namespace Shader
|
||||
} // namespace Pica
|
||||
} // namespace Pica::Shader
|
||||
|
@@ -9,8 +9,7 @@
|
||||
#include "common/common_types.h"
|
||||
#include "video_core/shader/shader.h"
|
||||
|
||||
namespace Pica {
|
||||
namespace Shader {
|
||||
namespace Pica::Shader {
|
||||
|
||||
class JitShader;
|
||||
|
||||
@@ -26,5 +25,4 @@ private:
|
||||
std::unordered_map<u64, std::unique_ptr<JitShader>> cache;
|
||||
};
|
||||
|
||||
} // namespace Shader
|
||||
} // namespace Pica
|
||||
} // namespace Pica::Shader
|
||||
|
@@ -26,9 +26,7 @@ using Xbyak::Reg32;
|
||||
using Xbyak::Reg64;
|
||||
using Xbyak::Xmm;
|
||||
|
||||
namespace Pica {
|
||||
|
||||
namespace Shader {
|
||||
namespace Pica::Shader {
|
||||
|
||||
typedef void (JitShader::*JitFunction)(Instruction instr);
|
||||
|
||||
@@ -1123,6 +1121,4 @@ Xbyak::Label JitShader::CompilePrelude_Exp2() {
|
||||
return subroutine;
|
||||
}
|
||||
|
||||
} // namespace Shader
|
||||
|
||||
} // namespace Pica
|
||||
} // namespace Pica::Shader
|
||||
|
@@ -19,9 +19,7 @@ using nihstro::Instruction;
|
||||
using nihstro::OpCode;
|
||||
using nihstro::SwizzlePattern;
|
||||
|
||||
namespace Pica {
|
||||
|
||||
namespace Shader {
|
||||
namespace Pica::Shader {
|
||||
|
||||
/// Memory allocated for each compiled shader
|
||||
constexpr std::size_t MAX_SHADER_SIZE = MAX_PROGRAM_CODE_LENGTH * 64;
|
||||
@@ -138,6 +136,4 @@ private:
|
||||
Xbyak::Label exp2_subroutine;
|
||||
};
|
||||
|
||||
} // namespace Shader
|
||||
|
||||
} // namespace Pica
|
||||
} // namespace Pica::Shader
|
||||
|
Reference in New Issue
Block a user