Add device_builtin_texture_type attribute to texture type for hip-clang
This is required to support texture type for hip-clang.
[ROCm/clr commit: 7c20081f8d]
Tá an tiomantas seo le fáil i:
1 tuismitheoir
3ad6635c63
tiomantas
7a4dfd23d5
1 comhad athraithe
+6
-1
@@ -45,10 +45,15 @@ THE SOFTWARE.
|
||||
* *
|
||||
* *
|
||||
*******************************************************************************/
|
||||
#if __HIP__
|
||||
#define __HIP_TEXTURE_ATTRIB __attribute__((device_builtin_texture_type))
|
||||
#else
|
||||
#define __HIP_TEXTURE_ATTRIB
|
||||
#endif
|
||||
|
||||
template <class T, int texType = hipTextureType1D,
|
||||
enum hipTextureReadMode mode = hipReadModeElementType>
|
||||
struct texture : public textureReference {
|
||||
struct __HIP_TEXTURE_ATTRIB texture : public textureReference {
|
||||
texture(int norm = 0, enum hipTextureFilterMode fMode = hipFilterModePoint,
|
||||
enum hipTextureAddressMode aMode = hipAddressModeClamp) {
|
||||
normalized = norm;
|
||||
|
||||
Tagairt in Eagrán Nua
Cuir bac ar úsáideoir