MCPcopy Create free account
hub / github.com/DragonJoker/RenderGraph / addInputSampledImage

Method addInputSampledImage

source/RenderGraph/FramePass.cpp:68–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 )

Callers 2

TESTFunction · 0.80
TESTFunction · 0.80

Calls 1

adjustNameFunction · 0.85

Tested by 2

TESTFunction · 0.64
TESTFunction · 0.64