Jump to content
  • Advertisement
Sign in to follow this  

what is different between template type and component type

This topic is 4858 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Templates are the types you see with dimension modifiers. For example, float4 (a vector) and float3x4 (a matrix) are template types. Basically, they just allow you to specify a base type and the dimensions of it.

Components are the unmodifiable base types. For example, int, float, and bool. Components are used in templates as the base type. For example, float4x4 uses a component type of float with dimensions 4x4.

The docs do a good job at illustrating this.

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!