-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix the issue where post-processing modifications after rendering are ineffective. #17586
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings
updateBuffer (bindId: number, vals: number[], layout: string, setData: DescriptorSetData): void { | ||
const descriptorSet = setData.descriptorSet!; | ||
const buffer = this.getCurrentBuffer(); | ||
const uniformKey = `${layout}${bindId}${this.currBuffIdx}`; | ||
let currUniform = uniformMap.get(uniformKey); | ||
const currHash = numsHash(vals); | ||
let currUniform = uniformMap.get(buffer); | ||
if (!currUniform) { | ||
currUniform = new Float32Array(vals); | ||
uniformMap.set(uniformKey, currUniform); | ||
} | ||
const destHash = buffHashMap.get(buffer); | ||
if (destHash !== currHash) { | ||
currUniform.set(vals); | ||
buffer.update(currUniform); | ||
bindGlobalDesc(descriptorSet, bindId, buffer); | ||
buffHashMap.set(buffer, currHash); | ||
uniformMap.set(buffer, currUniform); | ||
} | ||
currUniform.set(vals); | ||
buffer.update(currUniform); | ||
bindGlobalDesc(descriptorSet, bindId, buffer); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
style: Buffer is now always updated, which may affect performance but ensures consistency
Interface Check ReportThis pull request does not change any public interfaces ! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
1 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings
… ineffective. (cocos#17586) * Fix the issue where post-processing modifications after rendering are ineffective. * Removes the intensity edit slot for bloom effect
Greptile Summary
This pull request modifies the BuiltinPipelineSettings class in the default render pipeline, specifically affecting the bloom intensity property.
editor/assets/default_renderpipeline/builtin-pipeline-settings.ts