[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Public WebGL] Why does the set of pname arguments for which the behavior of getShaderParameter is defined not match GL ES?



On Tue, Apr 17, 2012 at 9:20 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote:
>
> On 4/18/12 12:16 AM, Glenn Maynard wrote:
>>
>> It could be specified in each function that takes an enum argument, eg.
>> replace the getShaderParameter definition with something like:
>>
>> "If /pname/ is not present in the following table, generate
>> GL_INVALID_ENUM.  Otherwise, return the value for /pname/ given
>> /shader/, using the specified type."
>
>
> I think this would be most user-friendly, yes.

All right.

The tables under getParameter, getBufferParameter,
getRenderbufferParameter, getProgramParameter, getShaderParameter, and
getVertexAttrib have been clarified.

sdk/tests/conformance/programs/program-test.html has been updated to
test the now-invalid length enums to getShaderParameter and
getProgramParameter. Contributions to the conformance suite to verify
the removal of any other enums would be welcome.

-Ken


>> Not exactly: to test this fully, you'd need to test every value which
>> isn't explicitly supported.
>
>
> Hmm... Yeah, fair.  Good catch on extensions.
>
>
>> It's probably reasonable to test every unsupported [0, 0xFFFF] value,
>> though, for every function that takes an enum.
>
>
> Yeah, probably.  65000 is just not that big a number nowadays.  ;)
>
>
> -Boris
>
> -----------------------------------------------------------
> 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
> -----------------------------------------------------------
>

-----------------------------------------------------------
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
-----------------------------------------------------------