开发者

uniform keyword in HLSL

开发者 https://www.devze.com 2023-02-20 23:04 出处:网络
it seems that in HLSL i can but dont have t开发者_JAVA技巧o provide the uniform keyword for variables which come from the application. right?

it seems that in HLSL i can but dont have t开发者_JAVA技巧o provide the uniform keyword for variables which come from the application. right?

why is that so?


In HLSL global variables are considered uniform by default.

It's also settled that a variable coming out of the vertex shader stage for example is varying (HLSL doesn't need this keyword at all!).

Note that GLSL keywords uniform/varying are inherited from RSL (RenderMan shading language).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号