public CRenderPipeline(NativePointer self, bool fromPtr = false) { mCoreObject = self; if (fromPtr) { Core_AddRef(); var rs_ptr = SDK_IRenderPipeline_GetRasterizerState(CoreObject); if (rs_ptr.Pointer != IntPtr.Zero) { mRasterizerState = new CRasterizerState(rs_ptr); mRasterizerState.Core_AddRef(); } var ds_ptr = SDK_IRenderPipeline_GetDepthStencilState(CoreObject); if (ds_ptr.Pointer != IntPtr.Zero) { mDepthStencilState = new CDepthStencilState(ds_ptr); mDepthStencilState.Core_AddRef(); } var bs_ptr = SDK_IRenderPipeline_GetBindBlendState(CoreObject); if (bs_ptr.Pointer != IntPtr.Zero) { mBlendState = new CBlendState(bs_ptr); mBlendState.Core_AddRef(); } } }
public unsafe void SetBlendState(CBlendState State, float *blendFactor, UInt32 samplerMask) { SDK_ICommandList_SetBlendState(CoreObject, State.CoreObject, blendFactor, samplerMask); }