Accessing OpenCL Resources

Should you ever need to access the OpenCL Context and CommandQueue used by the library, they are accessible via the NoiseCore class.
Also, if you wish to use the noise function provided for the library's modules, the source code for this is also accessible by the NoiseCore class.
public static class NoiseCore
    public static Context Context { get; }
    public static CommandQueue CommandQueue { get; }

    public static string IncludeCode { get; }

If you need to access the code generated by a noise program, it is accessible by the GeneratedSource property, after it has been compiled.
string programSource = program.GeneratedSource;

Last edited Sep 13, 2010 at 4:56 AM by YellPika, version 7


No comments yet.