public static int PrepareForRender(PixelShaderEffect * @this, D2D1_CHANGE_TYPE changeType)
        {
            if (@this->constantBuffer is not null)
            {
                return(@this->d2D1DrawInfo->SetPixelShaderConstantBuffer(
                           buffer: @this->constantBuffer,
                           bufferCount: (uint)@this->constantBufferSize));
            }

            return(S.S_OK);
        }
Example #2
0
        public virtual int PrepareForRender(
            D2D1_CHANGE_TYPE changeType
            )
        {
            var fp = GetFunctionPointer(4);

            if (m_PrepareForRenderFunc == null)
            {
                m_PrepareForRenderFunc = (PrepareForRenderFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(PrepareForRenderFunc));
            }

            return(m_PrepareForRenderFunc(m_ptr, changeType));
        }
Example #3
0
 public HRESULT PrepareForRender(D2D1_CHANGE_TYPE changeType)
 {
     return(((delegate * unmanaged[Stdcall] < ID2D1EffectImpl *, D2D1_CHANGE_TYPE, int >)(lpVtbl[4]))((ID2D1EffectImpl *)Unsafe.AsPointer(ref this), changeType));
 }