leod
leod
It is currently not possible to use `discard` in a fragment shader that returns `()`. Maybe we could fix this by introducing `sl::Unit`.
This is a pretty bad bug and, unfortunately, a big footgun. It is caused by the fact that we use `TypeId` of the passed shader functions as cache key in...
Address this FIXME: https://github.com/leod/posh/blob/fbc3c3eb79f06939156a87a8d5640772ba318b71/src/sl/array.rs#L83 This is important in order to achieve soundness. Draw calls are not `unsafe` in posh, so shaders must avoid undefined behavior.
I'll try to find a more minimal example later. Fragment shader: ```rust fn fragment_shader_sobel( sampler: sl::ColorSampler2d, input: sl::FsInput, ) -> sl::FullFsOutput { let uv = input.interp; let center_alpha = sampler.sample(uv);...
Firefox says the following in the `deferred` example, which does not bind any attributes. > WebGL warning: drawArraysInstanced: Drawing without vertex attrib 0 array enabled forces the browser to do...
Not sure why this doesn't work. Probably a bug in the derive macros.
From the GLSL ES 3.00 specification: > The array size must be a constant integral expression (see section 4.3.3 “Constant Expressions”) greater than zero.