how we work dirty with direct x?

we write dx code in the fx file? and it acepts?