Пример #1
0
        internal unsafe void __MarshalFrom(ref __Native @ref)
        {
            Guid = @ref.Guid;
            EffectParametersPointer = @ref.EffectParametersPointer;
            fixed(void *__ptr = & @ref.Name)
            {
                Name = Marshal.PtrToStringAnsi((IntPtr)__ptr, 260);
            }

            if (EffectParametersPointer != IntPtr.Zero)
            {
                Parameters = new EffectParameters();
                Parameters.__MarshalFrom(ref *(EffectParameters.__Native *)EffectParametersPointer);
                EffectParametersPointer = IntPtr.Zero;
            }
        }
 public Result CreateEffect(Guid effectGuid, EffectParameters parameters, out IDirectInputEffect?effect)
 {
     return(CreateEffect(effectGuid, parameters, out effect, null));
 }
 public IDirectInputEffect CreateEffect(Guid effectGuid, EffectParameters parameters)
 {
     CreateEffect(effectGuid, parameters, out IDirectInputEffect effect, null).CheckError();
     return(effect);
 }
Пример #4
0
 /// <summary>
 /// Sets the characteristics of an effect.
 /// </summary>
 /// <param name="parameters">The parameters of this effect.</param>
 /// <returns>A <see cref = "T:SharpDX.Result" /> object describing the result of the operation.</returns>
 public void SetParameters(EffectParameters parameters) => SetParameters(parameters, EffectParameterFlags.All);