Skip to content

Allocations reduction#153

Merged
DragonJoker merged 7 commits into
masterfrom
allocations_reduction
May 5, 2026
Merged

Allocations reduction#153
DragonJoker merged 7 commits into
masterfrom
allocations_reduction

Conversation

@DragonJoker
Copy link
Copy Markdown
Owner

No description provided.

They are buffers for which user can ask for a page count.
The first page is always allocated.
When the user needs the buffer size to change, he can call crg::Buffer::resize.
If the requested size is higher than the allocated size, new pages are created.
In the shader, the buffer must be declared as a buffer array with maxPages as dimension. The allocated pages will be bound, and the remaining pages will be filled with dummy buffer.
It allows rebuilding the descriptor set when the pass bindings change.
@DragonJoker DragonJoker added this to the 2.1.0 milestone May 5, 2026
@DragonJoker DragonJoker self-assigned this May 5, 2026
@DragonJoker DragonJoker added the enhancement New feature or request label May 5, 2026
@github-project-automation github-project-automation Bot moved this to In progress in RenderGraph May 5, 2026
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented May 5, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (5aebc0c) to head (2891fef).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##            master      #153    +/-   ##
==========================================
  Coverage   100.00%   100.00%            
==========================================
  Files           73        73            
  Lines         6017      6368   +351     
==========================================
+ Hits          6017      6368   +351     
Files with missing lines Coverage Δ
include/RenderGraph/BufferData.hpp 100.00% <100.00%> (ø)
include/RenderGraph/FrameGraph.hpp 100.00% <ø> (ø)
include/RenderGraph/FrameGraphBase.hpp 100.00% <100.00%> (ø)
include/RenderGraph/FrameGraphFunctions.hpp 100.00% <ø> (ø)
include/RenderGraph/FramePassGroup.hpp 100.00% <ø> (ø)
include/RenderGraph/FramePassTimer.hpp 100.00% <100.00%> (ø)
include/RenderGraph/LayerLayoutStatesHandler.hpp 100.00% <ø> (ø)
include/RenderGraph/RecordContext.hpp 100.00% <100.00%> (ø)
include/RenderGraph/ResourceHandler.hpp 100.00% <100.00%> (ø)
include/RenderGraph/RunnableGraph.hpp 100.00% <100.00%> (ø)
... and 28 more

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5aebc0c...2891fef. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@DragonJoker DragonJoker force-pushed the allocations_reduction branch from 60b2e8a to a38bc57 Compare May 5, 2026 22:08
@DragonJoker DragonJoker force-pushed the allocations_reduction branch from a38bc57 to 2891fef Compare May 5, 2026 22:19
@DragonJoker DragonJoker merged commit 9e6d75a into master May 5, 2026
5 checks passed
@github-project-automation github-project-automation Bot moved this from In progress to Done in RenderGraph May 5, 2026
@DragonJoker DragonJoker deleted the allocations_reduction branch May 5, 2026 22:24
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 5, 2026

@DragonJoker DragonJoker modified the milestones: 2.1.0, 2.2.0 May 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants