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?
tolmaion
2
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.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Texture format Texture memory | 1 | 1315 | July 10, 2008 | |
| Cuda Texture | 8 | 9323 | May 6, 2010 | |
| structre in texture | 2 | 2692 | April 27, 2009 | |
| CUDA Textures with structs | 5 | 4900 | July 20, 2009 | |
| tex2D<> don't support tex2D<float3>? | 1 | 651 | June 29, 2023 | |
| textures and float3 | 2 | 15230 | August 31, 2009 | |
| texture reference question | 3 | 2538 | September 20, 2007 | |
| Some Texture Type Ommited in CUDA2.0beta? | 1 | 5410 | June 28, 2008 | |
| CUDA float texture | 0 | 575 | February 22, 2021 | |
| template<> float3 rtTex{1/2/3}D is missing? | 5 | 1244 | June 14, 2022 |