| 97 | } |
| 98 | |
| 99 | void FramePass::addInputSampled( Attachment const & attachment |
| 100 | , uint32_t binding |
| 101 | , SamplerDesc samplerDesc ) |
| 102 | { |
| 103 | auto attachName = fpass::adjustName( *this, attachment.view( 0 ).data->name ) + "/Spl"; |
| 104 | auto attach = addOwnAttach( attachment.imageAttach.views |
| 105 | , std::move( attachName ) |
| 106 | , Attachment::FlagKind( Attachment::Flag::Input ) |
| 107 | , ImageAttachment::FlagKind( ImageAttachment::Flag::Sampled ) |
| 108 | , AttachmentLoadOp::eDontCare, AttachmentStoreOp::eDontCare |
| 109 | , AttachmentLoadOp::eDontCare, AttachmentStoreOp::eDontCare |
| 110 | , ClearValue{} |
| 111 | , PipelineColorBlendAttachmentState{} |
| 112 | , ImageLayout::eShaderReadOnly |
| 113 | , &attachment ); |
| 114 | m_sampled.try_emplace( binding, attach, std::move( samplerDesc ) ); |
| 115 | } |
| 116 | |
| 117 | void FramePass::addInputStorageBuffer( BufferViewIdArray buffers |
| 118 | , uint32_t binding ) |