SFML / SFML.Net

Official binding of SFML for .Net languages

Home Page:https://www.sfml-dev.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GLSL Bool Vector Types Maybe Mismatched With CSFML

Rosst0pher opened this issue · comments

commented

The following PInvoke methods use the bool vector types and I believe won't actually work.

  • sfShader_setBvec2Uniform
  • sfShader_setBvec3Uniform
  • sfShader_setBvec4Uniform

All Bvec types in C# use bool which is 1-byte and in CSFML they are sfBool which is 4-bytes. While this has never noted to be a problem with bool pinvoke parameters, it has been an issue in the past for data structures #166. I haven't used shaders in SFML.Net so I haven't confirmed this but i'm pretty confident its an issue.

Just tested it, yes it is an issue. I'm working on a fix right now