| 66 | } |
| 67 | |
| 68 | void FramePass::addInputSampledImage( ImageViewIdArray views |
| 69 | , uint32_t binding |
| 70 | , SamplerDesc samplerDesc ) |
| 71 | { |
| 72 | auto attachName = fpass::adjustName( *this, views.front().data->name ) + "/Spl"; |
| 73 | auto attach = addOwnAttach( std::move( views ) |
| 74 | , std::move( attachName ) |
| 75 | , Attachment::FlagKind( Attachment::Flag::Input ) |
| 76 | , ImageAttachment::FlagKind( ImageAttachment::Flag::Sampled ) |
| 77 | , AttachmentLoadOp::eDontCare, AttachmentStoreOp::eDontCare |
| 78 | , AttachmentLoadOp::eDontCare, AttachmentStoreOp::eDontCare |
| 79 | , ClearValue{} |
| 80 | , PipelineColorBlendAttachmentState{} |
| 81 | , ImageLayout::eShaderReadOnly |
| 82 | , nullptr ); |
| 83 | m_sampled.try_emplace( binding, attach, std::move( samplerDesc ) ); |
| 84 | } |
| 85 | |
| 86 | void FramePass::addInputUniform( Attachment const & attachment |
| 87 | , uint32_t binding ) |