interactive-shader-format-js icon indicating copy to clipboard operation
interactive-shader-format-js copied to clipboard

IMG_SIZE function isn't supported

Open dlublin opened this issue 6 years ago • 1 comments

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

dlublin avatar Jun 02 '18 16:06 dlublin

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 avatar Jun 04 '18 05:06 msfeldstein