spirv: Fix default attributes

This commit is contained in:
IndecisiveTurtle 2024-08-25 22:56:01 +03:00
parent 74a5d1e7e4
commit f13aa08e5d
1 changed files with 1 additions and 1 deletions

View File

@ -237,7 +237,7 @@ void EmitContext::DefineInputs() {
front_facing = DefineVariable(U1[1], spv::BuiltIn::FrontFacing, spv::StorageClass::Input);
for (const auto& input : info.ps_inputs) {
const u32 semantic = input.param_index;
if (input.is_default) {
if (input.is_default && !input.is_flat) {
input_params[semantic] = {MakeDefaultValue(*this, input.default_value), F32[1],
F32[1], 4, true};
continue;