Показать сообщение отдельно
Старый 18.08.2007, 08:34   #15
johnk
Легенда
 
Регистрация: 01.10.2006
Сообщений: 3,705
Написано 296 полезных сообщений
(для 568 пользователей)
Re: Не сдержался

Прежде чем спрашивать, RTFM!
tex2D - HLSL

There are two overloaded tex2D texture lookup functions:
  • 2D texture lookup
  • 2D texture lookup with partial derivatives
2D texture lookup

This function performs a 2D texture lookup.
Syntax

ret tex2D(s, t) Where:
Name In/Out Template Type Component Type Size s in object sampler2D 1 t in vector float 2 ret out vector float 4 2D texture lookup with partial derivatives

This function performs a 2D texture lookup also, but also uses the partial derivatives to help pick the LOD.
Syntax

ret tex2D(s, t, ddx, ddy) Where:
Name In/Out Template Type Component Type Size s in object sampler2D 1 t in vector float 2 ddx in vector float 2 ddy in vector float 2 ret out vector float 4
(Offline)