Files
rocm-systems/include/hip/hcc_detail
Vladislav Sytchenko ef2415edc7 Add constraints to texture fetch functions
When sampling a pixel the hw always returns a float4. The type in the texture reference controls the bitcast that we perform before returning the sampled pixel. Creating a texture with an unsupported will lead to potential UB.

This change makes it so that it's only possible to use textures with a type that makes sense. Using something like texture<int, hipTextureType1D, hipReadModeNormalizedFloat> will now lead to a compilation error with a message "Invalid channel type!".

Change-Id: I7fde44cb1d4b9737e0c48c28cb59c018c59ccaa2
2020-03-18 12:24:40 -04:00
..
2016-10-04 22:17:18 +05:30
2019-03-06 17:31:44 +05:30
2020-03-09 16:11:25 -04:00
2019-12-23 19:11:24 +05:30
2018-09-17 11:50:29 +03:00
2019-04-23 09:16:00 -04:00
2020-03-17 17:04:37 -04:00
2019-03-06 17:31:44 +05:30
2020-03-17 17:04:37 -04:00