azul3d / engine

Azul3D - A 3D game engine written in Go!
https://azul3d.org
Other
615 stars 52 forks source link

Log shader inputs ignored due to invalid types. #129

Closed azul3d-bot closed 8 years ago

azul3d-bot commented 8 years ago

Issue by slimsag Wednesday Dec 24, 2014 at 17:17 GMT Originally opened as https://github.com/azul3d/gfx/issues/77


If a user writes some code like:

shader.Inputs["Foo"] = 1.0

The value is of float64 type (which is not a valid shader input type. Currently these invalid types are ignored silently. It would make sense to write a warning message to the device's debug output, for example:

Shader input "Foo" uses an invalid shader input type "float64", ignoring.
azul3d-bot commented 8 years ago

Fixed/merged as part of https://github.com/azul3d/engine/issues/1