# Texture types

**URL:** <https://forums.developer.nvidia.com/t/texture-types/15337>\
**Category:** CUDA Programming and Performance\
**Created:** [March 5, 2010, 3:36pm UTC](https://forums.developer.nvidia.com/t/texture-types/15337 "2010-03-05T15:36:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Olsson](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@David\_Olsson](https://forums.developer.nvidia.com/u/David_Olsson)\
**Post date:** [March 5, 2010, 3:36pm UTC](https://forums.developer.nvidia.com/t/texture-types/15337/1 "2010-03-05T15:36:58Z")

</div>

is only int, float, float4 and so on valid as texture type or can you use any type. Are there any restrictions? like only 4,8,16 byte structs?

---

<div class="post-metadata">

**Author:** ![tolmaion](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@tolmaion](https://forums.developer.nvidia.com/u/tolmaion)\
**Post date:** [March 5, 2010, 4:26pm UTC](https://forums.developer.nvidia.com/t/texture-types/15337/2 "2010-03-05T16:26:32Z")

</div>

> [@](#):
>
> Are there any restrictions? like only 4,8,16 byte structs?

Yes, exactly this is the restriction. So you can use types such as int2 or float2 as well. But you cannot use e.g. float3.
