| 84 | } |
| 85 | |
| 86 | void FramePass::addInputUniform( Attachment const & attachment |
| 87 | , uint32_t binding ) |
| 88 | { |
| 89 | auto attachName = fpass::adjustName( *this, attachment.buffer().data->name ) + "/UB"; |
| 90 | auto attach = addOwnAttach( attachment.bufferAttach.buffers |
| 91 | , std::move( attachName ) |
| 92 | , Attachment::FlagKind( Attachment::Flag::Input ) |
| 93 | , BufferAttachment::FlagKind( BufferAttachment::Flag::Uniform ) |
| 94 | , AccessState{} |
| 95 | , &attachment ); |
| 96 | m_uniforms.try_emplace( binding, attach ); |
| 97 | } |
| 98 | |
| 99 | void FramePass::addInputSampled( Attachment const & attachment |
| 100 | , uint32_t binding |