[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Public WebGL] Uniform*fv and arrays
- To: public webgl <public_webgl@khronos.org>
- Subject: [Public WebGL] Uniform*fv and arrays
- From: Tim Johansson <timj@opera.com>
- Date: Wed, 16 Feb 2011 17:33:33 +0100
- List-id: Public WebGL Mailing List <public_webgl.khronos.org>
- Sender: owner-public_webgl@khronos.org
- User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7
Hi,
a while ago we had a discussion about the count to uniform*fv and did
some changes to how that was calculated. In the same discussion we also
talked about how to handle arrays of length 1. If I remember correctly
we said that for example "uniform2fv(loc, [0, 1])" should be OK if the
uniform is declared as "float foo[1]", but fail with invalid_operation
if it was declared as "float foo".
At the moment we have two conformance tests which checks that setting
non array uniforms with count > 1 succeeds, which does not seem to match
the spec. I'm planning to change that and also add a test for arrays of
length 1. I just want to make sure I remember this stuff correctly
before doing so.
//Tim
-----------------------------------------------------------
You are currently subscribed to public_webgl@khronos.org.
To unsubscribe, send an email to majordomo@khronos.org with
the following command in the body of your email:
unsubscribe public_webgl
-----------------------------------------------------------