vindos
27-Apr-2007, 04:57
Hi
I made a sample that uses an fx file. I pass a texture of type D3DFMT_L16 to fx file. I can retrive the texture data inside fx file for textures of size 256 X 256 but strangely its not working for size 512 X 512. I mean the texture doesnt show value when read from fx file.
Then i replaced fx file with an ordinary pixel shader. And i set a texture ( L16) using the constant table. Using this i can even set texture of size 1024 X 1024 and access the values properly.
Please someone tell me why this strange behaviour
I made a sample that uses an fx file. I pass a texture of type D3DFMT_L16 to fx file. I can retrive the texture data inside fx file for textures of size 256 X 256 but strangely its not working for size 512 X 512. I mean the texture doesnt show value when read from fx file.
Then i replaced fx file with an ordinary pixel shader. And i set a texture ( L16) using the constant table. Using this i can even set texture of size 1024 X 1024 and access the values properly.
Please someone tell me why this strange behaviour