rsx: Fix build and silence warnings
This commit is contained in:
@@ -499,7 +499,7 @@ namespace gl
|
||||
{
|
||||
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_vs(compiler_options, *data);
|
||||
@@ -508,7 +508,7 @@ namespace gl
|
||||
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);
|
||||
post_init_hook(data, compiler_options);
|
||||
|
||||
@@ -51,7 +51,7 @@ namespace program_common
|
||||
CACHED_PIPE_RECOMPILING = (1 << 1),
|
||||
};
|
||||
|
||||
static std::string get_vertex_interpreter()
|
||||
[[maybe_unused]] static std::string get_vertex_interpreter()
|
||||
{
|
||||
const char* s =
|
||||
#include "../Program/GLSLInterpreter/VertexInterpreter.glsl"
|
||||
@@ -59,7 +59,7 @@ namespace program_common
|
||||
return s;
|
||||
}
|
||||
|
||||
static std::string get_fragment_interpreter()
|
||||
[[maybe_unused]] static std::string get_fragment_interpreter()
|
||||
{
|
||||
const char* s =
|
||||
#include "../Program/GLSLInterpreter/FragmentInterpreter.glsl"
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
#include "stdafx.h"
|
||||
|
||||
#include "VKShaderInterpreter.h"
|
||||
#include "VKCommonPipelineLayout.h"
|
||||
#include "VKVertexProgram.h"
|
||||
#include "VKFragmentProgram.h"
|
||||
#include "VKHelpers.h"
|
||||
@@ -12,6 +11,8 @@
|
||||
#include "../Program/ShaderInterpreter.h"
|
||||
#include "../rsx_methods.h"
|
||||
|
||||
#include <thread>
|
||||
|
||||
namespace vk
|
||||
{
|
||||
using enum program_common::interpreter::compiler_option;
|
||||
@@ -489,7 +490,7 @@ namespace vk
|
||||
return context.compile();
|
||||
};
|
||||
|
||||
auto callback_fn = [=](std::unique_ptr<glsl::program>& prog)
|
||||
auto callback_fn = [=, this](std::unique_ptr<glsl::program>& prog)
|
||||
{
|
||||
if (!async)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user