Run format_all.sh.
This commit is contained in:
Родитель
3951b9456f
Коммит
0617b98613
|
@ -2586,8 +2586,8 @@ string CompilerGLSL::constant_op_expression(const SPIRConstantOp &cop)
|
|||
|
||||
case OpCompositeExtract:
|
||||
{
|
||||
auto expr = access_chain_internal(cop.arguments[0], &cop.arguments[1],
|
||||
uint32_t(cop.arguments.size() - 1), true, false);
|
||||
auto expr =
|
||||
access_chain_internal(cop.arguments[0], &cop.arguments[1], uint32_t(cop.arguments.size() - 1), true, false);
|
||||
return expr;
|
||||
}
|
||||
|
||||
|
@ -8662,8 +8662,7 @@ void CompilerGLSL::add_function_overload(const SPIRFunction &func)
|
|||
// Ignore these arguments, to make sure that functions need to differ in some other way
|
||||
// to be considered different overloads.
|
||||
if (type->basetype == SPIRType::SampledImage ||
|
||||
(type->basetype == SPIRType::Image && type->image.sampled == 1) ||
|
||||
type->basetype == SPIRType::Sampler)
|
||||
(type->basetype == SPIRType::Image && type->image.sampled == 1) || type->basetype == SPIRType::Sampler)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
|
|
@ -1047,7 +1047,8 @@ void CompilerHLSL::emit_specialization_constants()
|
|||
statement("");
|
||||
}
|
||||
|
||||
void CompilerHLSL::replace_illegal_names() {
|
||||
void CompilerHLSL::replace_illegal_names()
|
||||
{
|
||||
static const unordered_set<string> keywords = {
|
||||
// Additional HLSL specific keywords.
|
||||
"line", "linear", "matrix", "point", "row_major", "sampler",
|
||||
|
|
Загрузка…
Ссылка в новой задаче