Author: SHKiN00SHKiN00 Date: Sep 17, 2008 03:41
On Sep 16, 4:35 pm, Santhosh gmail.com> wrote:
> If my Sampler Texture is a D3DFMT_A8.
>
> float4 Output = tex1D( Sampler, index );
>
> what will be the content of Output.a, Output.r,Output.g,Output.b.
>
> In which component I will get the correct value from Sampler texture.
As DirectX SDK says
"If the source texture contains fewer than four components, defaults
are placed in the missing components. Defaults depend on the texture
format as shown in the following table:
|