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

[opengl] [aot] Convert opengl aot to dump ModuleData. #3991

Merged
merged 1 commit into from
Jan 11, 2022

Conversation

ailzhang
Copy link
Contributor

This PR switch opengl backend to dump ModuleData instead of its own structure.

Followup: need to update the deserializer accordingly for bind_index.

@ailzhang ailzhang requested review from k-ye and bobcao3 January 11, 2022 01:23
@netlify
Copy link

netlify bot commented Jan 11, 2022

✔️ Deploy Preview for jovial-fermat-aa59dc canceled.

🔨 Explore the source changes: 954618f

🔍 Inspect the deploy log: https://app.netlify.com/sites/jovial-fermat-aa59dc/deploys/61dd302502cad80008b98b56

@@ -33,11 +33,10 @@ struct CompiledFieldData {
struct CompiledOffloadedTask {
std::string type;
std::string name;
// Do we need to inline the source code?
std::string source_path;
std::string source;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we directly inlining the shaders now? What about SPIR-V?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@k-ye good point! Hmmm I'll revert this back to source_path, and move writing to "spv/glsl" files to convert() instead.

@ailzhang ailzhang force-pushed the refactor_ogl branch 2 times, most recently from 0f426d2 to a2da3b1 Compare January 11, 2022 06:00
Copy link
Member

@k-ye k-ye left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@ailzhang ailzhang merged commit 473a91c into taichi-dev:master Jan 11, 2022
@ailzhang ailzhang deleted the refactor_ogl branch January 11, 2022 10:31
Leonz5288 added a commit to Leonz5288/taichi that referenced this pull request Jan 26, 2022
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