mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-10 14:39:01 +01:00
VideoBackends/Vulkan: Use nested namespace specifiers where applicable
This commit is contained in:
parent
ec60027f56
commit
72b04a353d
@ -24,9 +24,7 @@
|
|||||||
|
|
||||||
#include "VideoCommon/VideoConfig.h"
|
#include "VideoCommon/VideoConfig.h"
|
||||||
|
|
||||||
namespace Vulkan
|
namespace Vulkan::ShaderCompiler
|
||||||
{
|
|
||||||
namespace ShaderCompiler
|
|
||||||
{
|
{
|
||||||
// Registers itself for cleanup via atexit
|
// Registers itself for cleanup via atexit
|
||||||
bool InitializeGlslang();
|
bool InitializeGlslang();
|
||||||
@ -375,6 +373,4 @@ std::optional<SPIRVCodeVector> CompileComputeShader(std::string_view source_code
|
|||||||
{
|
{
|
||||||
return CompileShaderToSPV(EShLangCompute, "cs", source_code, COMPUTE_SHADER_HEADER);
|
return CompileShaderToSPV(EShLangCompute, "cs", source_code, COMPUTE_SHADER_HEADER);
|
||||||
}
|
}
|
||||||
|
} // namespace Vulkan::ShaderCompiler
|
||||||
} // namespace ShaderCompiler
|
|
||||||
} // namespace Vulkan
|
|
||||||
|
@ -11,9 +11,7 @@
|
|||||||
|
|
||||||
#include "Common/CommonTypes.h"
|
#include "Common/CommonTypes.h"
|
||||||
|
|
||||||
namespace Vulkan
|
namespace Vulkan::ShaderCompiler
|
||||||
{
|
|
||||||
namespace ShaderCompiler
|
|
||||||
{
|
{
|
||||||
// SPIR-V compiled code type
|
// SPIR-V compiled code type
|
||||||
using SPIRVCodeType = u32;
|
using SPIRVCodeType = u32;
|
||||||
@ -30,6 +28,4 @@ std::optional<SPIRVCodeVector> CompileFragmentShader(std::string_view source_cod
|
|||||||
|
|
||||||
// Compile a compute shader to SPIR-V.
|
// Compile a compute shader to SPIR-V.
|
||||||
std::optional<SPIRVCodeVector> CompileComputeShader(std::string_view source_code);
|
std::optional<SPIRVCodeVector> CompileComputeShader(std::string_view source_code);
|
||||||
|
} // namespace Vulkan::ShaderCompiler
|
||||||
} // namespace ShaderCompiler
|
|
||||||
} // namespace Vulkan
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user