Esempio n. 1
0
        //private CMRTClearColor[] mClearColorArray = new CMRTClearColor[]
        //{
        //    new CMRTClearColor(0, 0xFFFFFFFF),
        //    new CMRTClearColor(1, 0x00000000),
        //};

        public CGfxRP_SceneCapture()
        {
            var RHICtx = CEngine.Instance.RenderContext;

            var cmdListDesc = new CCommandListDesc();

            mCommandList_Final = RHICtx.CreateCommandList(cmdListDesc);
        }
Esempio n. 2
0
 public CCommandList CreateCommandList(CCommandListDesc desc)
 {
     unsafe
     {
         var obj = SDK_IRenderContext_CreateCommandList(CoreObject, &desc);
         if (obj.Pointer == IntPtr.Zero)
         {
             return(null);
         }
         return(new CCommandList(obj));
     }
 }