Skip to content

Could uploadDDSLevels take a view instead of a buffer? #2

@areinot

Description

@areinot

Great tools! I've only tried out the DDS loader so far and I'm already a fan. If I were to make a suggestion, could uploadDDSLevels() take as its data input, a typed-array view instead of an ArrayBuffer?

I am pulling my DDS'es from a big blob of binary data and need to give uploadDDS a subsection of my full ArrayBuffer. Views are easy to slice and dice on the go but ArrayBuffer slicing copies data around (afaik). I've stopped passing around ArrayBuffers all together for this very reason. Feels kind of like using void*, you know?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions