build: Clear out remaining compile warnings. (#6662)

This commit is contained in:
Steveice10
2023-07-04 21:00:24 -07:00
committed by GitHub
parent 2126c240cd
commit 13a8969824
26 changed files with 117 additions and 103 deletions

View File

@@ -281,7 +281,6 @@ private:
bool pipeline_creation_cache_control{};
bool shader_stencil_export{};
bool debug_messenger_supported{};
bool debug_report_supported{};
};
} // namespace Vulkan

View File

@@ -99,10 +99,10 @@ std::shared_ptr<Common::DynamicLibrary> OpenLibrary() {
auto library = std::make_shared<Common::DynamicLibrary>();
#ifdef __APPLE__
const std::string filename = Common::DynamicLibrary::GetLibraryName("vulkan");
library->Load(filename);
if (!library->IsLoaded()) {
if (!library->Load(filename)) {
// Fall back to directly loading bundled MoltenVK library.
library->Load("libMoltenVK.dylib");
const std::string mvk_filename = Common::DynamicLibrary::GetLibraryName("MoltenVK");
void(library->Load(mvk_filename));
}
#else
std::string filename = Common::DynamicLibrary::GetLibraryName("vulkan", 1);

View File

@@ -1497,7 +1497,6 @@ void FragmentModule::DefineInterface() {
// Define shadow textures
shadow_texture_px_id = DefineUniformConst(image_r32_id, 2, 0, true);
shadow_buffer_id = DefineUniformConst(image_r32_id, 2, 6);
// Define built-ins
gl_frag_coord_id = DefineVar(vec_ids.Get(4), spv::StorageClass::Input);

View File

@@ -256,13 +256,7 @@ private:
Id texture_buffer_lut_lf_id{};
Id texture_buffer_lut_rg_id{};
Id texture_buffer_lut_rgba_id{};
Id shadow_buffer_id{};
Id shadow_texture_px_id{};
Id shadow_texture_nx_id{};
Id shadow_texture_py_id{};
Id shadow_texture_ny_id{};
Id shadow_texture_pz_id{};
Id shadow_texture_nz_id{};
Id texture_buffer_lut_lf{};
Id texture_buffer_lut_rg{};