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

ShaderResourceGroupStruct #34

Open
superkitcath opened this issue Mar 25, 2022 · 2 comments
Open

ShaderResourceGroupStruct #34

superkitcath opened this issue Mar 25, 2022 · 2 comments

Comments

@superkitcath
Copy link

[Migrated from JIRA ATOM-14465]
Description:

Update AZSLc to support a ShaderResourceGroupStruct concept to replace the various "COMMON_SRG_INPUTS_" macros.

Details:

This is like a struct but includes support for stripping out Textures from the constant buffer. We also might want to look into tighter packing, as structs force everything to 16 byte boundaries.

Acceptance Criteria:

  • Replace all of the "COMMON_SRG_INPUTS_" macros with a struct of some kind.
  • All shader inputs like "m_layer1_m_baseColorFactor" become "m_layer1.m_baseColorFactor".

Additional Information:

@galibzon
Copy link
Contributor

@santorac To decide if this is still needed.

@siliconvoodoo
Copy link
Contributor

Hi, I could handle that if needed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants