public virtual void GetDescription( out D2D1_BLEND_DESCRIPTION description ) { var fp = GetFunctionPointer(7); if (m_GetDescriptionFunc == null) { m_GetDescriptionFunc = (GetDescriptionFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(GetDescriptionFunc)); } m_GetDescriptionFunc(m_ptr, out description); }
public virtual void SetDescription( ref D2D1_BLEND_DESCRIPTION description ) { var fp = GetFunctionPointer(6); if (m_SetDescriptionFunc == null) { m_SetDescriptionFunc = (SetDescriptionFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(SetDescriptionFunc)); } m_SetDescriptionFunc(m_ptr, ref description); }
public virtual int CreateBlendTransform( uint numInputs, ref D2D1_BLEND_DESCRIPTION blendDescription, out ID2D1BlendTransform transform ) { var fp = GetFunctionPointer(7); if (m_CreateBlendTransformFunc == null) { m_CreateBlendTransformFunc = (CreateBlendTransformFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(CreateBlendTransformFunc)); } transform = new ID2D1BlendTransform(); return(m_CreateBlendTransformFunc(m_ptr, numInputs, ref blendDescription, out transform.PtrForNew)); }
public virtual int SetVertexProcessing( ID2D1VertexBuffer vertexBuffer, D2D1_VERTEX_OPTIONS vertexOptions, ref D2D1_BLEND_DESCRIPTION blendDescription, ref D2D1_VERTEX_RANGE vertexRange, ref Guid vertexShader ) { var fp = GetFunctionPointer(11); if (m_SetVertexProcessingFunc == null) { m_SetVertexProcessingFunc = (SetVertexProcessingFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(SetVertexProcessingFunc)); } return(m_SetVertexProcessingFunc(m_ptr, vertexBuffer != null ? vertexBuffer.Ptr : IntPtr.Zero, vertexOptions, ref blendDescription, ref vertexRange, ref vertexShader)); }