Skip to content

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.

3 participants