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

Consider supporting #pragma pack_matrix() #4202

Open
chaoticbob opened this issue May 21, 2024 · 1 comment
Open

Consider supporting #pragma pack_matrix() #4202

chaoticbob opened this issue May 21, 2024 · 1 comment
Labels
goal:client support Needed to support a slang use case GoodFirstBug Great bug for people getting going in slang codebase kind:enhancement a desirable new feature, option, or behavior

Comments

@chaoticbob
Copy link
Contributor

To make shader porting from HLSL to Slang easier, consider supporting the #pragma pack_matrix() directive. Currently slangc issues a warning and ignores the directive. Support this directive could save someone from having to painstakingly go through their shader code base and decorating their matrices with either row_major or column_major.

@ArielG-NV ArielG-NV added kind:enhancement a desirable new feature, option, or behavior GoodFirstBug Great bug for people getting going in slang codebase goal:client support Needed to support a slang use case labels May 21, 2024
@ArielG-NV
Copy link
Collaborator

For now to achieve the same functionality the following compile options can be used:
-matrix-layout-row-major and -matrix-layout-column-major

@swoods-nv swoods-nv added this to the Q4 2024 (Fall) milestone Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
goal:client support Needed to support a slang use case GoodFirstBug Great bug for people getting going in slang codebase kind:enhancement a desirable new feature, option, or behavior
Projects
None yet
Development

No branches or pull requests

3 participants