Re: Effects or not Effects

Tech-Archive recommends: Fix windows errors by optimizing your registry



[Please do not mail me a copy of your followup]

Igor Kravtchenko <nospam@nospam> spake the secret code
<eWyaf93AJHA.4068@xxxxxxxxxxxxxxxxxxxx> thusly:

In D3D9 there is an Effect class that manages Techniques and Passes.
Many HLSL implementation I've seen use this.

However, basic sample of HLSL doesn't use these methods at all.

My question: is it just a programmer choice? Is HLSL compiler able to
manage Effects/Techniques or not at all?

To add to what Chuck said: HLSL is for writing shaders (vertex, pixel,
geometry, etc.). Effects manage shaders as one piece of state among
many pieces of state that need to be managed on the device as a way of
configuring the device as a whole in order to orchestrate the multi-pass
rendering techniques.

So you can use HLSL to create your shaders (like the basic HLSL sample
does), or you can use effects to manage your device state (with the
fixed-function pipeline or with shaders), or you can use both together.
--
"The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download
<http://www.xmission.com/~legalize/book/download/index.html>

Legalize Adulthood! <http://blogs.xmission.com/legalize/>
.



Relevant Pages

  • Re: Re: HLSL?
    ... instruction sets are more optimal on a specific card and make ... >> I'm trying to make some simple Vertex Shaders. ... >> instead of using HLSL, ... I just started on vertex and pixel shaders ...
    (microsoft.public.win32.programmer.directx.graphics)
  • Re: using DirectX 9.0 on DirectX 8 chipset
    ... ensure your capabilities bit testing is correct. ... It likely means programming shaders in ASM instead of HLSL ...
    (microsoft.public.win32.programmer.directx.graphics)
  • Re: HLSL?
    ... also do that in HLSL with an asm {... ... > I'm trying to make some simple Vertex Shaders. ... > programmer I have my heart set on programmring them in pure ...
    (microsoft.public.win32.programmer.directx.graphics)
  • Re: HLSL Equivalent of Pixel Fixed Function?
    ... function pixel pipeline using HLSL. ... do with shaders what you can do with the fixed function pipeline and more. ... If you're talking about programming the fixed function using HLSL, ...
    (microsoft.public.win32.programmer.directx.graphics)
  • Effects or not Effects
    ... In D3D9 there is an Effect class that manages Techniques and Passes. ... Many HLSL implementation I've seen use this. ... basic sample of HLSL doesn't use these methods at all. ...
    (microsoft.public.win32.programmer.directx.graphics)