[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Public WebGL] Unused varyings.
- To: public webgl <public_webgl@khronos.org>
- Subject: [Public WebGL] Unused varyings.
- From: Steve Baker <steve@sjbaker.org>
- Date: Tue, 07 Dec 2010 16:55:43 -0600
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed; d=sjbaker.org; h=message-id :date:from:mime-version:to:subject:content-type: content-transfer-encoding; s=sjbaker.org; bh=iDrznTHajVAhc84V1/y ZdUJfXm0=; b=L/oou5RcTZ771kDnP8a8J7Gyq2QxmHWRbLBwBv1sTislWdC9Cy7 53KRNr3gFnqWyYjNRsSGhc45xqKTILT20LfczdbDW/i6lFpLGt/cdp3APcjLFUOX Hk7rFYpeCz/toqmuxSFXCz7qBsUZv9KhV3X6kGVl49EwWFN4uAm2mfJE=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=sjbaker.org; h=message-id:date :from:mime-version:to:subject:content-type: content-transfer-encoding; q=dns; s=sjbaker.org; b=kbHdM3qZnNsUp G7axcw9VD7uk2ht8WKw/T0dcKhY3uLlxH2XrKpG9O27spEKZfcbGqGejHAoheraI ySbtYrakyNfhaN6eQ4oq9jYBXu/821XmbEGkjzlCx6rBacnXSquT6wtrSYxAgiYH yYUIkc7fek0MhsEKoB/zZYDMLjo7h8=
- List-id: Public WebGL Mailing List <public_webgl.khronos.org>
- Sender: owner-public_webgl@khronos.org
- User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100520 SUSE/3.0.5 Thunderbird/3.0.5
I have a vert/frag shader pair that both declare a "varying" - but
neither of them actually use it.
Under Firefox, both varyings are evidently optimized away and everything
works just fine.
In Chrome, it looks like the varying is optimized out - but the linker
stage complains that the frag shader requires a varying that the vert
shader doesn't create...and it doesn't generate a valid shader.
Before I go off and play with testing on a bunch of different
configurations...is this actually a legal thing to do? It comes about
because I have a bunch of conditional compilation going on for different
render passes, etc.
-- Steve
-----------------------------------------------------------
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: