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

Function checkSampledIsShaderReadOnly

test/TestRenderGraph.cpp:40–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38 }
39
40 void checkSampledIsShaderReadOnly( [[maybe_unused]] test::TestCounts const & testCounts
41 , crg::FramePass const & framePass
42 , crg::RunnableGraph const &
43 , crg::RecordContext const & context
44 , uint32_t index )
45 {
46 for ( auto & [binding, attach] : framePass.getSampled() )
47 {
48 auto view = attach.attach->view( index );
49 checkEqual( context.getLayoutState( crg::resolveView( view, index ) ).layout, crg::ImageLayout::eShaderReadOnly )
50 }
51 }
52
53 crg::FrameGraph buildNoPassGraph( test::TestCounts const & testCounts
54 , crg::ResourceHandler & handler )

Callers

nothing calls this directly

Calls 2

viewMethod · 0.80
getLayoutStateMethod · 0.45

Tested by

no test coverage detected