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

Shader Preprocessor automatic uniform buffer layout fill #27

Open
Xenation opened this issue Jul 22, 2019 · 0 comments
Open

Shader Preprocessor automatic uniform buffer layout fill #27

Xenation opened this issue Jul 22, 2019 · 0 comments
Assignees
Labels
feature A new feature high complexity Hard / time consuming medium priority Something normally important

Comments

@Xenation
Copy link
Owner

When preprocessing a shader, for each uniform buffer layout, check for missing fields and add them. This can currently only be done for the global buffers.

Exemple

Expected fields:

  • mat4x4 projectionMatrix
  • mat4x4 viewMatrix
  • ivec2 resolution
  • uint sampleCount

Input code:

layout (std140, binding = 1) uniform Camera {
	ivec2 resolution;
	uint sampleCount;
};

Output code:

layout (std140, binding = 1) uniform Camera {
	mat4x4 projectionMatrix;
	mat4x4 viewMatrix;
	ivec2 resolution;
	uint sampleCount;
};
@Xenation Xenation added feature A new feature high complexity Hard / time consuming medium priority Something normally important labels Jul 22, 2019
@Xenation Xenation self-assigned this Jul 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new feature high complexity Hard / time consuming medium priority Something normally important
Projects
None yet
Development

No branches or pull requests

1 participant