Skip to content

Texture Bindings #54

@LexiBigCheese

Description

@LexiBigCheese

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions