rsx: Fix build and silence warnings

This commit is contained in:
kd-11
2026-04-13 03:06:39 +03:00
committed by kd-11
parent 9dde2bf04e
commit c350c02592
3 changed files with 7 additions and 6 deletions
+2 -2
View File
@@ -499,7 +499,7 @@ namespace gl
{ {
auto data = std::make_shared<interpreter::cached_program>(); auto data = std::make_shared<interpreter::cached_program>();
auto post_create_hook = [=](glsl::program* prog) auto post_create_hook = [=, this](glsl::program* prog)
{ {
build_fs(compiler_options, *data); build_fs(compiler_options, *data);
build_vs(compiler_options, *data); build_vs(compiler_options, *data);
@@ -508,7 +508,7 @@ namespace gl
attach(*data->fragment_shader); attach(*data->fragment_shader);
}; };
auto storage_hook = [=](std::unique_ptr<glsl::program>& prog) auto storage_hook = [=, this](std::unique_ptr<glsl::program>& prog)
{ {
data->prog = std::move(prog); data->prog = std::move(prog);
post_init_hook(data, compiler_options); post_init_hook(data, compiler_options);
+2 -2
View File
@@ -51,7 +51,7 @@ namespace program_common
CACHED_PIPE_RECOMPILING = (1 << 1), CACHED_PIPE_RECOMPILING = (1 << 1),
}; };
static std::string get_vertex_interpreter() [[maybe_unused]] static std::string get_vertex_interpreter()
{ {
const char* s = const char* s =
#include "../Program/GLSLInterpreter/VertexInterpreter.glsl" #include "../Program/GLSLInterpreter/VertexInterpreter.glsl"
@@ -59,7 +59,7 @@ namespace program_common
return s; return s;
} }
static std::string get_fragment_interpreter() [[maybe_unused]] static std::string get_fragment_interpreter()
{ {
const char* s = const char* s =
#include "../Program/GLSLInterpreter/FragmentInterpreter.glsl" #include "../Program/GLSLInterpreter/FragmentInterpreter.glsl"
+3 -2
View File
@@ -1,7 +1,6 @@
#include "stdafx.h" #include "stdafx.h"
#include "VKShaderInterpreter.h" #include "VKShaderInterpreter.h"
#include "VKCommonPipelineLayout.h"
#include "VKVertexProgram.h" #include "VKVertexProgram.h"
#include "VKFragmentProgram.h" #include "VKFragmentProgram.h"
#include "VKHelpers.h" #include "VKHelpers.h"
@@ -12,6 +11,8 @@
#include "../Program/ShaderInterpreter.h" #include "../Program/ShaderInterpreter.h"
#include "../rsx_methods.h" #include "../rsx_methods.h"
#include <thread>
namespace vk namespace vk
{ {
using enum program_common::interpreter::compiler_option; using enum program_common::interpreter::compiler_option;
@@ -489,7 +490,7 @@ namespace vk
return context.compile(); return context.compile();
}; };
auto callback_fn = [=](std::unique_ptr<glsl::program>& prog) auto callback_fn = [=, this](std::unique_ptr<glsl::program>& prog)
{ {
if (!async) if (!async)
{ {