Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

msl version in shader #70

Open
aconstlink opened this issue Mar 7, 2024 · 0 comments
Open

msl version in shader #70

aconstlink opened this issue Mar 7, 2024 · 0 comments
Labels
critical enhancement New feature or request

Comments

@aconstlink
Copy link
Owner

An msl object does not need to know the version in code. A msl shader could include multple version of msl shaders which could be determined during compilation and selected afterwards in the graphics backend.

So
motor::graphics::msl_object::add( motor::graphics::msl_api_type, motor::string_in_t ) ;

Could be changed to
motor::graphics::msl_object::add( motor::string_in_t ) ;

Where the api type/version is determined during compilation.

The version string is not included in the msl spec right now but could look something like this:

config my_render_config 4.0
{}

config my_render_config 3.0
{}

So the shader version could be appended to the configuration name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
critical enhancement New feature or request
Projects
Status: No status
Status: No status
Development

No branches or pull requests

1 participant