8000 feat: allow RenderTexture.create to accept dynamic option by seanzhaoxiaoxiao · Pull Request #11767 · pixijs/pixijs · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@seanzhaoxiaoxiao
Copy link
@seanzhaoxiaoxiao seanzhaoxiaoxiao commented Nov 23, 2025

feat for #11634

Description of change

Allow RenderTexture.create to accept a dynamic option, enabling runtime resizing via .resize(). This improves usability and matches documentation. No runtime changes to TextureSource; dynamic is only used by RenderTexture.

Example usage:

const renderTexture = RenderTexture.create({
    width: 100,
    height: 100,
    dynamic: true, // Enable resizing
});

// Later in the code, resize the texture
renderTexture.resize(500, 500);

test

Pre-Merge Checklist
  • Tests and/or benchmarks are included
  • Documentation is changed or added
  • Lint process passed (npm run lint)
  • Tests passed (npm run test)

Copy link
A930 Member
@bigtimebuddy bigtimebuddy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea!

@pkg-pr-new
Copy link
pkg-pr-new bot commented Nov 23, 2025

pixi.js-basepixi.js-bunny-mark

npm i https://pkg.pr.new/pixijs/pixijs/pixi.js@11767

commit: f20a3b7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0