Skip to content

Commit

Permalink
+ OutputDestroy functions not exposed
Browse files Browse the repository at this point in the history
~ doc
  • Loading branch information
REMqb committed Apr 27, 2024
1 parent 8594134 commit 9c8d706
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
14 changes: 14 additions & 0 deletions include/CNZSL/GlslWriter.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,24 @@ int NZSL_API nzslGlslWriterSetEnv(NZSLGlslWriter writer, NZSLGlslWriterEnvironme

NZSLGlslWriterOutput NZSL_API nzslGlslWriterGenerate(NZSLGlslWriter writer, NZSLModule module);

/**Return texture binding in output or -1 if binding doesn't exists
*
* @param output
* @param bindingName
* @return
*/
int NZSL_API nzslGlslWriterOutputGetExplicitTextureBinding(NZSLGlslWriterOutput output, const char* bindingName);

/**Return uniform binding in output or -1 if binding doesn't exists
*
* @param output
* @param bindingName
* @return
*/
int NZSL_API nzslGlslWriterOutputGetExplicitUniformBlockBinding(NZSLGlslWriterOutput output, const char* bindingName);

void NZSL_API nzslGlslWriterOutputDestroy(NZSLGlslWriterOutput output);

void NZSL_API nzslGlslWriterDestroy(NZSLGlslWriter writer);

#ifdef __cplusplus
Expand Down
2 changes: 2 additions & 0 deletions include/CNZSL/LangWriter.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ NZSLLangWriter NZSL_API nzslLangWriterCreate(void);

NZSLLangWriterOutput NZSL_API nzslLangWriterGenerate(NZSLLangWriter writer, NZSLModule module);

void NZSL_API nzslLangWriterOutputDestroy(NZSLLangWriterOutput output);

void NZSL_API nzslLangWriterDestroy(NZSLLangWriter writer);

#ifdef __cplusplus
Expand Down
2 changes: 2 additions & 0 deletions include/CNZSL/SpirvWriter.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ int NZSL_API nzslSpirvWriterSetEnv(NZSLSpirvWriter writer, NZSLSpirvWriterEnviro

NZSLSpirvWriterOutput NZSL_API nzslSpirvWriterGenerate(NZSLSpirvWriter writer, NZSLModule module);

void NZSL_API nzslSpirvWriterOutputDestroy(NZSLSpirvWriterOutput output);

void NZSL_API nzslSpirvWriterDestroy(NZSLSpirvWriter writer);

#ifdef __cplusplus
Expand Down

0 comments on commit 9c8d706

Please sign in to comment.