Giter Club home page Giter Club logo

Comments (3)

billhollings avatar billhollings commented on August 16, 2024

This particular issue is fixed in PR #31.

The scissor is clamped to be within the renderpass render area. This correction is only performed when in debug mode, not release mode, under the assumption that Metal validation will generally not be active when in release mode, and it is only needed to avoid Metal validation assertions.

@danginsburg:

However...now that this succeeds...I am now encountering a different Metal validation error for scissors of zero height:

-[MTLDebugRenderCommandEncoder setScissorRect:]:2564: failed assertion `rect.height(0) must be non-zero'

screen shot 2018-01-30 at 10 39 08 am

This runs when Metal validation is turned off, and I assume it results in nothing being rendered, since the scissor area is zero.

I am not sure how to address this in terms of avoiding Metal validation. It looks like I will have to force the width and height to a minimum of 1 AND keep offset + width/height within the render area bounds...which will probably result in a 1-pixel wide line being rendered instead of complete clipping. True...this artifact would only appear in debug mode...but it will still be arbitrarily different than what Metal would actually do with the input without validation if we just left it alone.

from moltenvk.

danginsburg avatar danginsburg commented on August 16, 2024

I have worked around setting the 0 width/height scissor rectangle in our engine so that we can run cleanly with validation. I don't think there's anything more that MoltenVK needs to do here since Metal validation will catch this.

from moltenvk.

billhollings avatar billhollings commented on August 16, 2024

Okay. Thanks. Closing this issue then.

from moltenvk.

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.