shader - What are the semantics in CG programming? -


msdn stated semantic string attached shader input or output conveys information intended use of parameter

unity stated semantics special clause of cg define default input values of fragment/vertex shader

what semantics? why use it? necessary?

basically tells kind of data stored in field - position, normal, texture coordinates et cetera.

it useful describe vertex format in fixed-function pipeline in programmable pipeline semantics described shader, definition in vertex format may have no sense (for example, shader may use texcoord0 normals) yet still required compiler.


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -