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

C api #40

Merged
merged 5 commits into from
Apr 29, 2024
Merged

C api #40

merged 5 commits into from
Apr 29, 2024

Conversation

REMqb
Copy link
Contributor

@REMqb REMqb commented Apr 27, 2024

Implements #25

Add bindings:

  • Parser:
    • nzslParserParseSource
    • nzslParserParseSourceWithFilePath
    • nzslParserParseFromFile
  • Module:
    • nzslModuleDestroy
  • GlslWriter
    • nzslGlslWriterCreate
    • nzslGlslWriterSetEnv
    • nzslGlslWriterGenerate
    • nzslGlslWriterOutputGetExplicitTextureBinding
    • nzslGlslWriterOutputGetExplicitUniformBlockBinding
    • nzslGlslWriterOutputDestroy
    • nzslGlslWriterDestroy
  • SpirvWriter
    • nzslSpirvWriterCreate
    • nzslSpirvWriterSetEnv
    • nzslSpirvWriterGenerate
    • nzslSpirvWriterOutputDestroy
    • nzslSpirvWriterDestroy
  • LangWriter
    • nzslLangWriterCreate
    • nzslLangWriterGenerate
    • nzslLangWriterOutputDestroy
    • nzslLangWriterDestroy

Errors are reported by returning null pointers or 0
Last error string on the current thread can be accessed using nzslGetError()

REMqb and others added 5 commits April 27, 2024 13:30
+ Binding Parser
+ Binding GlslWriter
+ Binding Module
+ C Error reporting
+ Binding LangWriter
@REMqb REMqb marked this pull request as ready for review April 29, 2024 13:45
@SirLynix SirLynix merged commit 3b66f49 into NazaraEngine:main Apr 29, 2024
21 of 43 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants