You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 9, 2021. It is now read-only.
Some WebGL code needs casting int/uint casting, for instance:
Since
WebGLRenderingContext
contains method with the last parameter of typeint
:and
uint
constant:The problem is caused because
GLenum
is defined in IDL as:There are more cases of casting problem in the spec, e.g.
Uniform1i
vs.TEXTURE_2D
.One possible workaround is to define alternative methods, such as:
However similar problem is with:
GLint getAttribLocation(WebGLProgram? program, DOMString name)
vs.
from WebGL specification.
I think that the spec considers
unsigned long
as non-negative integer implicitly convertible to common integerlong
.So, the solution from my point of view is to translate IDL's
unsigned long
to C#'sint
.The text was updated successfully, but these errors were encountered: