Giter Club home page Giter Club logo

Comments (5)

thatcosmonaut avatar thatcosmonaut commented on September 13, 2024

This is Microsoft's boneheaded design and the warning comes straight from their validator layer. I'm not sure what we can do beyond suppressing this specific message. I agree that this is very stupid and annoying.

from sdl.

slouken avatar slouken commented on September 13, 2024

Should we default the value to 1.0f if it's not specified?

from sdl.

thatcosmonaut avatar thatcosmonaut commented on September 13, 2024

It's not a bad idea but this warning applies to color clears too. I'm not sure why Microsoft decided to design clears this way or emit a warning on every single clear usage but here we are.

from sdl.

vfig avatar vfig commented on September 13, 2024

i am not getting any warning for the color clear (i am clearing to magenta). havent yet checked for stencil clears.

doesnt matter much whether the default on creation is 0.0f or 1.0f — using reversed z is common too, so cant win either way.

in any case, the props workaround is adequate. probably just deserves a footnote in the docs somewhere. i will submit a patch for that.

from sdl.

vfig avatar vfig commented on September 13, 2024

ok, ive added a brief discussion of this to the wiki under SDL_BeginGPURenderPass, as i guess that is where the warnings will be seen to be "coming from", even though the properties do actually belong with SDL_GPUTextureCreateInfo.

libsdl-org/sdlwiki#591

from sdl.

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.