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

Re: [Public WebGL] Behavior of WebGL canvas when it can't make a backbuffer of the requested size?

The limit is the maximum size of a renderbuffer image when using an FBO. A canvas backing store is a renderbuffer image. The required minimum maximum size for ES is, er.., 1x1. I don't know if any implementations are actually that limited. In GL 3.2 it is 1024x1024. Again I have no idea if any implementations are restricted to this minimum. In GL 4.1 it is 16384x16384.

MAX_VIEWPORT_DIMS must always be greater than or equal to max(display size, max renderbuffer image size) so a browser can always use the GL for compositing to a full screen window surface.



On 29/09/2010 10:17, Steve Baker wrote:
Isn't there a deeper problem here?  If the underlying hardware has a
limit on the size of an OpenGL/Direct3D rendering context - and the new
generation of browsers are using the GPU to do compositing, isn't it the
case that the browser window (or at least the canvas) will also be
limited in size?

If so, then wouldn't the idea of rendering at less-than-requested
resolution then resizing in the compositor also be impossible?

fn:Mark Callow
org:HI Corporation;Graphics Lab, Research & Development
adr:Higashiyama 1-4-4, Meguro-ku;;Meguro Higashiyama Bldg 5F;Tokyo;;153-0043;Japan
title:Chief Architect
tel;work:+81 3 3710 9367 x228
tel;fax:+81 3 5773 8660
url:http://www.hicorp.co.jp,  http://www.mascotcapsule.com