mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-04 10:32:39 +08:00
Develop pipeline merge (#15374)
This commit is contained in:
@@ -22,9 +22,9 @@
|
||||
THE SOFTWARE.
|
||||
****************************************************************************/
|
||||
|
||||
#include "LayoutGraphGraphs.h"
|
||||
#include "NativePipelineTypes.h"
|
||||
#include "details/GslUtils.h"
|
||||
#include "LayoutGraphGraphs.h"
|
||||
|
||||
namespace cc {
|
||||
|
||||
@@ -32,15 +32,24 @@ namespace render {
|
||||
|
||||
uint32_t NativeRenderingModule::getPassID(const ccstd::string &name) const {
|
||||
CC_EXPECTS(programLibrary);
|
||||
CC_EXPECTS(!name.empty());
|
||||
return locate(LayoutGraphData::null_vertex(), name, programLibrary->layoutGraph);
|
||||
}
|
||||
|
||||
uint32_t NativeRenderingModule::getPhaseID(uint32_t passID, const ccstd::string &name) const {
|
||||
uint32_t NativeRenderingModule::getSubpassID(uint32_t passID, const ccstd::string &name) const {
|
||||
CC_EXPECTS(programLibrary);
|
||||
CC_EXPECTS(!name.empty());
|
||||
CC_EXPECTS(passID != LayoutGraphData::null_vertex());
|
||||
return locate(passID, name, programLibrary->layoutGraph);
|
||||
}
|
||||
|
||||
uint32_t NativeRenderingModule::getPhaseID(uint32_t subpassOrPassID, const ccstd::string &name) const {
|
||||
CC_EXPECTS(programLibrary);
|
||||
CC_EXPECTS(!name.empty());
|
||||
CC_EXPECTS(subpassOrPassID != LayoutGraphData::null_vertex());
|
||||
return locate(subpassOrPassID, name, programLibrary->layoutGraph);
|
||||
}
|
||||
|
||||
} // namespace render
|
||||
|
||||
} // namespace cc
|
||||
|
||||
Reference in New Issue
Block a user