private static extern int SliceSpaceFloat_Internal( [MarshalAs(UnmanagedType.U4)] uint nPoints, [MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.U4)] uint[] clutPoints, SamplerFloat sampler, IntPtr cargo);
private static extern int StageSampleCLutFloat_Internal( IntPtr mpe, SamplerFloat sampler, IntPtr cargo, [MarshalAs(UnmanagedType.U4)] uint flags);
internal static int StageSampleClutFloat(IntPtr handle, SamplerFloat sampler, IntPtr cargo, uint flags) { return(StageSampleCLutFloat_Internal(handle, sampler, cargo, flags)); }
/// <summary> /// Iterates on all nodes of the stage calling a floating point sampler on each node. /// </summary> /// <param name="sampler">The callback to be executed on each node.</param> /// <param name="cargo">A user-supplied value to be passed to the callback.</param> /// <param name="flags">Flags to control stage sampling.</param> /// <returns>true if successful, otherwise false.</returns> /// <exception cref="ObjectDisposedException"> /// The Stage has already been disposed. /// </exception> public bool SampleCLUT(SamplerFloat sampler, IntPtr cargo, StageSamplingFlags flags) { EnsureNotClosed(); return(Interop.StageSampleClutFloat(handle, sampler, cargo, Convert.ToUInt32(flags)) != 0); }