Ejemplo n.º 1
0
        private void PlatformSetRenderTargetDescriptor(RenderTarget renderTargetView, LoadAction loadAction, ColorRgbaF clearColor)
        {
            var colorAttachment = DeviceRenderPassDescriptor.ColorAttachments[0];

            colorAttachment.Texture     = renderTargetView.DeviceTexture;
            colorAttachment.LoadAction  = loadAction.ToMTLLoadAction();
            colorAttachment.ClearColor  = clearColor.ToMTLClearColor();
            colorAttachment.StoreAction = MTLStoreAction.Store;
        }
 private void PlatformSetRenderTargetDescriptor(RenderTarget renderTargetView, LoadAction loadAction, ColorRgbaF clearColor)
 {
     _renderTargetDescriptor = new RenderTargetDescriptor
     {
         RenderTarget = renderTargetView,
         LoadAction   = loadAction,
         ClearColor   = clearColor.ToRawColor4()
     };
 }