Skip to content

Should texture parsers be public API? #7564

Description

@willeastcott

Currently, we have the following classes exposed in the API reference:

  • TextureParser
  • BasisParser
  • DdsParser
  • HdrParser
  • ImgParser
  • KtxParser
  • Ktx2Parser

Instances of these classes are created in the TextureHandler constructor and saved to TextureHandler#parsers:

this.parsers = {
dds: new DdsParser(assets),
ktx: new KtxParser(assets),
ktx2: new Ktx2Parser(assets, device),
basis: new BasisParser(assets, device),
hdr: new HdrParser(assets)
};

But this object is not public API. So the question is:

  • Should we expose TextureHandler#parsers as public API?
  • Or should we hide the various parsers from the public API?

Metadata

Metadata

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions