mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-03 17:42:41 +08:00
render pipeline add subpass (#15141)
This commit is contained in:
@@ -964,6 +964,9 @@ void overwriteShaderProgramBinding(
|
||||
|
||||
overwriteShaderSourceBinding(shaderInfo, src->vert, scratch);
|
||||
overwriteShaderSourceBinding(shaderInfo, src->frag, scratch);
|
||||
if (src->compute) {
|
||||
overwriteShaderSourceBinding(shaderInfo, src->compute.value(), scratch);
|
||||
}
|
||||
}
|
||||
|
||||
// overwrite IProgramInfo using gfx.ShaderInfo
|
||||
@@ -1127,7 +1130,7 @@ void populatePipelineLayoutInfo(
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
static ccstd::hash_t getShaderHash(ccstd::hash_t src, const T &val) {
|
||||
ccstd::hash_t getShaderHash(ccstd::hash_t src, const T &val) {
|
||||
if (src != gfx::INVALID_SHADER_HASH) {
|
||||
ccstd::hash_combine(src, val);
|
||||
}
|
||||
@@ -1545,7 +1548,7 @@ gfx::PipelineState *NativeProgramLibrary::getComputePipelineState(
|
||||
return native->pipelineState.get();
|
||||
}
|
||||
|
||||
const ccstd::vector<int32_t> &NativeProgramLibrary::getBlockSizes(
|
||||
const ccstd::vector<int> &NativeProgramLibrary::getBlockSizes(
|
||||
uint32_t phaseID, const ccstd::string &programName) const {
|
||||
CC_EXPECTS(phaseID != LayoutGraphData::null_vertex());
|
||||
const auto &group = phases.at(phaseID);
|
||||
|
||||
Reference in New Issue
Block a user