Example #1
0
 protected override FileTextureLoadTask<DX11Texture3D> GetTask(DX11RenderContext context, string path, int slice)
 {
     FileTexture3DLoadTask task = new FileTexture3DLoadTask(context, slice, path);
     task.StatusChanged += new TaskStatusChangedDelegate(task_StatusChanged);
     context.ResourceScheduler.AddTask(task);
     return task;
 }
Example #2
0
 void task_StatusChanged(IDX11ScheduledTask task)
 {
     FileTexture3DLoadTask ft = (FileTexture3DLoadTask)task;
     if (task.Status ==eDX11SheduleTaskStatus.Completed)
     {
         this.FTextureOutput[ft.Slice][ft.Context] = ft.Resource;
         this.FValid[ft.Slice] = true;
     }
 }