/// <summary> /// Create new compile options /// </summary> public CompileOptions(IncludeHandler includeCallback = null) { IncludeCallback = includeCallback; _handle = ShadercNative.shaderc_compile_options_initialize(); includeFunction = new ShadercNative.IncludeFunction(DelegateWrapper); releaseInclude = new ShadercNative.ReleaseInclude(ReleaseInclude); ShadercNative.shaderc_compile_options_set_include_callbacks(_handle, includeFunction, releaseInclude, IntPtr.Zero); }
/// <summary> /// Create new compile options /// </summary> public CompileOptions() { _handle = ShadercNative.shaderc_compile_options_initialize(); ShadercNative.shaderc_compile_options_set_include_callbacks(_handle, DelegateWrapper, ReleaseInclude, IntPtr.Zero); }