-
Notifications
You must be signed in to change notification settings - Fork 1
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
base: main
Are you sure you want to change the base?
Slang integration #117
Conversation
- Added entry point for a create pipeline function - Removed descriptor buffer enable struct
sessionDesc.targetCount = 1; | ||
sessionDesc.defaultMatrixLayoutMode = SLANG_MATRIX_LAYOUT_COLUMN_MAJOR; | ||
sessionDesc.compilerOptionEntries = compilerOptions.data(); | ||
sessionDesc.compilerOptionEntryCount = static_cast<uint32_t>(compilerOptions.size()); |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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?
No description provided.