Run format_all.sh.

This commit is contained in:
Hans-Kristian Arntzen 2018-07-05 14:18:34 +02:00
parent 5582523d9a
commit 8c314112b4
3 changed files with 7 additions and 9 deletions

View File

@ -3918,9 +3918,9 @@ bool Compiler::AnalyzeVariableScopeAccessHandler::handle(spv::Op op, const uint3
return true;
}
Compiler::StaticExpressionAccessHandler::StaticExpressionAccessHandler(Compiler &compiler_,
uint32_t variable_id_)
: compiler(compiler_), variable_id(variable_id_)
Compiler::StaticExpressionAccessHandler::StaticExpressionAccessHandler(Compiler &compiler_, uint32_t variable_id_)
: compiler(compiler_)
, variable_id(variable_id_)
{
}
@ -3965,8 +3965,7 @@ bool Compiler::StaticExpressionAccessHandler::handle(spv::Op op, const uint32_t
return true;
}
void Compiler::find_function_local_luts(SPIRFunction &entry,
const AnalyzeVariableScopeAccessHandler &handler)
void Compiler::find_function_local_luts(SPIRFunction &entry, const AnalyzeVariableScopeAccessHandler &handler)
{
auto &cfg = *function_cfgs.find(entry.self)->second;

View File

@ -18,8 +18,8 @@
#define SPIRV_CROSS_HPP
#include "spirv.hpp"
#include "spirv_common.hpp"
#include "spirv_cfg.hpp"
#include "spirv_common.hpp"
namespace spirv_cross
{

View File

@ -2078,8 +2078,7 @@ void CompilerGLSL::emit_resources()
{
auto &c = id.get<SPIRConstant>();
bool needs_declaration = (c.specialization && options.vulkan_semantics) ||
c.is_used_as_lut;
bool needs_declaration = (c.specialization && options.vulkan_semantics) || c.is_used_as_lut;
if (needs_declaration)
{