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

Re: [Public WebGL] MAX_VIEWPORT_DIMS <= MAX_TEXTURE_SIZE



I'm not sure how that disagrees. In that case, MAX_VIEWPORT_DIMS[0] would have to be at least 6k, which would cause that assertion to fail for 4k-max-texture-size contexts.

What's the reason for wanting to add an assertion between these values?

-Jeff

----- Original Message -----
From: "Guillaume Abadie" <guillaume.abadie@gmail.com>
To: "Jeff Gilbert" <jgilbert@mozilla.com>
Cc: "public webgl" <public_webgl@khronos.org>
Sent: Thursday, July 25, 2013 10:31:48 AM
Subject: Re: [Public WebGL] MAX_VIEWPORT_DIMS <= MAX_TEXTURE_SIZE

I disagree, because the OpenGL ES 2 specification say : "The maximum viewport dimensions must be greater than or equal to the visible dimensions of the display being rendered to." (chapter 2.12.1: Controlling the Viewport - p45).

Guillaume.

On 2013-07-25, at 3:09 AM, Jeff Gilbert <jgilbert@mozilla.com> wrote:

> I don't believe this is in the spec anywhere.
> 
> This assumption would fail, for instance, on a machine with a 6k*1k default framebuffer, if the max square texture size the driver can guarantee it handles correctly is only 4k*4k.
> 
> -Jeff
> 
> ----- Original Message -----
> From: "Guillaume Abadie" <guillaume.abadie@gmail.com>
> To: "public webgl" <public_webgl@khronos.org>
> Sent: Wednesday, July 24, 2013 2:51:36 PM
> Subject: [Public WebGL] MAX_VIEWPORT_DIMS <= MAX_TEXTURE_SIZE
> 
> 
> Hi every one.
> 
> Where I can't find an answer in specs, I would like to know if the followed assertion is true in WebGL :
> 	MAX_VIEWPORT_DIMS <= max(MAX_TEXTURE_SIZE, MAX_RENDERBUFFER_SIZE)
> 
> Thanks you !
> 
> Guillaume Abadie.
> -----------------------------------------------------------
> 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
-----------------------------------------------------------