Skip to content

Slang integration #117

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

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open

Slang integration #117

wants to merge 11 commits into from

Conversation

chaoticbob
Copy link
Owner

No description provided.

@chaoticbob chaoticbob requested a review from loosche July 21, 2024 03:54
sessionDesc.targetCount = 1;
sessionDesc.defaultMatrixLayoutMode = SLANG_MATRIX_LAYOUT_COLUMN_MAJOR;
sessionDesc.compilerOptionEntries = compilerOptions.data();
sessionDesc.compilerOptionEntryCount = static_cast<uint32_t>(compilerOptions.size());
Copy link
Collaborator

Choose a reason for hiding this comment

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

You could just use DataPtr(compilerOptions); and CountU32(compilerOptions); couldn't you?

*pErrorMsg = "unable to retrieve SPIR-V blob for library";
}

return COMPILE_ERROR_INTERNAL_COMPILER_ERROR;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Feels like you might want some kind of SLANG_CALL_SAFE() macro or function to deal with this kind of stuff? Instead of calling it all over the place?

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