jit.gl.slab sendinput wrap mirrored repeat with GL 3?
Long time since ive posted here 🤣
Should I expect "sendinput wrap mirroredrepeat" to set texture clamp mode to mirrored repeat while running under GL 3 for texture units assigned and bound to a jit.gl.slab object?
If so, it aint working?
seems to work as expected in this patch. send along an example of what you're seeing.
interesting. Youre using sampler2Ds, and Slab and my shaders default to sampler2DRects -
Does wrap mode not work under rectangular textures?
I can repro here:
Aha:
Turns out thats a no go and I totally forgot about that detail?
"Rectangle textures contain exactly one image; they cannot have mipmaps. Therefore, any texture parameters that depend on LODs are irrelevant when used with rectangle textures; attempting to set these parameters to any value other than 0 will result in an error. Similarly, no mipmap filtering is allowed; GL_TEXTURE_MIN_FILTER must be GL_NEAREST or GL_LINEAR. Similarly, they cannot be used with any of the gradient or LOD texture accessing functions.
Also, wrapping modes for each coordinate must be either GL_CLAMP_TO_EDGE or GL_CLAMP_TO_BORDER."
Man miss Metal :D