XNA Creators Club Online
Page 1 of 1 (2 items)
Sort Posts: Previous Next

How to set sampler in vertex shader??????urgent

Last post 5/16/2008 3:00 PM by Clootie RU. 1 replies.
  • 5/15/2008 1:43 AM

    How to set sampler in vertex shader??????urgent

    Hi all,
    I am working with shader model 3(vs_3_0) and i want to set the sampler in vertex shader.... I am trying to do it by using SetTexture on the device. I am setting the samplers in pixel shader (s0-s4) and is working perfectly fine but i am not able to do it in vertex shader.....(http://msdn.microsoft.com/en-us/library/bb206339.aspx) i used stage D3DVERTEXTEXTURESAMPLER0 with settexture but of no use....  I am using IDirect3dVertexshader9 to make my pixel shader..

    Plz help me in this regard.

    Thanks in advance.
  • 5/16/2008 3:00 PM In reply to

    Re: How to set sampler in vertex shader??????urgent

    What do you mean "but of no use...."? Is SetTexture() call fails? Have you tried to run your code on REF device? Are you sure that your HW supports vertex texturing (for example ATI X1xxx cards were advertised as ShaderModel 3.0 capable, but did not support vertextexturing)?
Page 1 of 1 (2 items) Previous Next