Skip to content
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

Minor fixes #153

Merged
merged 28 commits into from
Aug 24, 2023
Merged

Minor fixes #153

merged 28 commits into from
Aug 24, 2023

Conversation

Duttenheim
Copy link
Contributor

@Duttenheim Duttenheim commented Jun 16, 2023

  • Adds pinned array, a type of array which handles virtual memory manually by binding memory pages when needed.
  • Merged ArrayStack into Array, and alias it as StackArray. All instances of ArrayStack should be replaced with StackArray.
  • Simplified SystemInfo to not be a singleton but merely a collection of 4 globals.
  • Added new constructors to ResourceTable binding structs, allowing us to use more shorthands for when we don't need to specify sampler and if the binding uses depth or stencil.

@Duttenheim Duttenheim added enhancement Improvements on already existing code category: foundation Containers, math, network implementation, threading and synchronisation, etc category: tests Test apps labels Jun 16, 2023
@Duttenheim Duttenheim self-assigned this Jun 16, 2023
@Duttenheim Duttenheim force-pushed the minor-fixes branch 2 times, most recently from 5a52a30 to 2937238 Compare July 16, 2023 19:41
Allows for simpler resource table bindings.
Removed a bunch of empty lines.
Changed the copyright of imgui.fx to be in line with most files.
A pinned array is an array which handles it's physical memory manually. Instead of relying on new/free, it commits pages to virtual memory addresses when needed, ensuring pointer to objects remain valid when the array grows or shrinks in size.
Simplified pinned allocation by removing the numCommittedPages, which can be calculated when needed.
Use normal name for array new and array free
Remove warning of size conversion from size_t to SizeT.
Make sure even an array initialized with nullptr has capacity set to stack size.
Move from a stack array should move each element and not the pointer over.
@Duttenheim Duttenheim merged commit 4dca6f2 into master Aug 24, 2023
4 checks passed
@Duttenheim Duttenheim deleted the minor-fixes branch August 24, 2023 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: foundation Containers, math, network implementation, threading and synchronisation, etc category: tests Test apps enhancement Improvements on already existing code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant