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

Expand shader assignment info to report the label along side the shader type #335

Closed
bentoogood opened this issue May 31, 2013 · 3 comments

Comments

@bentoogood
Copy link
Contributor

Building on #147, we should really give the node label rather than just the compiled shader name.
Two assignments of the different instances of the same shader are currently indistinguishable.

@bentoogood
Copy link
Contributor Author

Reason to get this in for first release is to have the SceneInspector user guide example make sense.

@johnhaddon
Copy link
Member

A related request is that we make the coshader handles more readable, so we should ideally implement that at the same time. I'm currently thinking we'll need a hidden internal string plug which tracks the node name, allowing us to correctly use the name in dependency propagation, hash computation etc.

johnhaddon added a commit to johnhaddon/gaffer that referenced this issue Aug 9, 2013
We were overwriting the handle of the shader every time we accessed it, and the handle was being based on the node passed to shaderHandle(). We now never overwrite a handle once it has been generated, and also base the handle on the shader itself rather than the node it was computed for. When we do GafferHQ#335, we'll now be able to extract a useful label from the shader to use as part of the handle.
@andrewkaufman andrewkaufman modified the milestones: Top Production Issues, 3.99 - Optional misc improvements Feb 28, 2014
@johnhaddon
Copy link
Member

Another thing to note is that we need to make the coshader handles stable from one call to Shader::state() to the next - currently they're not and that makes debugging a right pain.

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

No branches or pull requests

3 participants