Show / Hide Table of Contents

Class IntrinsicFunctionAttribute

Functions marked as intrinsic -- user shall provide an implementation

Inheritance
System.Object
System.Attribute
KernelAttribute
IntrinsicAttribute
IntrinsicFunctionAttribute
Implements
System.Runtime.InteropServices._Attribute
Inherited Members
IntrinsicAttribute.Flavor
KernelAttribute.Name
KernelAttribute.Profiles
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Boolean)
System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type)
System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type, System.Boolean)
System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Boolean)
System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type)
System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type, System.Boolean)
System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.Module)
System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type, System.Boolean)
System.Attribute.IsDefined(System.Reflection.Module, System.Type)
System.Attribute.IsDefined(System.Reflection.Module, System.Type, System.Boolean)
System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Boolean)
System.Attribute.IsDefined(System.Reflection.Assembly, System.Type)
System.Attribute.IsDefined(System.Reflection.Assembly, System.Type, System.Boolean)
System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type, System.Boolean)
System.Attribute.Equals(System.Object)
System.Attribute.GetHashCode()
System.Attribute.Match(System.Object)
System.Attribute.IsDefaultAttribute()
System.Attribute.System.Runtime.InteropServices._Attribute.GetTypeInfoCount(System.UInt32)
System.Attribute.System.Runtime.InteropServices._Attribute.GetTypeInfo(System.UInt32, System.UInt32, System.IntPtr)
System.Attribute.System.Runtime.InteropServices._Attribute.GetIDsOfNames(System.Guid, System.IntPtr, System.UInt32, System.UInt32, System.IntPtr)
System.Attribute.System.Runtime.InteropServices._Attribute.Invoke(System.UInt32, System.Guid, System.UInt32, System.Int16, System.IntPtr, System.IntPtr, System.IntPtr, System.IntPtr)
System.Attribute.TypeId
System.Object.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Hybridizer.Runtime.CUDAImports
Assembly: Hybridizer.Runtime.CUDAImports.dll
Syntax
[Guid("6F292943-53BC-4456-8068-6D5CF8D97433")]
[AttributeUsage(AttributeTargets.Constructor | AttributeTargets.Method, AllowMultiple = true)]
public class IntrinsicFunctionAttribute : IntrinsicAttribute, _Attribute
Examples
[IntrinsicFunction("::cosf")]
public static float Cosf(float x) {
    return (float) Math.Cos((double) x);
}

Constructors

IntrinsicFunctionAttribute()

default constructor

Declaration
public IntrinsicFunctionAttribute()

IntrinsicFunctionAttribute(String)

name constructor

Declaration
public IntrinsicFunctionAttribute(string name)
Parameters
Type Name Description
System.String name

name of native function to be used

IntrinsicFunctionAttribute(String, Int32)

full constructor

Declaration
public IntrinsicFunctionAttribute(string name, int flavor)
Parameters
Type Name Description
System.String name

name of native function to be used

System.Int32 flavor

flavor

Properties

GenerateSource

internal

Declaration
public bool GenerateSource { get; set; }
Property Value
Type Description
System.Boolean

IsFunction

Is function -- always true

Declaration
public override bool IsFunction { get; set; }
Property Value
Type Description
System.Boolean
Overrides
IntrinsicAttribute.IsFunction

IsMember

Is function static or member function

Declaration
public bool IsMember { get; set; }
Property Value
Type Description
System.Boolean

IsNaked

is function naked?

Declaration
public bool IsNaked { get; set; }
Property Value
Type Description
System.Boolean

Implements

System.Runtime.InteropServices._Attribute
Back to top Generated by DocFX