Discussion:
:: Passing textures to fx file ::
(too old to reply)
Vinod
2007-05-15 04:53:18 UTC
Permalink
Hi ppl.
My doubt is regarding "Simple Vertex & Pixel Shader (HLSL/Fx Effect
File)" sample i found in the internet.

http://www.codesampler.com/dx9src/dx9src_8.htm#dx9_hlsl_fx_simple
What this sample does is it creates a texture from file and sets it to
fx file.

I modified the code. Instead of creating texture from file i created a
texture( D3DFMT_A8B8G8R8) , locked it and set values. Then i pass it
to fx file.It works well if texture size is 256 X 256.
Now problem am facing is When the texture size is more than 256 X 256.
I am just seeing black . I cannot acess the texture values inside fx
file.
What could be reason for such strange behaviour.
Richard Fine [DXMVP]
2007-06-21 16:47:07 UTC
Permalink
What hardware are you running on?
Post by Vinod
Hi ppl.
My doubt is regarding "Simple Vertex & Pixel Shader (HLSL/Fx Effect
File)" sample i found in the internet.
http://www.codesampler.com/dx9src/dx9src_8.htm#dx9_hlsl_fx_simple
What this sample does is it creates a texture from file and sets it to
fx file.
I modified the code. Instead of creating texture from file i created a
texture( D3DFMT_A8B8G8R8) , locked it and set values. Then i pass it
to fx file.It works well if texture size is 256 X 256.
Now problem am facing is When the texture size is more than 256 X 256.
I am just seeing black . I cannot acess the texture values inside fx
file.
What could be reason for such strange behaviour.
Loading...