Closed wumaolinmaoan closed 3 weeks ago
The changes in this pull request primarily focus on the RenderFrame
class within the render-frame.ts
file. Enhancements include a new error handling mechanism for GPU capabilities related to half-float textures, updates to the constructor for HDR render pass setup, and the initialization of Gaussian down-sampling and up-sampling passes. New methods for managing render passes and resource creation have been introduced, along with a new class for final copy render passes. The dispose
method has also been refined for better resource management.
File Path | Change Summary |
---|---|
packages/effects-core/src/render/render-frame.ts | - Updated constructor to include error handling for half-float texture support. - Added methods: createResource() , addRenderPass(pass: RenderPass): void , removeRenderPass(pass: RenderPass): void .- Introduced class FinalCopyRP for final copy render passes.- Added functions: getTextureSize(tex?: Texture): Vector2 , findPreviousRenderPass(renderPasses: RenderPass[], renderPass: RenderPass): RenderPass | undefined .- Enhanced dispose method for resource cleanup. |
In the realm of textures, bright and bold,
A rabbit hops where stories unfold.
With HDR magic and passes anew,
We dance through the render, a vibrant view!
So here's to the changes, let joy take flight,
In the land of effects, everything feels right! 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
Bug Fixes