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

v8 add setDataWithSize to Buffer #9818

Merged
merged 3 commits into from
Nov 1, 2023
Merged

Conversation

GoodBoyDigital
Copy link
Member

add a function that lets devs update the data whilst allso setting the size.

Also added new property, shrinkToFit which if false will not shrink the GPU buffer if the data becomes smaller.

added tests to ensure it works like a boss

Copy link

codesandbox-ci bot commented Oct 31, 2023

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 23f4a08:

Sandbox Source
pixi.js-sandbox Configuration

src/rendering/renderers/shared/buffer/Buffer.ts Outdated Show resolved Hide resolved
src/rendering/renderers/shared/buffer/Buffer.ts Outdated Show resolved Hide resolved
src/rendering/renderers/shared/buffer/Buffer.ts Outdated Show resolved Hide resolved
src/rendering/renderers/shared/buffer/Buffer.ts Outdated Show resolved Hide resolved
src/rendering/renderers/shared/buffer/Buffer.ts Outdated Show resolved Hide resolved
@GoodBoyDigital GoodBoyDigital changed the title v8 add setData to Buffer v8 add setDataWithSize to Buffer Nov 1, 2023
Co-authored-by: Ali Chamas <91103690+achamas-playco@users.noreply.github.com>
@Zyie Zyie added the v8 label Nov 1, 2023
@Zyie Zyie merged commit d534b27 into next-v8 Nov 1, 2023
3 checks passed
@Zyie Zyie deleted the chore/v8/add-setData-to-buffer branch November 1, 2023 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants