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

IMG_SIZE function isn't supported #15

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

IMG_SIZE function isn't supported #15

dlublin opened this issue Jun 2, 2018 · 1 comment

Comments

@dlublin
Copy link

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
Copy link
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!

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants