WebGL 2 WebGL: INVALID_ENUM: texImage2D: invalid texture format

1,216 views
Skip to first unread message

Evgeny Demidov

unread,
Apr 3, 2015, 4:49:06 AM4/3/15
to WebGL Dev List
I get WebGL: INVALID_ENUM: texImage2D: invalid texture format for
http://www.ibiblio.org/e-notes/webgl/2/flat_wave2i300.htm

pix = new Int16Array(4*n*n);
...
gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA16I, n, n, 0, gl.RGBA_INTEGER,
gl.SHORT, pix);

what's wrong?

Evgeny

Jeff Dash

unread,
Apr 3, 2015, 2:27:21 PM4/3/15
to webgl-d...@googlegroups.com
It's probably not implemented in the prototype yet.



Evgeny

--
You received this message because you are subscribed to the Google Groups "WebGL Dev List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webgl-dev-list+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Kenneth Russell

unread,
Apr 3, 2015, 3:31:42 PM4/3/15
to webgl-d...@googlegroups.com
Yes, at least in Chrome's prototype there are almost certainly tons of
missing features.

Evgeny, which browser and operating system are you running on?


On Fri, Apr 3, 2015 at 11:27 AM, Jeff Dash <jda...@gmail.com> wrote:
> It's probably not implemented in the prototype yet.
>
> On Fri, Apr 3, 2015 at 1:47 AM, Evgeny Demidov <dem...@ipm.sci-nnov.ru>
> wrote:
>>
>> I get WebGL: INVALID_ENUM: texImage2D: invalid texture format for
>> http://www.ibiblio.org/e-notes/webgl/2/flat_wave2i300.htm
>>
>> pix = new Int16Array(4*n*n);
>> ...
>> gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA16I, n, n, 0, gl.RGBA_INTEGER,
>> gl.SHORT, pix);
>>
>> what's wrong?
>>
>> Evgeny
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "WebGL Dev List" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to webgl-dev-lis...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "WebGL Dev List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to webgl-dev-lis...@googlegroups.com.

Evgeny Demidov

unread,
Apr 6, 2015, 1:51:49 AM4/6/15
to webgl-d...@googlegroups.com
I'm using Windows 7, 64 bit (Russian). Canary 32 bit 43.0.2357.2.

Firefox Developer Edition (today) likes only "experimental-webgl2"
(Canary only "webgl2" :)
and "WEBGL_color_buffer_float". For integer textures I get not complete
FBO too.

as I wrote, I'd like to render into (any float32 or integer16,32)
textures on Android
and int32 on desktop. But it is not urgent. I'm growing a WebGL tree :)

Evgeny

4/3/2015 10:31 PM, Kenneth Russell:
Reply all
Reply to author
Forward
0 new messages