Comments (3)
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.
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.
@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)
- Audit Mouse Inputs
- Audit Android Mouse Inputs
- Audit Gamepad Inputs
- Audit Platform Window
- Add Shader Cache
- SaveState Audit
- 1.0 Optimization Pass
- Add DirectInput GamepadInterpreter
- Audio Audit HOT 2
- Strip Foundation imports
- Add SwiftLint and configure for Style HOT 4
- 2D_01_AnimatedSprite Demo Nof Working HOT 3
- Gravity Tests Crash on HTML5
- WebGL2 Glitched Rendering
- Mouse Lock Broken
- Graphics Audit v1.1.0
- Documentation Audit
- FBX Geometry Importer
- Build fails with many βNo such moduleβ errors HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gateengine.