| 119 | } |
| 120 | |
| 121 | static PipelineState getNextState( PipelineState currentState |
| 122 | , std::vector< RunnablePassPtr >::iterator nextPassIt |
| 123 | , std::vector< RunnablePassPtr >::iterator endIt ) |
| 124 | { |
| 125 | while ( endIt != nextPassIt |
| 126 | && !( *nextPassIt )->isEnabled() ) |
| 127 | { |
| 128 | ++nextPassIt; |
| 129 | } |
| 130 | |
| 131 | return ( endIt != nextPassIt && ( *nextPassIt )->isEnabled() ) |
| 132 | ? ( *nextPassIt )->getPipelineState() |
| 133 | : currentState; |
| 134 | } |
| 135 | |
| 136 | static VkDescriptorType getDescriptorType( BufferAttachment const & attach ) |
| 137 | { |