Skip to content

web-sys question: Why do some OpenGL methods require mutable slices when they could be immutable? #978

Closed
@bgourlie

Description

@bgourlie

See uniform_matrix4fv_with_f32_array docs as an example

The slice being passed shouldn't need to be mutable, so I'm curious why this is the case. Does this have to do with making safe assumptions with regard to mutability because Web IDL doesn't specify?

Edit: Also, if there is a more appropriate place to be asking these questions, please let me know!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions