Git Product home page Git Product logo

Comments (3)

7ombie avatar 7ombie commented on June 12, 2024 1

Hi, @STREGA. Thanks for taking the time. Much appreciated.

So everything is native if that's your concern.

I was mainly concerned that the GateEngine API will always be more limited than Metal, so there's questionable benefit (in my case) to wrapping Metal with it. On the other hand, if the API's adequate for making games, and it all gets compiled to the same thing in the end, not having Metal is not the end of the World. I might even prefer the pure-Swift approach.

To be honest, I've been learning Metal recently, so I just kinda wanted to use it. The technical concern was more of a rationalization after the fact. Being able to use Swift is much more important to me.

I think I just need to make a little game with GateEngine, and see how it goes.

Thanks again, @STREGA.

from gateengine.

7ombie avatar 7ombie commented on June 12, 2024

Hey, @STREGA. Awesome project!

Quick question... I'm very interested in GateEngine, but I'm only targeting Apple Silicon Macs. While GateEngine's shader API looks really useful for cross-platform projects, I'd naturally prefer to use platform-specific shaders (basically, Metal) for my usecase. Is that possible, and if so, how readily could I integrate my shaders into the rest of the engine?

Edit: I'm not looking to replace the renderer wholesale, but might, for example, want to apply a custom filter to the engine's output. In which case, I'd need some way to tell the engine to render to a buffer I can use with the Metal API (instead of sending it to the display). That kind of thing.

This is not a dealbreaker, but I'd be interested to know a bit more about it.

from gateengine.

STREGA avatar STREGA commented on June 12, 2024

@7ombie Hi πŸ™‚

No, it's not possible to use your existing shaders. All shaders must be built with the GateEngine shader API. On macOS, if Metal is available, Metal is used for rendering and the shader API will generate Metal shaders. So everything is native if that's your concern.

GateEngine does support render targets and you can use them as a texture and draw them with any shader you want. So you can create the effects you're talking about. Post processing will eventually get its own features in the renderer but it's just not a high priority at this phase of development.

from gateengine.

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.