Splat even less in HLSL
This commit is contained in:
parent
451bdeeeff
commit
beebcbd1aa
@ -3036,7 +3036,7 @@ void CompilerGLSL::emit_instruction(const Instruction &instruction)
|
||||
// Only splat if we have vector constructors.
|
||||
// Arrays and structs must be initialized properly in full.
|
||||
bool composite = !out_type.array.empty() || out_type.basetype == SPIRType::Struct;
|
||||
bool splat = in_type.vecsize == 1 && in_type.columns == 1 && !composite;
|
||||
bool splat = in_type.vecsize == 1 && in_type.columns == 1 && !composite && backend.use_constructor_splatting;
|
||||
|
||||
if (splat)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user