File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ class ICPUGraphicsPipeline final : public ICPUPipeline<IGraphicsPipeline<ICPUPip
46
46
47
47
inline size_t getDependantCount () const override
48
48
{
49
- auto stageCount = 1 ; // the layout
49
+ auto stageCount = 2 ; // the layout and renderpass
50
50
for (const auto & stage : m_stages)
51
51
if (stage.shader )
52
52
stageCount++;
@@ -79,12 +79,16 @@ class ICPUGraphicsPipeline final : public ICPUPipeline<IGraphicsPipeline<ICPUPip
79
79
}
80
80
inline IAsset* getDependant_impl (const size_t ix) override
81
81
{
82
+ if (ix==0 )
83
+ return m_layout.get ();
84
+ if (ix==1 )
85
+ return m_renderpass.get ();
82
86
size_t stageCount = 0 ;
83
87
for (auto & stage : m_stages)
84
88
if (stage.shader )
85
- if ((stageCount++)==ix)
89
+ if ((stageCount++)==ix- 2 )
86
90
return stage.shader .get ();
87
- return m_layout. get () ;
91
+ return nullptr ;
88
92
}
89
93
90
94
inline int8_t stageToIndex (const ICPUShader::E_SHADER_STAGE stage) const override
You can’t perform that action at this time.
0 commit comments