Reputation: 51
Many people say DirectX has two kinds of resources: Buffer and Texture
In the MSDN document, it says that A buffer is a collection of raw data (elements); a texture is a collection of texels (texture elements)
But it does not make me really understand. What is clear differences between raw data and texel? Isn't texel can be raw data?
Is there any precise explanation?
Upvotes: 1
Views: 1136
Reputation: 85
The difference is that Textures have specific functionalities available and are load to different registers(t) than buffers. t register have access to additional hardware which makes sampling and filtering faster(a common operation that is performed on textures).
There are also other topics associated with textures like mipmaps, compression, etc which gpu supports them with texture resources.
So if you use these functionalities with your data its better to store it as textures to use the associated hardware.
Upvotes: 2