Opt in to gl_in/gl_out handling rather than other way around.
This commit is contained in:
Родитель
c7aac59188
Коммит
f708b497a4
|
@ -370,6 +370,7 @@ string CompilerGLSL::compile()
|
|||
|
||||
if (options.vulkan_semantics)
|
||||
backend.allow_precision_qualifiers = true;
|
||||
backend.force_gl_in_out_block = true;
|
||||
|
||||
// Scan the SPIR-V to find trivial uses of extensions.
|
||||
find_static_extensions();
|
||||
|
@ -4318,8 +4319,8 @@ string CompilerGLSL::access_chain_internal(uint32_t base, const uint32_t *indice
|
|||
{
|
||||
case BuiltInPosition:
|
||||
case BuiltInPointSize:
|
||||
case BuiltInCullDistance:
|
||||
case BuiltInClipDistance:
|
||||
//case BuiltInCullDistance: // These are already arrays, need to figure out rules for these in tess/geom.
|
||||
//case BuiltInClipDistance:
|
||||
if (var->storage == StorageClassInput)
|
||||
expr = join("gl_in[", to_expression(index), "].", expr);
|
||||
else if (var->storage == StorageClassOutput)
|
||||
|
|
|
@ -322,7 +322,7 @@ protected:
|
|||
bool allow_precision_qualifiers = false;
|
||||
bool can_swizzle_scalar = false;
|
||||
bool force_temp_use_for_two_vector_shuffles = false;
|
||||
bool force_gl_in_out_block = true;
|
||||
bool force_gl_in_out_block = false;
|
||||
} backend;
|
||||
|
||||
void emit_struct(SPIRType &type);
|
||||
|
|
|
@ -71,7 +71,6 @@ string CompilerMSL::compile()
|
|||
backend.native_row_major_matrix = false;
|
||||
backend.flexible_member_array_supported = false;
|
||||
backend.force_temp_use_for_two_vector_shuffles = true;
|
||||
backend.force_gl_in_out_block = false;
|
||||
|
||||
replace_illegal_names();
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче