Exemplo n.º 1
0
        public virtual int SetPixelShader(
            ref Guid shaderId,
            D2D1_PIXEL_OPTIONS pixelOptions
            )
        {
            var fp = GetFunctionPointer(10);

            if (m_SetPixelShaderFunc == null)
            {
                m_SetPixelShaderFunc = (SetPixelShaderFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(SetPixelShaderFunc));
            }

            return(m_SetPixelShaderFunc(m_ptr, ref shaderId, pixelOptions));
        }
 public int SetPixelShader([NativeTypeName("const GUID &")] Guid *shaderId, D2D1_PIXEL_OPTIONS pixelOptions = D2D1_PIXEL_OPTIONS_NONE)
 {
     return(((delegate * stdcall <ID2D1DrawInfo *, Guid *, D2D1_PIXEL_OPTIONS, int>)(lpVtbl[10]))((ID2D1DrawInfo *)Unsafe.AsPointer(ref this), shaderId, pixelOptions));
 }