Re: SkipConstants parameter - what is it for?
From: Phil Taylor (phil_at_private-citizen.com)
Date: 02/11/05
- Next message: depth.of.field_at_gmail.com: "I cant get "Effect"s working..."
- Previous message: Gunnar Frenzel: "Re: creating SecondaryBuffer fails"
- In reply to: Bunnz: "SkipConstants parameter - what is it for?"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 11 Feb 2005 12:35:11 -0800
its to let you manage a (sub)set of the constants in an effect yourself.
which is what it says...
usually the application can make smarter decisions about when to update the
constants than the effect system.
a priori this has nothing to do with switching effects, or shared
parameters. its for within a single effect so you can perform constant
management yourself.
so yes, if you needed to reset those constants on effect switch, you would
have to do that since you did mark them as "application managed" by
including them in the skip list.
its not clear this is intended to allow you to have a set of constants that
are shared between effects and then be able to mark them as "application
managed" so you can handle them yourself across effects. as I read 'shared
parameters' its for "non-static" variables,eg not constants. but since this
is new, maybe the docs havent been fully updated. test code would verify or
not that you could use the API that way.
"Bunnz" <www.bunnz.com> wrote in message
news:opslz3m8tte41ekr@mobile.cb.ac.at...
> Hi,
>
> this parameter is new, but not mentioned in the MDX docu. The C++ says
> that all effect params contained by the skipConstants parameter aren't
> handled by the effect system, but must be set/restored by the application.
>
> Does it mean that if I switch between effects, the shader constants aren't
> reset to the effect param value in Begin/CommitChanges?
> What is it for?
>
> Thanks for your answer ;-)
>
> --
> Have fun,
> Bunnz
>
> Purple# - a shader driven 3d engine for .NET
> www.bunnz.com
> www.punchncrunch.com
- Next message: depth.of.field_at_gmail.com: "I cant get "Effect"s working..."
- Previous message: Gunnar Frenzel: "Re: creating SecondaryBuffer fails"
- In reply to: Bunnz: "SkipConstants parameter - what is it for?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|