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

Texture Bindings #54

Open
LexiBigCheese opened this issue Jan 19, 2025 · 0 comments
Open

Texture Bindings #54

LexiBigCheese opened this issue Jan 19, 2025 · 0 comments

Comments

@LexiBigCheese
Copy link

Combine Instance and &Texture into a struct repeatedly, when the struct is dropped,the texture is unbound.

let mut instance = instance.with_binding(0, &texture0).with_binding(1,&texture1);
instance.draw(whatever);

You could disable unbinding the texture using some "listened to gotchas" flag.

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

No branches or pull requests

1 participant