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

IMG_SIZE function isn't supported #15

Open
dlublin opened this Issue Jun 2, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@dlublin

dlublin commented Jun 2, 2018

In the v2 of the ISF spec (https://github.com/mrRay/ISF_Spec/), there was a new special function added that made it possible to get the size of a provided input image or render pass.

imageSize = IMG_SIZE( imageName);
returns a two-element vector describing the size of the image in pixels.

eg ln 100 in https://www.interactiveshaderformat.com/sketches/2810

@msfeldstein

This comment has been minimized.

Show comment
Hide comment
@msfeldstein

msfeldstein Jun 4, 2018

Owner

interesting, its a little tricky, i don't think we've done this kind of input-based-source-rewriting but it shouldn't be too difficult. i'll take a look tomorrow!

Owner

msfeldstein commented Jun 4, 2018

interesting, its a little tricky, i don't think we've done this kind of input-based-source-rewriting but it shouldn't be too difficult. i'll take a look tomorrow!

msfeldstein added a commit that referenced this issue Jun 11, 2018

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