Giter Club home page Giter Club logo

Comments (4)

lexaknyazev avatar lexaknyazev commented on June 14, 2024 3

There's a more general notion within Khronos that file formats should just describe data without defining runtime behavior. I think in this particular case, the spec can be a bit more subtle like:

  • numberOfMipmapLevels = 1 means that a file contains only the first level and the texture isn't meant to have other levels. E.g. this could be a LUT rather than a natural image.
  • numberOfMipmapLevels = 0 means that a file contains only the first level and engines should generate other levels if needed. In other words, it describes intent rather than strict runtime behavior.

from ktx-specification.

MarkCallow avatar MarkCallow commented on June 14, 2024

If apps don't want auto generation they can avoid specifying numberOfMipmapLevels = 0. Auto-generation has been in KTX since the beginning and this is the first time it has been suggested it should not be in the file format. The discussion that led to its inclusion was a long time ago so I'm afraid I don't recall the reasons.

from ktx-specification.

dewilkinson avatar dewilkinson commented on June 14, 2024

Reviewed on 12/21 call

It was agreed that the spec rework suggested by Alexey above would be the correct approach. Ie

numberOfMipLevels=[0,1]

Specifies intent when only a single mip image is transmitted (0=Singleton, or 1=MipChain level 0) . The choice as to whether to autogenerate higher levels is left to the engine at runtime

from ktx-specification.

MarkCallow avatar MarkCallow commented on June 14, 2024

Fixed by PR #46.

from ktx-specification.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.