treeform / shady

Nim to GPU shader language compiler and supporting utilities.
MIT License
147 stars 10 forks source link

`Uniform[Sampler2d]` error #18

Open choltreppe opened 6 months ago

choltreppe commented 6 months ago
import shady, vmath

proc testShader(
  texture0: Uniform[Sampler2d]
) =
  discard

echo toGLSL(testShader)

fails with:

Error: [GLSL] Invalid x[y]